Closed eliot-akira closed 2 years ago
I'm thinking that a similar protocol for syncing transport state could be useful for the Lua node.
Technically, MIDI clock messages could be used for this purpose, for OSC client or Lua script to detect (and adjust) its internal tempo - but it's kind of tricky to implement. It'd be simpler if they could listen for explicit tempo init and change messages.
As first steps, I'll try the following:
The idea is to enable an external OSC client/server to sync up, so it can send MIDI sequences in time with Element's transport control.
Possible commands/messages:
/element/transport/tempo
int
beats per minute/element/transport/timeSignature
int
number of beats,int
beat unitFor initial state, maybe when an OSC Sender node is connected, Element can send the tempo and time signature as part of a "handshake" stage.