Avoid clicks when volume is controlled by MIDI


#1

hi there,

I've noticed that MIDI can cause some clicks and crackles while controlling for example volume parameters of "mix" objects. It seems like that MIDI mapping is not interpolated at audio rate. Is there any way to avoid this?


#2

I think it's more of a problem to do with the mix object.
If you put a VCA controlled by a dial (with #CC) in a static input of the mixer, it doesn't click (but I haven't been getting clicks on midi control of the mix object recently anyway)


#3

You'll likely want to check out this thread. It's a common issue.


#4

yeah the problem can be avoided using vca instead of mixer objects but the I go out of sram :frowning:


#5

you only need one vca on the audio path... so this should not be a big issue... (it only introduces a tiny bit of code and one 32 bit integer)
I suspect you can save sram elsewhere :wink:


#6

I've found only one object with interpolated k-rate, is this the only solution available?
Thanks

clicks.axp (3.9 KB)


#7

The gain/vca should not click, id need to test that one ... how quickly are you changing the cc?


#8

mmm quite slowly just rotating a knob on my controller or moving the knob with mouse


#9

Out of interest , try using a midi/in/cc instead of midi mapping. See if it's different


#10

if sram is the problem with the vca make shure to use math+ or drjustice math/sum object instead of the mixer for summing.
for the midi input use midi/in/cc. From my experience this should actually be less ram intensive as the mixer object since it doesn't involve ui stuff like knobs, wich eats up sram.


#11

Thank you all guys, I ended up exactly as Blindsmyth suggests plus using the smooth object and it works flawlessly!