Forums > MaxMSP

Gap of one I/O vector size with count object

September 10, 2010 | 12:10 pm

Hello
I can’t understand why I have to add the I/O vector size to have the right number of recorded samples from count in this simple patch ?
thank you very much for any explanation.
C.

– Pasted Max Patch, click to expand. –

September 10, 2010 | 4:03 pm

You are controlling your recording with scheduler events. They can’t be more exact than the scheduler event interval. If Scheduler in audio interupt is checked, the event interval is the vector size. If not its default is 2 ms…

What are you trying to do? I have no idea…
Anyway, if you want sample exact results, try to do all in the signal world…
If you just want to write an exact formula into a buffer~, look at peek~ which could fill the buffer~ in nonrealtime even without audio being switched on…

Stefan


September 13, 2010 | 8:00 am

Thanks a lot Stefan

I understand your clever point of view.
I think it’s something like that but not exactly.

The idea is to loop an audio signal in real time – the posted patch is only an extract from the complete one. So the start-stop can’t be from the signal world since it is decided by the musician and I have to use poke, right ?

The strange thing is that I control two audio objects with the same scheduled event but the written part of the buffer is -apparently always- one I/O vector size longer thant the count object’s result (I check it each time in an external editor)

Do I miss something ?

Here a more simple example yet

– Pasted Max Patch, click to expand. –

Viewing 3 posts - 1 through 3 (of 3 total)