diff options
Diffstat (limited to 'examples/linen.csd')
-rw-r--r--[-rwxr-xr-x] | examples/linen.csd | 48 |
1 files changed, 24 insertions, 24 deletions
diff --git a/examples/linen.csd b/examples/linen.csd index 453348d..e50bd5f 100755..100644 --- a/examples/linen.csd +++ b/examples/linen.csd @@ -1,38 +1,38 @@ <CsoundSynthesizer> <CsOptions> - ; Select audio/midi flags here according to platform -; Audio out Audio in No messages --odac -iadc -d ;;;RT audio I/O +-odac ;;;realtime audio out +;-iadc ;;;uncomment -iadc if realtime audio input is needed too ; For Non-realtime ouput leave only the line below: -; -o dam.wav -W ;;; for file output any platform +; -o linen.wav -W ;;; for file output any platform </CsOptions> <CsInstruments> -sr = 44100 -kr = 4410 -ksmps = 10 -nchnls = 1 - - instr 3 ; p3=duration of note -k1 linen p4, p6, p3, p7 ; p4=amp -a1 oscil k1, p5, 1 ; p5=freq - out a1 ; p6=attack time - endin ; p7=release time - +sr = 44100 +ksmps = 32 +nchnls = 2 +0dbfs = 1 + +instr 1 +; p4=amp +; p5=freq +; p6=attack time +; p7=release time +ares linen p4, p6, p3, p7 +asig poscil ares, p5, 1 + outs asig, asig + +endin </CsInstruments> <CsScore> - f1 0 4096 10 1 ; sine wave -;ins strt dur amp(p4) freq(p5) attack(p6) release(p7) -i3 0 1 10000 440 0.5 0.7 -i3 1.5 1 10000 440 0.9 0.1 -i3 3 1 5000 880 0.02 0.99 -i3 4.5 1 5000 880 0.7 0.01 -i3 6 2 20000 220 0.5 0.5 - +;ins strt dur amp freq attack release +i1 0 1 .5 440 0.5 0.7 +i1 1.5 1 .2 440 0.9 0.1 +i1 3 1 .2 880 0.02 0.99 +i1 4.5 1 .2 880 0.7 0.01 +i1 6 3 .7 220 0.5 0.5 e - </CsScore> </CsoundSynthesizer> |