How to control CsoundAV via midi input from CubaseSX sequencer

Hi,
I am trying to control CsoundAV via midi input from my CubaseSX sequencer.
I have already controlled CsoundAV via midi input from my midi keyboard. That works.

But I haven't made Cubase SX communicate via midi input to CsoundAV, yet.
I have been working on this for a few weeks now.

I have tried using the command line flags:
-M
-+P
-+K
-+rtmidi=[DeviceName]

The "MIDI IN Device Selection" dialog does not list Cubase SX. It only offers:
2 MIDI IN ports found:
MIDI IN port 0: EDIROL UM1 MIDI
MIDI IN port 1: BCF2000
Please type MIDI IN port number and press

I have used "macCsound" by Matt Ingalls. I controlled "macCsound" via midi input from Cubase SX. That was easy. MacCsound was offered in the midi output dialog as a choice, in Cubase SX( On Mac OS X).
But my Macintosh computer now has a "Failed Logic Board."

Now, on my new PC running "Windows Vista Ultimate 64 bit," CsoundAV was NOT OFFERED as a choice in the Cubase SX midi output dialog.
I can run the Cubase Sequencer, but Csound AV does not respond.

Here is an example .csd file:
It works for input from a midi keyboard, but NOT from CubaseSX midi input.

-+P11 -+K

sr = 44100
kr = 4410
ksmps = 10
nchnls = 1

massign 1, 1

instr 1
ihz = 82.41
ival notnum
kenv linsegr 0 , .005 , 1 , .05 , 0

ismp = sr / ihz
a0 phasor ihz
a0 table a0 * ismp + ismp * ival , 2

a0 butlp a0 * 3000, 1800

out a0 * kenv
endin

f2 0 65536 21 3
f0 10500

This csd program plays a 82.41Hz harmonic series with different amplitude spectrums for each midi note pressed. So the "timbre" changes, and the pitch remains unchanged.

Please help me modify the csd file so it can be controlled via midi from CubaseSX, using CsoundAV in windows Vista.

I have been using WinSound, CsoundAV, and MacCsound for about 10 years now, every day.

Please let me know if you have any suggestions.

Thanks very much,
Markus Tiefert 530-938-3717

Some hints

You might need MIDI Yoke from midiox.com to create internal midi connections inside windows. I do not use windows and have never tried this software but i've heard good things about it.

Once the internal midi buses are created, you will most likely be able to tell cubase to output midi on this midi bus and then tell csound to read from this midi bus.

I'm doing pretty much this same thing with csound and various sequencers under mac os x. Perhaps Vista can now provide internal midi busses ?

Let us know how it goes.

ed drugs generic cialis z-pak z-pack buy viagra uk cialis online zpak z pack z pak avanafil staxyn zpack cialis uk viagra uk viagra online pharmacy uk kamagra uk Canadian pharmacy Canadian pharmacy viagra cheap generic viagra buy zithromax ed pills generic viagra