I have a question - how do I get kcps into a MIDI control signal to send to Pianoteq as a VST pluggin.
Thanks.
Csounds.com |
|
Support Csounds.comJoin with these Generous Csounders and make a donation to help Csounds.com keep going and growing. Thanks so much!
Another way to help is by purchasing a copy of The Csound Instrument Catalog. User loginPodcast
latest entries:
- browse all the entries - browse by tag - feed URL ![]() - Instructions for listening and submitting your own tracks Recent blog postsSearch |
The first part isn't hard...
Converting a frequency value to a midi note number is just
arithmetic. Something like:
inote = int((octcps(icps)-3)*12+0.5)
-- i.e. convert cps to a csound "Octave-point" value, and scale it to the midi range. (The '0.5' being necessary to avoid rounding error.)
To send that as a midi event, you'd do something like:
noteondur 1, inote, 80, 0.5
However, actually sending to a VST plugin is something I know nothing about...