I’d like to write a sequencer which will accept a MIDI Clock and send out both Note On/Off messages and MIDI CC messages. My first problem is receiving the steady pulse timing signal from the system and reacting to it. I started with the metronome example in the LV2 book which adds the line:
atom:supports time:Position ;
To the ttl file for the MIDI Control port. When I added that line to my module it compiled without issue, but when I went to load the module into a pedal board it failed to load. I imagine that with that line added the Mod Device will start sending MIDI time information to the my plugin’s run() method and I’ve not added any processing as yet. But I would not have thought that my run() methods ignoring MIDI time information would mean that the plugin can’t be loaded.
I think there’s plenty of scope to augment the LV2 plugin book with little examples, a cook book, of stuff like ‘how to send a program change message’, sending a midi note message. The book is great but it only scratches the surface. There’s a lot of searching for examples of how to do things. Just not used to this yet and all the possibilities.