MIDI playback

Jan 23, 2014 at 3:48am

MIDI playback

Hello,

I have a patch that plays music from a MIDI file, but I would like to be able to control the starting point of the playback. Apparently, the [seq] object only starts from the very beginning of the file, which is utterly annoying. Is there any way I can work around this issue?

Thanks in advance!
Gilberto

#278939
Jan 24, 2014 at 10:18am

Anybody?

#279058
Jan 24, 2014 at 11:25am

I’d suggest using [detonate] instead. It allows explicit control of playback, in particular you can control the starting point by skipping a certain number of notes (delta times).

#279066
Jan 25, 2014 at 5:39am

Hi Broc,

Thanks a lot for your suggestion. I had a look on [detonate] and indeed it is much closer to what I need, but the problem now is that detonate only works with delta times during playback, and I really need to control my playback via time (ms).

A simple example: let’s say that I have 8 seconds of music, 5 seconds of silence and then more music in my MIDI file, and I want my patch to start playing it from 10s. It means that I still would have 3 seconds of silence before the first sound is heard.

Take care,
Gilberto

#279114
Jan 25, 2014 at 3:36pm

You need to calculate the sum of delta times until reaching or exceeding the starting point and from there run the normal playback loop, something like this.
<code>

– Pasted Max Patch, click to expand. –

</code>

#279148
Jan 26, 2014 at 7:12am

Once upon the time we had [seqplayer] by Eric Singer in 2004. It allows to set all kinds of parameters for midi files playback.

It is still loopin’ with Max6 and os X_7.5.

Attachments:
  1. SeqPlayer-2.2.zip
#279183
Jan 26, 2014 at 9:18am

Hi Broc, your patch works wonderfully, thank you so much!

Hi Ctrlzjones, unfortunately I am using Windows and that external do not work :(

#279191

You must be logged in to reply to this topic.