#asahi-dev · 2023-04-24 11:03
marcanthere's probably some weird reason DCP cares about calendar time, but it's probably not for VRR timing related stuff#asahi-dev · 2023-04-24 11:02
marcancalendar time is a bit different and I would expect it to be used only for more specific stuff#asahi-dev · 2023-04-24 11:02
marcanalmost everything in these SoCs uses the AIC timer for basic timing, and DCP's timer would also be synced to that#asahi-dev · 2023-04-24 11:01
marcan_jannau_: are they in calendar time though?#asahi-dev · 2023-04-24 11:01
marcan(which is a bit annoying on Linux because that is abstracted out behind the clock subsystem... in a pinch you could read the timer register directly to get the current time in the right domain)#asahi-dev · 2023-04-24 11:00
marcanif the timestamps are 24MHz they should match the AIC timer / ARMv8 timer counter#asahi-dev · 2023-04-24 11:00
marcanjannau: how are you feeling about 13.3 DCP? once lina gets the GPU to parity I think it's time for a release for the new macbooks at least. I don't plan on pushing 13.3 for previous chips *yet*, we can leave that for a bit later.#asahi-dev · 2023-04-24 10:56
marcanand next I'm going to try to fix the stupid genpd thing with on-at-boot domains#asahi-dev · 2023-04-24 10:53
marcanfolding in the t602x stuff into the main branches now#asahi-dev · 2023-04-24 10:43
marcancorrect, use the DCP tracing stuff#asahi-dev · 2023-04-23 17:24
marcanand if you overdo it you get a mess of intermodulation products which doesn't sound any good#asahi-dev · 2023-04-23 17:21
marcanit's tricky getting the cutoff frequencies right and the right response for the bass boost signal#asahi-dev · 2023-04-23 17:21
marcan*definitely#asahi-dev · 2023-04-23 17:21
marcandefinite is going to need a lot of tweaking to get it to sound good on several kinds of material though#asahi-dev · 2023-04-23 17:21
marcanchadmed: fwiw I played around prototyping this with Saturn and with Calf Saturator (which is pretty crappy but sort of works) with EQs around them for band splitting and it does work, though I need to test it on the real speakers (I was testing on my headphones with a sharp highpass to emulate the bad speaker response)#asahi-dev · 2023-04-23 11:10
marcanhttps://webaudio.github.io/Audio-EQ-Cookbook/Audio-EQ-Cookbook.txt is a classic#asahi-dev · 2023-04-23 11:09
marcanbbl#asahi-dev · 2023-04-23 11:09
marcananyway, I need to get some dinner#asahi-dev · 2023-04-23 11:05
marcanbut like a basic one-pole low pass filter is one line of code#asahi-dev · 2023-04-23 11:05
marcanright, it's not ideal#asahi-dev · 2023-04-23 11:05
marcanchadmed: what's the low cut of the speakers roughly?#asahi-dev · 2023-04-23 11:04
marcan(not free but it might be good as a reference)#asahi-dev · 2023-04-23 11:04
marcanTBH I bet FabFilter Saturn all on its own can do a decent bass enhancer like this with the right settings, since it has multiband processing built in#asahi-dev · 2023-04-23 11:03
marcane.g. some LSP EQ in linear phase mode to split the bands, simple mixer to mono, calf saturator or something fancier for harmonics, some gain and mix in again should be doable without writing any code#asahi-dev · 2023-04-23 11:02
marcanOTOH it is perfectly fine to prototype all this by chaining together a pile of existing plugins#asahi-dev · 2023-04-23 10:54
marcanand messing around and experimenting is critical to achieving that ;)#asahi-dev · 2023-04-23 10:53
marcanultimately the right answer to any audio problem is "whatever sounds good"#asahi-dev · 2023-04-23 10:41
marcanaudio engineering yay :)#asahi-dev · 2023-04-23 10:40
marcanbut if you try a discrete highpass/lowpass with typical minimum-phase algorithms, you will run into nasty cancellation at the crossover IIRC#asahi-dev · 2023-04-23 10:40
marcanif you are just splitting once, then I think just calculating a highpass and then the lowpass as original - highpass should be fine (for obvious reasons)#asahi-dev · 2023-04-23 10:40
marcanalso, be careful with the band split. if you are adding the signals back later, you need to make sure to avoid phase cancellation.#asahi-dev · 2023-04-23 10:38
marcanyou'll want to play around with those#asahi-dev · 2023-04-23 10:38
marcane.g. that envelope thing described in that pdf#asahi-dev · 2023-04-23 10:38
marcandepending on the harmonic generation algorithm you use, that will probably also have knobs#asahi-dev · 2023-04-23 10:37
marcanthere are many algorithms for creating harmonics, "saturation" is one keyword to look for#asahi-dev · 2023-04-23 10:37
marcanwe might want to apply some basic EQ to the output yes, e.g. to shape away the very high harmonics#asahi-dev · 2023-04-23 10:36
marcansince that will psychoacoustically make us perceive the original frequency#asahi-dev · 2023-04-23 10:36
marcanthe property you want is that it generates all harmonics (not just odd or even)#asahi-dev · 2023-04-23 10:36
marcanand that "full wave integrator" from the original link looks a bit dodgy to me, you will want to experiment with different algorithms for the nonlinearity#asahi-dev · 2023-04-23 10:36
marcanhttp://cseweb.ucsd.edu/~marora/files/papers/13868.pdf might help#asahi-dev · 2023-04-23 10:35
marcanwhat you are doing is generating harmonics, removing the fundamental, and adding that to the original signal#asahi-dev · 2023-04-23 10:35
marcanthere is no frequency-dependent processing other than filtering#asahi-dev · 2023-04-23 10:35
marcanKnedlik: you don't boost any frequencies, what you do is apply a nonlinearity to the filtered bass signal and then bandpass only the high band out#asahi-dev · 2023-04-23 08:54
marcanA modern language with modern macro features makes life easier, who'dve thought :-)#asahi-dev · 2023-04-23 08:47
marcanhttps://github.com/RustAudio/rust-lv2 looks pretty simple fwiw#asahi-dev · 2023-04-23 08:44
marcaneverything else is going to be drivers and systems stuff#asahi-dev · 2023-04-23 08:43
marcanhonestly, of all the things we need to do, "write an LV2 plugin" is probably the most "regular software dev" task we have...#asahi-dev · 2023-04-23 08:28
marcanjannau: nice!#asahi-dev · 2023-04-21 23:08
marcanpretty sure lina doesn't want that to be possible#asahi-dev · 2023-04-21 23:08
marcan_rudi: that would be a CVE