Loop midi with jt/midi/play or equivalent


#1

Hello,

I can load a midi file with jt/midi/play and play it, even on startup axoloti standalone, that's great.

But I'd like to loop it !

Any way this may be possible ?

if jt/midi/play sent a signal when the midi was finished, I could use that.

I could even use a timer to retrigger the midi, as I know its length.

Any ideas?

Thank you


#2

Try this. You can set the logic/counter object to something like 30 at first just to see if this method works. If it doesn't, click the tab at the top of jt/midi/play and click "help" to see how it works and fiddle around with it. I can't test it out right now, but I've done something similar before.


#3

Thank you,

It does not seem to work as expected, the MIDI starts when the counter goes back to 0, and stops inmediately.

I haven't used Axoloti a lot yet, closest I've used is PD, and I get a tad confused about connection types, but, as far as I understand yellow is a gate-like boolean. 'Counter''s yellow ouput's tooltip is 'carry pulse' also it has a particular symbol next to it.

I am not sure which display object would help me understand what this output spits, but I'd say it probably is a toggle that goes ON when the counter ends, and OFF right away.

As what works with the midi player is a toggle, I'd say that what I need is the opposite, something that stays ON, then goes OFF briefly, and ON again.

Perhaps I can invert the 'carry pulse' output ?

Thank you


#4

Well, there IS a yellow inverter, and yeah, it works as expected :smiley: good for me!

Thank you for your help.


#5

@hitachii, I actually have another question/doubt regarding this, but I figured out I may better write a separate post here. Perhaps you may help aswell.

Thanks again