clickless audio cut

clement-montreal's icon

Hey there , I'd like to make an audio cut (1 or 0) in Max MSp , as I'm building a scratching system like Ms Pinky or Serato.

I'm controlling from the APC40 crossfader and my current way to do is pretty simple :
I'm multiplicating my audio signal with a signal being 1 or 0, it works but it makes CLICKS when 0 occurs at non zero signal value time.
I know of the zerox~ object it I'm struggling to make it work . , it is outputting click at zero crossing, but how to convert this into a bang?

or mybe there a btter solution than zerox~?

merci !

Roman Thilenius's icon

zerox~wont tell you when the signal is at 0. at signal rate, so it doesnt do this job at all.
furthermore, cutting a signals at 0. doesnt automatically ensure that there will be no clicks.

your best bet is to use in/out interpolation between 0. and 1. using [line~ 40.] or higher. (40 ms = 25 Hz)

-110

Christopher Dobrian's icon

I think MSP Tutorial 2 will be helpful for you.

clement-montreal's icon

wow thanks guys ! awesome !

clement-montreal's icon

hi, I may have done something wrong but there is is a huge delay ( around 45-50 ms) even if I set the ramp time to 10 ms , which makes my scratching impossible . (especially the high fast motion one)

Please see the patch attached , I also tried 1ms , same problem , it seems that teh system cannot keep up (

Thanks for your help .

5338.delay.JPG
JPG
clement-montreal's icon

PS: I also tried with 500ms and 1000ms at start , and it worked fine ( despite being unusable for live performance) .

Also, the clicks are still audible with the ramp, beside the big delay .

clement-montreal's icon

I found the issue with the delay : the number~ box has its interval time, I jut removed it ( as it iwas useless to go to Max Signal amnyway)

no more delay, but still the click, it seems my ramp isnt working , see picture ..

I will think more then :)

5339.click.bmp
bmp
clement-montreal's icon

problem solved ! my 0-1 input from crossfader MIDI values wasn't clean, I was continuously sending 1 when crossfader was opened, which made the line reset each time , thus the weird behavior!