Author Topic: support vst instrument (vsti) ?  (Read 5195 times)

vento

  • Posts: 2
support vst instrument (vsti) ?
« on: 10 Dec '07 - 10:58 »
Hey,

How can I play a midi through a vsti (vst instrument like chip32 or fm8, or ...) ? Is Bass authorized it ?
I currently use c# and bass.net; it works fine and it's very simple to use. But at this point, i found nothing on help and forum. Is it possible ?

My code looks like:

            int m_stream = BassMidi.BASS_MIDI_StreamCreateFile(Application.StartupPath + "/c.mid", 0, 0, BASSStream.BASS_SAMPLE_FLOAT, 44100);
            Bass.BASS_ChannelPlay(m_stream , false);

// That works fine if i place a soundft with the same file name (c.sf2).

// But that following line looks like non-sense  :-\ and not working
            int m_vst1 = BassVst.BASS_VST_ChannelSetDSP(0, m_VstInstrument, 0, 1);

Thanks for help!


radio42

  • Posts: 4576
Re: support vst instrument (vsti) ?
« Reply #1 on: 10 Dec '07 - 12:40 »
As far as I know with BASS_VST you can only use VST DSP - I am not sure, if VSTi together with Midi is actually supported - but I guess not.

vento

  • Posts: 2
Re: support vst instrument (vsti) ?
« Reply #2 on: 10 Dec '07 - 13:23 »
As far as I know with BASS_VST you can only use VST DSP - I am not sure, if VSTi together with Midi is actually supported - but I guess not.

It's clearly specified (that i did not read before)

"VST effects that have no input channels (so called "Instruments") are not loaded by BASS_VST. So you can assume chansIn and chansOut to be at least 1."  :-\


Franck REVOLLE

  • Posts: 23
Re: support vst instrument (vsti) ?
« Reply #3 on: 10 Jan '08 - 15:48 »
I've made a sample in C++ Windows, using VSTi.
The sample includes BASS-ASIO, a BASS-MIXER (to mix other streams like BASS-MIDI SF2 in the sample), and a VSTi "baby-host" linked to the mixer. It plays 2 notes on the VSTi and on the SF2, through ASIO or Windows sound driver.
I've made basic test with some VSTi (e.g. the fabulous pianoteq), with some SF2, and with some ASIO cards (e.g un4seen).
Warning : it's not a robust library at all !!! It's just a sample to show how to start, for beginners (like me ...).
If any bug, don't hesiatte to correct it.

Gamo

  • Posts: 97
Re: support vst instrument (vsti) ?
« Reply #4 on: 11 Jan '08 - 03:42 »
Franck REVOLLE ,
      Could you convert it to Delphi or VB?

Franck REVOLLE

  • Posts: 23
Re: support vst instrument (vsti) ?
« Reply #5 on: 11 Jan '08 - 14:06 »
No , I can't. Sorry. I don't have VB nor Delphi.
 :-\

bpetersen

  • Posts: 70
Re: support vst instrument (vsti) ?
« Reply #6 on: 17 Jan '08 - 20:05 »
Hello all,

I am the author of BASS_VST - and you all are right, currently, BASS_VST only supports VST effect plugins and does not support VST instrument plugins (VSTi).

However, I have looked at this stuff, and at a first glance, it seems as if VSTi can be added to BASS_VST easily.

So, with a 90% chance, BASS_VST will support VST instrument plugins the next days  :)

For this purpose, there will be a new function for creating a channel:

Code: [Select]
vstHandle = BASS_VST_ChannelCreate(DWORD freq, DWORD chans, const void* dllFile, DWORD flags);
The returned handle can be used with any other useful BASS_Channel*() and BASS_VST_*() function then.

Finally, another function to trigger MIDI events should be implemented - but that should be all, shouldn't it?

Any comments to this are welcome.

Regards - and a good night from Hamburg,
Bjoern

firemen

  • Posts: 151
Re: support vst instrument (vsti) ?
« Reply #7 on: 18 Jan '08 - 10:55 »
bpetersen  Super!!!
update please for bass 2.4
« Last Edit: 18 Jan '08 - 11:03 by firemen »

bpetersen

  • Posts: 70
Re: support vst instrument (vsti) ?
« Reply #8 on: 18 Jan '08 - 12:38 »
update please for bass 2.4

?? BASS_VST should already work with BASS 2.4, see https://www.un4seen.com/forum/?topic=5559.msg54571#msg54571

Regards,
Bjoern

firemen

  • Posts: 151
Re: support vst instrument (vsti) ?
« Reply #9 on: 18 Jan '08 - 17:07 »
I about   BASS_VST_ChannelCreate (:

bpetersen

  • Posts: 70
Re: support vst instrument (vsti) ?
« Reply #10 on: 18 Jan '08 - 18:54 »
I about   BASS_VST_ChannelCreate (:

Ok - as mentioned above, if it will come, it will come soon. For 2.4, of course.

bpetersen

  • Posts: 70
Re: support vst instrument (vsti) ?
« Reply #11 on: 21 Jan '08 - 12:32 »
Hello -

VST instruments (VSTi plugins) are supported now ;D Click for details...

Best regards,
Bjoern