General
Wait a few frames between midi messages
Started by Tim on .
Sign in or create an account to join the conversation.
Hi,
I'd like to create a button which sends a midi message then waits a few frames or a set amount of time and then send out another midi message.
For example when pressing a button:
midiout(0, {0xB0, 0x10, 0x01});
//Wait a few frames
midiout(0, {0xB0, 0x11, 0x01});
Is there an easy way to do this?
Thanks!
I'd like to create a button which sends a midi message then waits a few frames or a set amount of time and then send out another midi message.
For example when pressing a button:
midiout(0, {0xB0, 0x10, 0x01});
//Wait a few frames
midiout(0, {0xB0, 0x11, 0x01});
Is there an easy way to do this?
Thanks!
proof of concept with one pad with "fixed" delay (look inside pad for variable delay) and a pad with a knob which sets the desired delay in seconds up to 5 seconds (for more precise control the limit can be set by changing the number multiplied with x - look inside pad for 'delay' variable)...
For showcasing the logic I have used a monitor object where the display text is changed - replace the actions commented in the scripts with your midi args....
delayed_action.jzml
For showcasing the logic I have used a monitor object where the display text is changed - replace the actions commented in the scripts with your midi args....
delayed_action.jzml
It's working! Thank you so much Softcore!
I've edited the script a bit so that you don't have to hold the pad for the delayed action to take place, I've attached it for those who are interested.
Thanks again Softcore!
delayed_action_edited.jzml
I've edited the script a bit so that you don't have to hold the pad for the delayed action to take place, I've attached it for those who are interested.
Thanks again Softcore!
delayed_action_edited.jzml
Nice one! thanks for sharing!