VST Midi output - idiots guide?
-
benfromshildon benfromshildon https://www.kvraudio.com/forum/memberlist.php?mode=viewprofile&u=96374
- KVRer
- Topic Starter
- 21 posts since 30 Jan, 2006
Hi everyone.
Afraid i have a newbie question...which maybe be so simple its embarrassing, but a fair few hours have been spent banging head on desk!
Got bit of an favour to ask...but shall cut to the chase.
I'm trying to get midi out of a vst plugin, sending note on messages etc to host.
I've searched the web, found some useful stuff (http://www.kvraudio.com/forum/viewtopic.php?p=692952) and some examples (midi gain), but stuff seems so hidden away in the code i'm finding it tricky to extract the usful bits.
I'm pretty sure to get a single midi mesage out is reasonably simple.
Is the processEvents() called every sample like process() and processReplacing()?
could someone give me some direction?? How does the sendVstEventsToHost function fit into it all?
I have my CanDo stuff sorted but after that not got anything that really works.
Can someone explain the steps clearly as to how it hangs together interms of what goes in which function??
Thankyou very very much for any help.
Ben.
Afraid i have a newbie question...which maybe be so simple its embarrassing, but a fair few hours have been spent banging head on desk!
Got bit of an favour to ask...but shall cut to the chase.
I'm trying to get midi out of a vst plugin, sending note on messages etc to host.
I've searched the web, found some useful stuff (http://www.kvraudio.com/forum/viewtopic.php?p=692952) and some examples (midi gain), but stuff seems so hidden away in the code i'm finding it tricky to extract the usful bits.
I'm pretty sure to get a single midi mesage out is reasonably simple.
Is the processEvents() called every sample like process() and processReplacing()?
could someone give me some direction?? How does the sendVstEventsToHost function fit into it all?
I have my CanDo stuff sorted but after that not got anything that really works.
Can someone explain the steps clearly as to how it hangs together interms of what goes in which function??
Thankyou very very much for any help.
Ben.
-
- KVRian
- 1239 posts since 17 Jul, 2003
-
benfromshildon benfromshildon https://www.kvraudio.com/forum/memberlist.php?mode=viewprofile&u=96374
- KVRer
- Topic Starter
- 21 posts since 30 Jan, 2006
thanks for help.
Still trying to figure it out...many appolgies for the slowness with which i'm grasping this subject but....
am i right in thinking to send a midi message back to host i can just use process and processReplacing and do (*out++) += myMidiMessage ??
guessing not...as that doesn't seem to be working for me...and why have the other midi functions.
What is the sendVstEventToHost function all about??
Sorry for asking such basic questions, but i am very very grateful for any help.
ben.
Still trying to figure it out...many appolgies for the slowness with which i'm grasping this subject but....
am i right in thinking to send a midi message back to host i can just use process and processReplacing and do (*out++) += myMidiMessage ??
guessing not...as that doesn't seem to be working for me...and why have the other midi functions.
What is the sendVstEventToHost function all about??
Sorry for asking such basic questions, but i am very very grateful for any help.
ben.
-
- KVRian
- 1239 posts since 17 Jul, 2003
Hi,
MIDI is a little more complex to deal with than audio, at least for basic stuff.
sendVstEventToHost allows you to send an array of VstEvents back to the host (either standard MIDI messages or Sysex)
Check this link for some code:
http://www.niallmoody.com/ndcplugs/myfi ... uencer.htm
You should also check the VST list archive for some more info. You can register here: http://www.steinberg.de/Steinberg/Developers8b99.html
MIDI is a little more complex to deal with than audio, at least for basic stuff.
sendVstEventToHost allows you to send an array of VstEvents back to the host (either standard MIDI messages or Sysex)
Check this link for some code:
http://www.niallmoody.com/ndcplugs/myfi ... uencer.htm
You should also check the VST list archive for some more info. You can register here: http://www.steinberg.de/Steinberg/Developers8b99.html
-
benfromshildon benfromshildon https://www.kvraudio.com/forum/memberlist.php?mode=viewprofile&u=96374
- KVRer
- Topic Starter
- 21 posts since 30 Jan, 2006
if i'm just sending midi messages rather than recieving them am i right in thinking i don't need processEvents?
also, i thought sendVstEventsToHost returns a true or false value?
also, i thought sendVstEventsToHost returns a true or false value?
-
AdmiralQuality AdmiralQuality https://www.kvraudio.com/forum/memberlist.php?mode=viewprofile&u=83902
- Banned
- 6657 posts since 10 Oct, 2005 from Toronto, Canada
Correct, you receive events, including MIDI messages, in processEvents. You can call sendVstEventsToHost from anywhere.benfromshildon wrote:if i'm just sending midi messages rather than recieving them am i right in thinking i don't need processEvents?
Yes, it returns a bool. But you might as well just ignore the return value.benfromshildon wrote:also, i thought sendVstEventsToHost returns a true or false value?
-
- KVRist
- 54 posts since 31 May, 2005
Well, in most hosts. But, not in Ableton Live. It 'expects' sendVstEventsToHost to be called from within the process/replacing calls.You can call sendVstEventsToHost from anywhere
-
AdmiralQuality AdmiralQuality https://www.kvraudio.com/forum/memberlist.php?mode=viewprofile&u=83902
- Banned
- 6657 posts since 10 Oct, 2005 from Toronto, Canada
I was about to post that this probably isn't the case, but I just tested it first and... you're right!!! Jeeze, yet another thing to add to my Ableton hate list! Like there wasn't enough already...lanrosta wrote:Well, in most hosts. But, not in Ableton Live. It 'expects' sendVstEventsToHost to be called from within the process/replacing calls.You can call sendVstEventsToHost from anywhere
Thanks for the heads up on that. But AFAIC that's their bug, not mine.