Real time MIDI messages to VST~

dhjdhjdhj's icon

I must be missing something but I can't figure out how to get a [vst~] object to sync with the tempo. I thought I could use midievent to send real time ticks but midievent requires a minimum of two bytes so that's no good.

How can I get a [vst~] to sync to a global tempo defined in Max so that I can (for example) have a vst~ delay unit or an arpeggiator be synced up?

dhjdhjdhj's icon

OK - I figured this out --- if I receive MIDI ticks via rtin and feed tempo messages (which one can get via the [sync~] object) into the transport object, then all my VSTs which have external sync automagically have the right tempo.

Dan Nigrin's icon

Yes, the magic lies within the global Max transport; when the transport in Max is enabled, a VST hosted within a vst~ object will automatically receive VSTTimeInfo information, and should automatically sync to Max's tempo.