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!
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).
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.
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.
----------begin_max5_patcher---------- 1139.3ocyYssaiaCD8Y6uBBs8gV.uAbnt2hVfd44hEnEEKP6hBYIlD00RxPh tMsK1+8RNzxwZisB0kPsFARhW0gGMyYFx7g0qb1V8.uwg70jemrZ0GVuZEVk phUGKuxoH4gzcIMX2bJ4+S01+xYitIA+AAVsfjSxaq81pRQYRAGa46qyS1Q9 gpcYsMWcPriKD+6dt9E6jWJb1nuQd2YyQS9+gcAn2POV89DQ584k28m07Tgd 3PbrrYhKvvara72Pfnanmlp7LDHRX+Z+VLTdnHuThBbQAOVoFaXsLUkeb8Z0 kMSkcXR9AlA9Y7zTnld.W0Mu.00qwRPv.nI2QPSoUEEb0p4S3oeQjTKjvl7l J4p7OJ+xhlupsS6xK4oUGJwdxLiIGfQD1Lw0WcMDMnXwWgcFhQDcLFQGJ1xq mnwx1jx6Fk2D3gT.RG9z9LSbWFmo7aIeQN7ceKkHtmWpdlv20vIx2FiPGKso 3rw6VwhPCGne+JFcYXrWOdZYRhMLejNBb6SRFhuHovtHo.yolbCgNdM4oKH6 G8ni1ynGG8BqGeUJZ63CpiBPimchBQFI1ff5vBIDkjldnXYbrXAFX0vtHs39 R6XcWhfSX1VGF7zJvZIG23dYFX.RNr4kYFMuLBNgooA2.WCbhnKiLbFe2jTX FioRfuN5jAZKKTvoxJAWNyNycZtLcFcdZCCuv97RhFf7Ac9V5EIumqV9i0p3 1cUIXXY8Ciws4HIQ04.2KIEN.RZLJIE7llj63OgkZT6TxlZI5rUNJnncYBtL kD7B6xbMJolmjYW0UMkD87Th2Rkh6xk+VqHKyfXOrkI+sLtnpbBgje5wxXvs wGFGXnkF.8ucpKxkQWjKaqsI4uaWSu5mU.8Qlg3bHLNlJ+EEnJ8MpKu5spqM bw9j5DYFvDIrb907Bt9Q4ew3O7QPNVoc.U2vUl.PV7M4xU9oY.XgxcNhOHkh 6arx1c9MUVDcFomAizUV7mNTqGIbD0GwZjAnVN4N+38Ikml.H.uEgWu937Uz UcR56OMPWlQCTN8NuENmkw6QHT6afgpAxLcf07FQUMu62akW7Ih0Wubamuy5 lOcw5HL+SoLNa0dMOPd2YJOnmGdjjexgmitup56JG0TcnNs0Gq8nfHvIG3LI imK83xqJOqS9JZ+TetOOKiiM2pUTjmsWcPoGwPGDtYvPp6a6xHhMLDwnQJsJ WO.iE3hoR0sDCz6aKzS0SrzLrNdNlUsaGKRsLpAbq5T2sHlTmZxyySrNc5EG SfI7jq84IpI7jEwTfIXBFFlh.suJ5OFn+2gbdg1C21G8TwRywx.lWImX+y.N yi8zRL.5n3.yy5f8YljiATarUctiMwlcXbT62vPzxjQ0el6TB.cIOLRD.S2p 0a9WGSDQgFfnHqiHv.DAV0efZf+fEEwMPzHztgeU6Ix.DwrJhLJWNKRRljKW n0sjLJa.KxRQlDRztxjFkzjc0IgHSSB2xX5yq.b.L+IJNQHYztBraBV.yTLY wublj0GaJoFKK7w0+OviG4jB -----------end_max5_patcher-----------
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.
Hi Broc, your patch works wonderfully, thank you so much!
Hi Ctrlzjones, unfortunately I am using Windows and that external do not work :(