Cesare Marilungo wrote:
I wrote some morphs to represent notes and envelopes and wanted to send events via OSC in realtime.
But I'm stuck since I haven't found how to keep precise timing (with a decent resolution). My first prototypes used the Morph 'tick' method, but this was unacceptable for obvious reasons. Lately I've been experimenting with forking an osProcess, but I was wandering if there's a cleaner/better method.
Can you provide me with some hints, or point me to the proper documentation where I can found some explanation about how to achieve this?
you can have a look at the code in MusicalPhrase>>outputToMidiPort:after:
that's what I came up with for tackling the same problem you're having. I think it's very close to what John M McIntosh describes in its anwser.
Stef