Synchronization problem

Mar 2, 2010 at 6:58pm

Synchronization problem

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!

Attachments:
  1. notecounter1.doc
#48863
Mar 2, 2010 at 8:41pm

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.

#175603
Mar 2, 2010 at 9:26pm

Here is the main patch

– Pasted Max Patch, click to expand. –

Here is the subpatch datadelay

– Pasted Max Patch, click to expand. –
#175604
Mar 9, 2010 at 6:16pm

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

#175605

You must be logged in to reply to this topic.