Synchronization problem

Music_SDP's icon

First off, I don't know how to post a maxpat file here. I know there is a text format that you can use, but I don't know how to create it...

I'm hoping someone with more experience than me can help me solve this problem:

I've been working on building an audio to score patch based on Puckett's fiddle~ and Tristan Jehan's Segment~. I've been sending melodies into these two objects, finding pitch and velocity with fiddle~ and using segment~ to create a fairly accurate note count. I also have a little abstraction creating rest messages by looking for a velocity of 0 from fiddle~.

Basically I'm obtaining all of this information, and then synchronizing the output by waiting for a bang from my notecount subpatch. The problem is that the data being dumped from the notecount bangs does not line up with the data coming out of Fiddle~. If you watch the data inside the pitch and velocity subpatch you can see the discrepancy between the pre-banged data and post-banged data. I think the problem is two-fold. First, the makerest subpatch is sending out too many zeros. That's a problem that I don't think would actually matter if the data coming out of the int objects was properly synchronized with the note count.

This patch requires Fiddle~ and Segment~ to work, so you'll have to have these downloaded already.

I don't know how to create the proper text files to post here, so I will upload these as soon as someone instructs me.

The main patch, notecounter1 requires the datadelay patch in order for makerest to work.

Thanks to anyone who takes a look at this patch. It's been giving me a headache for days!

152.notecounter1.doc
doc
David Butler's icon

To post text files you can just select all the objects in the patch and then copy them to the clipboard. However to make a compressed text file, select all the objects and then select "Copy Compressed" from the Edit menu.

Music_SDP's icon
Max Patch
Copy patch and select New From Clipboard in Max.

Here is the main patch

Max Patch
Copy patch and select New From Clipboard in Max.

Here is the subpatch datadelay

Music_SDP's icon

I resolved the problem by removing segment~ from the equation.