Csound Csound-dev Csound-tekno Search About

[Csnd] Re: [Cs-dev] Csound debian packages.

Date2008-04-04 00:35
From"Michael Gogins"
Subject[Csnd] Re: [Cs-dev] Csound debian packages.
Felipe, that is fantastic, thank you so much for your hard work and 
expertise.

Best,
Mike

----- Original Message ----- 
From: "Felipe Sateler" 
To: "Developer discussions" 
Cc: 
Sent: Thursday, April 03, 2008 7:06 PM
Subject: [Cs-dev] Csound debian packages.


> -------------------------------------------------------------------------
> Check out the new SourceForge.net Marketplace.
> It's the best place to buy or sell services for
> just about anything Open Source.
> http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace


--------------------------------------------------------------------------------


> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
> 


-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-devel

Date2008-04-05 09:20
FromDiego Saá
Subject[Csnd] MIDI controllers
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!

Date2008-04-05 09:53
FromRory Walsh
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.
> 
> 
> 
> -odac           -iadc     -d     -+rtmidi=virtual    -M0 
> 
> 
> 
> 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
> 
> 
> 
> i130 0 3600
> e
> 
> 
> 
> 
> ------------------------------------------------------------------------
> Kostenlos bloggen + eigene Homepage + Fotospeicher = MSN Spaces Hier 
> klicken! 

Date2008-04-05 18:10
FromDiego Saá
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.

Date2008-04-05 18:35
From"Oeyvind Brandtsegg"
Subject[Csnd] Re: RE: Re: MIDI controllers
AttachmentsNone  

Date2008-04-05 18:43
From"Andres Cabrera"
Subject[Csnd] Re: Re: RE: Re: MIDI controllers
AttachmentsNone  

Date2008-04-05 19:47
FromMichael Rempel
Subject[Csnd] Re: Re: MIDI controllers
Plan B for the keystation pro 88 that I use is to just take MIDI out 
from the keyboard into the computer. You need a 9v power supply to do 
that, but then you can run it more than 5 feet from the computer. I run 
mine in to the computer from 20 ft away via MOTU Midi Express but any 
MIDI in will work.

Also a tip on the keystation, I suggest you start with all knobs zeroed 
as a rule, and assume that in your instrument design. I also keep a 
keyboard -> patch number -> useage map in a spreadsheet that goes with 
the CSD I make for real time. I always use the same preset in the 
keystation so I don't have to fiddle any 'learning' modes. I also use 
macros to name knobs, sliders and buttons in CSound so I dont have to 
remember which MIDI CC message number goes with which control. I have 
too many flavors in my designs to remember all the different knob 
configurations in use for the various instruments.

Have fun with it. The keystation is a really great 
performance-for-the-price keyboard. Eventually I want to replace mine 
with one of the older Yamaha Motif 88 keyboards but for now it is really 
good. I found the gig bag I bought to carry it around in doesn't get 
much use however. That beast is way heavy.

Michael

Rory Walsh wrote:
> 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.
>>
>> 
>> 
>> -odac           -iadc     -d     -+rtmidi=virtual    -M0 
>> 
>>
>> 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
>>
>> 
>> 
>> i130 0 3600
>> e
>> 
>> 
>> 
>>
>> ------------------------------------------------------------------------
>> Kostenlos bloggen + eigene Homepage + Fotospeicher = MSN Spaces Hier 
>> klicken! 
>
>
> Send bugs reports to this list.
> To unsubscribe, send email sympa@lists.bath.ac.uk with body 
> "unsubscribe csound"
>
>
>
>
> E-mail message checked by Spyware Doctor (5.5.0.178)
> Database version: 5.09560
> http://www.pctools.com/spyware-doctor/
>





E-mail message checked by Spyware Doctor (5.5.0.178)
Database version: 5.09560
http://www.pctools.com/spyware-doctor/