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

conorb's icon

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?

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

Thanks

conorb's icon

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

Christopher Dobrian's icon

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

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

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.

Peter Castine's icon

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.

Roman Thilenius's icon

"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.

Christopher Dobrian's icon

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

conorb's icon

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

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