Question about downsampling
Hello. Sorry if this is a dumb question and all, but you know how it goes…
I’m trying to trigger a [function] -> [line~] from single-sample clicks with sample-accuracy.
My solution thus far has been to send my audio click into a [poly~ vs 1]. Inside the poly patch, the signal input goes to [edge~], which in turn bangs the [function].
All was well and good until I tried to downsample the [poly~] to save cpu. I’m running a [poly~ vs 1 down 8] now.
The problem is that the downsampling causes the [poly~] to miss some of the incoming clicks. I have kludged a workaround by using [delay~]s before the [poly~] to ‘duplicate’ the click triggers so that they are smeared across 8 samples, thereby ensuring that the downsampled [poly~] actually receives them all.
Am I missing something obvious here? Is there a cleaner way to do this, without using the fugly [delay~]s?
Thanks for looking,
If you need a function triggered sample-accurately, the best way would be to store the function in a buffer~. Because of the nature of how the schedular in max works, you can’t achieve sample-accuracy unless you use only audio rate objects. Here is a way of doing it, using multislider for the interface rather than function.
----------begin_max5_patcher---------- 673.3oc2W90aaBCD.+YxmBDOsMkEgM+KrOH6kopIGvIwsfcD1nk0plO6y+Iz RSIFRHhstWrEGli69c24y9oYNdqX6wbO2u49CWGmml43nEoD3b7YGuRz9rBD WuLOJ9WrU26M27JAduPKVTUSyNzHdGRjskP27yJblvn8znE9ycAQ5oHnZDBV 36d2wOgjq0iT2eMJnQOqYTAm7HV8Jf5aLho0kDZAVnsHvqBY0hSkpz.EUp0f 22wU4HJpQ6lkK98NrwD83jMTTgm6cp2+7rYpg4iiKe4faD.1OWB70bIxJWfW BWf+avkLVYIlJdGX36v3b2OUx+rE3.AZrjnwRRpU3.FeRiuM3bE995Bl7GXw +.ws7uHea9WX538O30D7kNARF9b8Vgnato0F7sLgr7v22u+5Ce8zxPqHJY70 GvQTeLebUJqpEBFsWTX1o.9xXmjH16x2p7ct0MOfmUPxdn+lDlhhvDqw5vOf 8H3Yrc398enIDCZM0EB.cGj6Nu1+1EEIzb79CtqkM7EDFEzewapwQ.A1hn.+ Ofc2NChj81dXXDJv+XgrgT.q8.tnV.A2NBYZAbKAzp50qwUsPjz0WDaETIlj nklonXq6N7eWuxBBWHgEEWzexzQFEaEQ+sNisxQtNxTVWHH7BRNtpeFXNRU. boZJMsaF7x4o4Xgzak+MiNLTr02jI8vbj.cBKFZNTCdk2D3bXQkzbcXA+XNx 5MufZTDZZpF0L14VvWYCEstjQV5oWkTaMJ4u094r5prFOuoat6qlTNlKHTjZ ig1KJ4MKZKIOGSaer8RR9NFgJNZDmglC1lRGpMAlNaJY.1j5ZhSHmT2VuWaR 0beJsI3P3TvzlOEOj7ovI0lNIrblXW7jZSCIcJcRsngjLMlbI4COO6O.q3tg 3B -----------end_max5_patcher-----------
You’ll need the [shot~ ] external, it’s on the share pages but I don’t remember who made it. It’s one of a group of 4 audio-rate objects that are incredibly useful.