===================================== *** "Close Encounters" *** Original public-domain MIDI borrowed from the MIDIcsv Distribution ===================================== # These options select audio output # and suppress displays -odac -d ; Initialize the global variables. sr = 44100 ; Sample Rate kr = 4410 ; Control Rate ksmps = 10 ; Samples/Buffer (sr/kr) -- optional nchnls = 1 ; Mono output ; Sine table here rather than in Score giSine0 ftgen 1, 0, 16384, 10, 1 ; Instrument #1 - a basic oscillator. instr 1 ; convert pitch input (score param 5) to frequency icps = cpspch(p5) ; create an envelope from amplitude param 4 kamp linen p4, 0.01, p3, 0.05 ; run the oscillator a1 oscil kamp, icps, giSine0 ; and send the wave out out a1 endin ; The notes to be played: ;Instr Start Duration Amplitude Pitch (octave.pitchclass) i1 0.000 1.000 8100.00 9.07 i1 1.000 1.000 8100.00 9.09 i1 2.000 1.000 8100.00 9.05 i1 3.000 1.000 8100.00 8.05 i1 4.000 1.000 8100.00 9.00 Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here