|
There is a list of audio devices not midi. Check your
audio-midi
configuration in utilities and you should have a list of
devices there.
This should be the one Csound will see, starting from 0,
so
-M0 is the first device.
Victor
----- Original Message -----
Sent: Saturday, April 05, 2008 6:10
PM
Subject: [Csnd] RE: Re: MIDI
controllers
Oh, yes; I also tried -M99 to get the list of
devices available, but the output is just this: PortMIDI real time MIDI
plugin for Csound PortAudio real-time audio module for
Csound virtual_keyboard real time MIDI plugin for Csound 0dBFS level =
32768.0 Csound version 5.07 (float samples) Oct 2
2007 libsndfile-1.0.17 UnifiedCSD:
/Users/diegosaa/Documents/Csound/midiin.csd STARTING FILE Skipping
<CsOptions> Creating orchestra Creating score orchname:
/tmp/tmp.12.gjcGaZ.orc scorename: /tmp/tmp.13.4gR3TR.sco rtaudio:
PortAudio module enabled ... using callback interface rtmidi: PortMIDI
module enabled orch compiler: 47 lines read
instr 130 LABELS list is
full...extending to 10 Elapsed time at end of orchestra compile: real:
0.002s, CPU: 0.000s sorting score ... ...
done Elapsed time at end of score sort: real: 0.002s, CPU: 0.010s Csound
version 5.07 (float samples) Oct 2 2007 graphics not supported on
this terminal, ascii substituted 0dBFS level = 32768.0 chnl 1 using
instr 130 chnl 2 using instr 130 chnl 3 using instr 130 chnl 4 using
instr 130 chnl 5 using instr 130 chnl 6 using instr 130 chnl 7 using
instr 130 chnl 8 using instr 130 chnl 9 using instr 130 chnl 10 using
instr 130 chnl 11 using instr 130 chnl 12 using instr 130 chnl 13
using instr 130 chnl 14 using instr 130 chnl 15 using instr 130 chnl
16 using instr 130 orch now loaded audio buffered in 1024 sample-frame
blocks reading 2048-byte blks of shorts from adc (RAW) PortAudio
V19-devel PortAudio: available input devices: 0: Built-in
Microphone 1: Built-in Input 2: Fast
Track PortAudio: selected input device 'Fast Track' PortAudio: available
output devices: 0: Built-in Output 1: Fast
Track PortAudio: selected output device 'Fast Track' WARNING: buffer
size should be an integer multiple of ksmps in full-duplex mode writing
2048-byte blks of shorts to dac SECTION 1: new alloc for instr
130:
No messages whatsoever, when I tweek the knobs or play the
keyboard...
Diego
> Date: Sat, 5 Apr 2008 09:53:35 +0100 > From:
rorywalsh@ear.ie > To: csound@lists.bath.ac.uk > Subject: [Csnd]
Re: MIDI controllers > > You may have the wrong midi controller
number. Try -M99 and see what > midi controllers Csound lists for you.
Then choose the correct one. > I don't know anything about midi on OSX,
sorry. > > Rory. > > > Diego Saá
wrote: > > Hello, I just bought a M-audio keystation pro 88 MIDI
controller > > keyboard which is connected via USB to my computer.
I'm using MAC OS X > > version 10.5.2 > > I want to control
Csound with this keyboard, so as a first test, I > > pasted the
midiin.csd code provided in Csound's documentation. I ran it, > >
but no messages are registered in the console when I turn the knobs or
> > play the keyboard. Any help would be very appreciated. >
> > > This is the midiin.csd example code... Also, the virtual
keyboard does > > not appear when I run this csd. > >
> > <CsoundSynthesizer> > > <CsOptions> >
> -odac -iadc -d -+rtmidi=virtual -M0 > >
</CsOptions> > > <CsInstruments> > > >
> sr = 44100 > > ksmps = 10 > > nchnls = 1 > >
> > massign 0, 130 ; make sure that all channels > >
pgmassign 0, 130 ; and programs are assigned to test instr > >
> > > > instr 130 > > > > knotelength
init 0 > > knoteontime init 0 > > > > kstatus,
kchan, kdata1, kdata2 midiin > > > > if (kstatus == 128)
then > > knoteofftime times > > knotelength = knoteofftime -
knoteontime > > printks "kstatus= %d, kchan = %d, \\tnote# = %d,
velocity = %d \\tNote > > OFF\\t%f %f\\n", 0, kstatus, kchan,
kdata1,kdata2, knoteofftime, knotelength > > > > elseif
(kstatus == 144) then > > knoteontime times > > printks
"kstatus= %d, kchan = %d, \\tnote# = %d, velocity = %d \\tNote > >
ON\\t%f\\n", 0, kstatus, kchan, kdata1, kdata2, knoteontime > >
> > > > elseif (kstatus == 160) then > > printks
"kstatus= %d, kchan = %d, \\tkdata1 = %d, kdata2 = %d > >
\\tPolyphonic Aftertouch\\n", 0, kstatus, kchan, kdata1, kdata2 > >
> > elseif (kstatus == 176) then > > printks "kstatus= %d,
kchan = %d, \\t CC = %d, value = %d \\tControl > > Change\\n", 0,
kstatus, kchan, kdata1, kdata2 > > > > elseif (kstatus ==
192) then > > printks "kstatus= %d, kchan = %d, \\tkdata1 = %d,
kdata2 = %d \\tProgram > > Change\\n", 0, kstatus, kchan, kdata1,
kdata2 > > > > elseif (kstatus == 208) then > >
printks "kstatus= %d, kchan = %d, \\tkdata1 = %d, kdata2 = %d > >
\\tChannel Aftertouch\\n", 0, kstatus, kchan, kdata1, kdata2 > >
> > elseif (kstatus == 224) then > > printks "kstatus= %d,
kchan = %d, \\t ( data1 , kdata2 ) = ( %d, %d > > )\\tPitch
Bend\\n", 0, kstatus, kchan, kdata1, kdata2 > > > >
endif > > > > endin > > > >
</CsInstruments> > > <CsScore> > > i130 0
3600 > > e > > </CsScore> > >
</CsoundSynthesizer> > > </CsScore> > > >
>
------------------------------------------------------------------------ >
> Kostenlos bloggen + eigene Homepage + Fotospeicher = MSN Spaces Hier
> > klicken!
<http://clk.atdmt.com/GBL/go/mcrsddsp0020000048gbl/direct/01/> >
> > Send bugs reports to this list. > To unsubscribe, send
email sympa@lists.bath.ac.uk with body "unsubscribe csound"
Jetzt dabei sein und Windows Live Mail testen. Windows Live Mail. |