Csound Csound-dev Csound-tekno Search About

[Csnd] Re: midi

Date2008-06-07 01:03
From"Michael Gogins"
Subject[Csnd] Re: midi
You can use p5 for frequency with the --midi-key-cps=5 command-line option, then the MIDI key number from the input port will be translated to cycles per second and appear in the p5 field.
 
If there is a warning just ignore it.
 
For envelope, you would need to handle the appropriate controller number and interpolate between one sense of the controller and the next, then multiply the signal by the interpolated controller value.
 
Or do you just mean MIDI velocity? --midi-velocity=pwhatever.
 
Hope this helps,
Mike
----- Original Message -----
Sent: Friday, June 06, 2008 5:43 PM
Subject: [Csnd] midi

I got CSound to play my midi file--figured out how to clean up the file in CakeWalk.
 
I get an error message for most demo instruments saying I can't use midi for p5. Isn't that the usual p field for frequency? Also, I'm not sure how to have a midi file control the envelope.
 
Thank you for your time.
 

Date2008-06-07 01:22
From"Jim Alciere"
Subject[Csnd] Re: Re: midi
AttachmentsNone  None