CsoundVST
Prev | Front Ends | Next

## CsoundVST

CsoundVST is a multi-function front end for Csound, based on the Csound API. CsoundVST runs as a stand-alone graphical user interface to Csound, and it also runs as a VST instrument or effect plugin in VST hosts such as Cubase with the same user interface. CsoundVST is part of the main csound source tree, but is not included in standard distributions, due to licensing limitations of Steinberg's VST SDK.

### Standalone

To run CsoundVST as a stand-alone front end to Csound, execute CsoundVST. When the program has loaded, you will see a graphical user interface with a row of buttons along the top. Click on the Open... button to load a `.csd` file. You can also click on the Open... button and load a `.orc` file, then click on the Import... button to add a `.sco` file. You can edit the Csound command, the orchestra file, or the score file in the respective tabs of the user interface. When all is satisfactory, click on the Perform button to run Csound. You can stop a performance at any time by clicking on the Stop button.

### VST Plugin

The following instructions are for Cubase 4.0. You would follow roughly similar procedures in other hosts.

Use the Devices menu, Plug-In Information dialog, VST Plug-Ins tab, VST 2.x Plug-in Paths dialog, Add button to add your `csound/bin` directory to Cubase's plugin path. You can have multiple directories separated by semicolons. Then select the CsoundVST path and click on the Set as Shared Folder button.

Quit Cubase, and start it again.

Use the File menu, New Project dialog to create a new song.

Use the Project menu, Add Track submenu, to add a new MIDI track.

Use the pencil tool to draw a Part on the track a few measures long. Write some music in the Part using the Event editor or the Score editor.

Use the Devices menu (or the F11 key) to open the VST Instruments dialog.

Click on one of the No VST Instrument labels, and select CsoundVST from the list that pops up.

Click on the e (for edit) button to open the CsoundVST dialog.

On the Settings page, check the Instrument box in the VST Plugin group, and the Classic box in the Csound performance mode group. Then click on the Apply button.

Click on the Open button to bring up the file selector dialog. Navigate to a directory containing a Csound csd file suitable for MIDI performance, such as `csound/examples/CsoundVST.csd`. Click on the OK button to load the file. You can also open and import a suitable `.orc` and `.sco` file as described above.

In any event, the command line in the Classic Csound command line text box must specify `-+rtmidi=null -M0`, and should read something like this:

          csound -f -h -+rtmidi=null -M0 -d -n -m7 --midi-key-oct=4 --midi-velocity=5 temp.orc temp.sco

Click on the VST Instruments dialog's on/off button to turn it on. This should compile the Csound orchestra.

In the Cubase Track Inspector, click on the out: Not Assigned label and select CsoundVST from the list that pops up.

On the ruler at the top of the Arrangement window, select the loop end point and drag it to the end of your part, then click on the loop button to enable looping.

Click on the play button on the Transport bar. You should hear your music played by CsoundVST.

Try assigning your track to different channels; a different Csound instrument will perform each channel.

When you save your song, your Csound orchestra will be saved as part of the song and re-loaded when you re-load the song.

You can click on the Orchestra tab and edit your Csound instruments while CsoundVST is playing. To hear your changes, just click on the CsoundVST Perform button to recompile the orchestra.

You can assign up to 16 channels to a single CsoundVST plugin.

Prev | Up | Next
Front Ends | Home | Building Csound