Thank you. Very clear. Very helpful. Can't wait to try it. Jim On 6/6/08, Michael Gogins wrote: > > 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 ----- > *From:* Jim Alciere > *To:* csound@lists.bath.ac.uk > *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. > > Jim > http://www.spaceanimals.com > http://www.myspace.com/theelectricstarlightspaceanimals > > -- Rainbow Jimmy http://www.spaceanimals.com http://www.myspace.com/theelectricstarlightspaceanimals