| A number of suggestions come to mind. See the attached revision of your
orc/sco in a unified .csd format.
1) I don't believe MIDI ever worked in Winsound. Use CsoundAV, flCsound or
MyCsound4, or the new Csound5 (one of the betas). All except MyCsound4
(IIRC) are available at csounds.com.
2) You need appropriate commandline (or CsOptions) flags for MIDI input and
real-time audio output. The flags for various versions are listed in the
attached .csd. (As is, the flags are appropriate for CsoundAV.)
3) instr 1 needs the space.
4) You need an actual sound generating line (the lfo I added).
5) You need an audio out line (the line following).
6) For real-time performance you don't need a note (i statement) in your
score - only a dummy function to keep the run going (here for 12 seconds).
MIDI keypresses (on channel 1 automatically sent to instr 1) automatically
"trigger" notes.
Hope these observations help.
Art Hunkins
----- Original Message -----
From: "William Echard"
To: "csound"
Sent: Saturday, August 27, 2005 9:29 AM
Subject: [Csnd] Need basic MIDI help
> Could someone take a second and troubleshoot this for me? I'm trying to
> get realtime MIDI control going following the instructions in the online
> canonical manual, and I'm obviously doing something wrong.
>
> I'm using winsound v4.23f08 under WinXP, and my MIDI device is a TASCAM
> FW-1804. Here's the instrument...
>
> instr1
> icps cpsmidi
> print icps
> endin
>
> And here's the score...
>
> i 1 0 12
> e
>
> What happens when I run this is that Csound sits for 12 seconds, as
> expected. But all it prints is icps=8.176 (this is before I even touch
> the keyboard), and it doesn't seem to receive any values as I play on the
> keyboard.
>
> In the menus on the Csound graphical interface, it does properly list the
> MIDI device as FW1804 Port 1.
>
> Any quick advice on what I need to change here to get this simple example
> working? Thanks...
>
> ------------------------------------------------------------------
> William Echard
> Department of Music, and
> Institute for Comparative Studies in Literature, Art, and Culture.
> Carleton University, Ottawa
> wechard@rideau.carleton.ca
> ------------------------------------------------------------------
> --
> Send bugs reports to this list.
> To unsubscribe, send email to csound-unsubscribe@lists.bath.ac.uk
|