Smooth zmap and/or multislider output for realtime parameter control?
See the attached patch for a demo of this problem. There is a .maxpat and .txt in the zipped file.
I am using counter to iterate through a coll and send out a long list of data. zmap scales the values as needed: some go (as a list) to a multislider for controlling a FFT filter; others are sent out individually for controlling single modulation parameters of an audio signal. The problem is that every time metro bangs for the next value in the list you can hear a skip (pop, crackle, etc.) in the modulated signal.
In the attached demo I have this hooked up to change the volume of cycle~. It's crude, but demonstrates the general problem. I'm not sure if the problem is with zmap or another object in my patch, but these interruptions are ruining the overall audio output of my patch.
Any suggestions or remedies?
Hi
in your example the simple solution is to move from the control domain to signal values, using [line~]:
But I have sneaking suspicion that you wish to stay in the control domain, given the huge number of indexed values stored in your [coll].
HTH
Brendan
I think MSP Tutorial 2 will explain the matter to you pretty well.
Thanks for the replies everyone.
As Brendan rightly assumed I had to stay in the control domain. I was able to solve the problem the problem with the slide object which beautifully smoothed the somewhat erratic data values and allowed all transitions to change w/o hiccups. The final result is definitely an interpretation of the actual numbers but an acceptable one for my purposes.
However...
Brendan, after taking another look at your solution I found that I can use the control domain objects to do what I need:
I still need to test this out, but it's very promising and SO simple. Thank you.
for linear interpolation you can also use the non MSP [line], but i agree that in most situations [slide] should be ok too.