Friday, 23 August 2013

Audio Technology 1b - Patch Dev Notes

From: http://cycling74.com/forums/topic/sync-buffer-recording-to-zero-cross/

"I’m trying to record real-time audio into a buffer starting at a zero cross. I’m using a zerox~ and edge~ to trigger the record~ but the buffer contents never sync up. I’m must be doing something silly."


"The problem you are having is because you are using edge~ which converts your click from zerox~ to a bang causing you to leave the signal domain making you lose sample-rate accuracy.
Depending on how you will use this, it might be easier just to recording into a buffer, then use peek~ to search for the first zero crossing, then that sample location as your start point for playback.
I know it isn’t exactly the same as what you are looking for, but check out this thread: http://cycling74.com/forums/topic.php?id=36023
If you look in the help file for the mxj I posted to that thread, you will see a subpatcher that shows the algorithm for that mxj implemented in Max.
More to the point of your question, here is an example of how to trigger recording from a zerocrossing with sample accuracy. It might look a little strange, but works."


No comments:

Post a Comment