22 May '13 - 12:01 *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
 
   Home   Help Search Login Register  
Pages: [1]
  Reply  |  Print  
Author Topic: VSTi definitly deaf and dumb !!!  (Read 1044 times)
obiwan77420
Posts: 5


« on: 8 Oct '11 - 18:42 »
Reply with quoteQuote

Hi,

I'm developping an application in c# with, among others features, capability to host VSTis. The problem is this :
- Bass is perfectly initialized
- the VSTi is perfectly loaded
- the embedded editor is perfectly available and displays correctly
- the execution of BassVst.BASS_VST_ProcessEventRaw(Instance, new IntPtr(100 + 60 << 8 + 144 << 16), 0) returns 'true' - I send a middle C with a velocity of 100, for testing.

but...

...the VST doesn't visibly receive anything and doesn't produces any sound.

Have anybody an advice about my problem ?

I thank you very much for your attention, and much more for your answer.

Bernard
Logged
obiwan77420
Posts: 5


« Reply #1 on: 9 Oct '11 - 11:22 »
Reply with quoteQuote

Hi,

I solved the problem myself !

I got the idea to insert a Bass_ChannelPlay command just after the creation of the stream, and... it's working fine !  Cheesy
So, there is a mistake in the documentation of Bass.NET about the MIDI plugin, where we find that the ChannelPlay command is unusefull. Nevertheless, the Process command did'nt return Error !  Huh Could it be a bug ?

Hope this will help somebody.

Regards

Bernard
Logged
radio42
Posts: 4012


« Reply #2 on: 9 Oct '11 - 15:03 »
Reply with quoteQuote

Quote
So, there is a mistake in the documentation of Bass.NET about the MIDI plugin
Can you point me to the location of the mistake in the documentation?! So that I might correct it.
What do your mean by 'MIDI plugin' - as you are using the VST add-on?
Logged
obiwan77420
Posts: 5


« Reply #3 on: 12 Oct '11 - 13:28 »
Reply with quoteQuote

Hi,

Sorry for my late answer !

I effectively use the bass_vst.dll. That is what I saw in the "chm help" of Bass.Net (I work with Visual C# Express 2010, on the Framework 3.5) :

using Un4seen.Bass.AddOn.Vst;
using Un4seen.Bass.AddOn.Midi;

int vstHandle = BassVst.BASS_VST_ChannelCreate(44100, 2, "yourVSTi.dll", BASSFlag.BASS_DEFAULT);
BassVst.BASS_VST_ProcessEvent(vstHandle, 0, BASSMIDIEvent.MIDI_EVENT_NOTE, Utils.MakeWord(60, 100));

...about the BASS_VST_ProcessEvent method
One find the same for the "sysex version" of theBASS_VST_ProcessEventRaw method

Best regards

Bernard
Logged
radio42
Posts: 4012


« Reply #4 on: 13 Oct '11 - 10:18 »
Reply with quoteQuote

Maybe there is a misunderstanding:
The "Un4seen.Bass.AddOn.Vst" namespace (and it contained classes) and the "Un4seen.Bass.AddOn.Midi" are unrelated.

The "Un4seen.Bass.AddOn.Vst" namespace provides support for the BASS_VST add-on.
The "Un4seen.Bass.AddOn.Midi" namespace provides support for the BASSMIDI add-on.

So I am still not sure where you found the mistake in the documentation ?!
Logged
obiwan77420
Posts: 5


« Reply #5 on: 14 Oct '11 - 07:10 »
Reply with quoteQuote

Hi,

Maybe there is a misunderstanding:
The "Un4seen.Bass.AddOn.Vst" namespace (and it contained classes) and the "Un4seen.Bass.AddOn.Midi" are unrelated.

I perfectly understood that ! So, there is a screen capture of what I'm talking about in the attached GIF - so, taken from Bass.Net.chm file.

Regards

Bernard


* BASS_VST.gif (262.08 KB - downloaded 33 times.)
Logged
radio42
Posts: 4012


« Reply #6 on: 14 Oct '11 - 08:55 »
Reply with quoteQuote

So what is wrong with this?
Logged
obiwan77420
Posts: 5


« Reply #7 on: 14 Oct '11 - 13:16 »
Reply with quoteQuote

When I strictly reproduce this code, the loaded VSTi doesn't receive any MIDI message, although it loads succesfully - and, for example, the EmbededEditor fully operational. And, I got the idea to insert a BASS_ChannelPlay(vstHandle) line between the creation of the VST channel and the sending of the MIDI event, and, for this moment, the concerned VSTi receive perfectly the "Note on" !

Regards

Bernard



Logged
Pages: [1]
  Reply  |  Print  
 
Jump to:  

Powered by SMF 1.1.18 | SMF © 2013, Simple Machines