| Hello
if you want your sound to work, you have to put in the .sco file all
the gen routine and an f0 statement that let csound know how many time it should
run.
example
f01 0 1024 10 1 ; simple sinus
f02 0 1024 7 0 128 10 256 10 256 -10 256 -10 128 0 ;ca. square wave
f03 0 1024 10 1 .5 .3 .2 .15 .12 ;six weighted sinusoids
f04 0 1024 10 1 .2 .05 ;three weighted sinusoids
f0 80 ;run during 80 seconds
e
instr 1
ifreq cpsmidi
asig oscili 5000, ifreq, 2
kampenv linenr 1, 0.1, 0.2, 0.01
out asig*kampenv
endin
And the command line should be:
csound -odevaudio -W -dm6 -M/dev/midi midi.orc midi.sco
Antoine
jasonf@thei.net wrote:
> Hey,
>
> I just started using Csound and am interested in realtime midi control. I've
> followed the directions in the LinuxMIDIin.txt file that came with Csound. I
> didn't get any errors, but the .orc/.sco file just played like I hadn't
> specified the midi input. I'm assuming I have to have a .sco file written for
> midi input before it'll work. Until I get good enough at Csound syntax to write
> my own files, would some of you be willing to share your .orc/.sco files
> written for midi input? I guess you can just send them directly to my email
> address, or point me to a URL. One last thing, what kind of .sco file do I need
> to get all of these DX7 .orc files I got from dx7orc2.zip working? Thanks in
> advance.
> Regards,
> Jason
>
> ----------------------------------
> E-Mail: jasonf@thei.net
> Date: 11-Sep-98
> Time: 19:32:02
>
> This message was sent by XFMail
> ----------------------------------
|