gswitch2 behaving oddly

Jun 20, 2013 at 7:09am

gswitch2 behaving oddly

I’m working on a patch for Push that will help me modify midi pitches as they come in so that I can select among lots of modes but use the same fingerings. For instance – modifying the E in a Cmaj scale to be Eb but fingered as an E. The end goal is to play bi-modally. I’m off to a pretty good start, but I’m encountering a weird behavior with gswitch2.

When it switches to the right side, it doesn’t send out the pitch value I want. Instead, it waits until it goes to the left side and then changes the number up or down by one. I know that’s not a terribly clear description, so here’s the relevant section of the patch as it is so far. If someone can help, I’d really appreciate it.

Thanks,
Adam

<code>

– Pasted Max Patch, click to expand. –

</code>

#253423
Jun 20, 2013 at 7:41am

You have a message ordering bug in your patch. The pitch value goes to the right inlet of Gswitch before the conditional test result from the == object switches the outlet. Try using a t object to enforce the desired message order.

#253430
Jun 20, 2013 at 12:45pm

Thanks very much. I used [t i i] before the [% 12] and it’s working now.

#253469

You must be logged in to reply to this topic.