[follow] – How can it iterate through chords and not just sequential notes?

Apr 18, 2013 at 6:05pm

[follow] – How can it iterate through chords and not just sequential notes?

I am working on a device that takes sensor input from FSR and with each press iterates through a midi file. Velocity, and note-offs left intact.

I am currently using the [follow] object, but this device iterates through notes sequentially… one by one.

The midi file that I am using has chords throughout which I need to have played back as chords… (ie one press on the FSR results in the whole chord being played at once, not just each note of the chord played one after the other.)
Is there a way I can trick follow into outputting chords all as one, or another method of doing this that I may have overlooked?

Thanks

– Pasted Max Patch, click to expand. –
#67803
Apr 18, 2013 at 6:33pm

Also, is there a way for [detonate] to output a list of pitches as it iterates through timed midi events?
hmmmm….

#243782
Apr 18, 2013 at 7:53pm

I think detonate is a better object for what you are trying to do.

Load a MIDI file into detonate, send it a ‘start’ message, then send it ‘next’ messages to output each note. Notice that the leftmost outlet sends out the delta time (in ms) till the next note in the score; you could test that value, and if it’s sufficiently small, say under 50 ms for example, that means that the next note is practically simultaneous with the current one, so you can send an additional ‘next’ message.

– Pasted Max Patch, click to expand. –
#243783
Apr 18, 2013 at 10:06pm

What you can do with [follow] is to split the MIDI file into two; one monophonic (including one single note from each chord) and a second one with the rest of the chords. Use [follow] with the monophonic file, and trigger the appropriate chords when the relevant indices are hit.

There used to be an example that worked very much like this, either in the help file or one of the Tutorials. I don’t know if it’s still there, however. A lot has changed since 1989.

#243784
Apr 18, 2013 at 10:24pm

“thw whole chord but not just sucessive notes … i guess thats not really possible, chords are nothing more than sucessive notes in a serial protocol such as midi.

#243785
Apr 18, 2013 at 10:52pm

@Peter, I salvaged the tutorial example I think you’re referring to, and posted it here:
Example 1: Score following with the follow object

#243786
Apr 19, 2013 at 7:19pm

@Christopher,
That example patch utilising detonate that way works perfectly.

Thank you so much Chris & everyone. This forum is always exceptionally helpful.

#243787

You must be logged in to reply to this topic.