diff options
author | Felipe Sateler <fsateler@debian.org> | 2014-01-24 13:54:37 -0300 |
---|---|---|
committer | Felipe Sateler <fsateler@debian.org> | 2014-01-24 13:54:37 -0300 |
commit | bcf06a42deb371baf3deb9f4addb474b08273120 (patch) | |
tree | 4a8c3fb811dd164d4486628d8eff6043ebe8a6c3 /examples/rspline.csd | |
parent | 3a91171181113761a14bcc36a086a8dda144b77b (diff) |
Imported Upstream version 6.02~dfsg
Diffstat (limited to 'examples/rspline.csd')
-rw-r--r--[-rwxr-xr-x] | examples/rspline.csd | 48 |
1 files changed, 16 insertions, 32 deletions
diff --git a/examples/rspline.csd b/examples/rspline.csd index 9e0b9db..0038b08 100755..100644 --- a/examples/rspline.csd +++ b/examples/rspline.csd @@ -1,53 +1,37 @@ <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 rspline.wav -W ;;; for file output any platform +; -o jspline.wav -W ;;; for file output any platform </CsOptions> <CsInstruments> -; Initialize the global variables. sr = 44100 -kr = 4410 -ksmps = 10 +ksmps = 32 nchnls = 2 +0dbfs = 1 -; Instrument #1 -- plain instrument. instr 1 - aplain vco 10000, 220, 2, 0.83 - outs aplain, aplain -endin - -; Instrument #2 -instr 2 - ; Create a signal modulated the rspline opcode. - kamp init 2 - kcpsmin init 4 - kcpsmax init 10 - kj rspline -20,20, kcpsmin, kcpsmax +krangeMin init p4 +krangeMax init p5 +kcpsmin init 2 +kcpsmax init 3 - aplain vco 10000, 220, 2, 0.83 - ajitter vco 10000, 220+kj, 2, 0.83 +ksp rspline krangeMin, krangeMax, kcpsmin, kcpsmax +aout pluck 1, 200+ksp, 1000, 0, 1 +aout dcblock aout ;remove DC + outs aout, aout - outs aplain, ajitter endin - - </CsInstruments> <CsScore> -; Table #1, a sine wave. -f 1 0 16384 10 1 - -; Play Instrument #1 for 3 seconds. -i 1 0 3 -; Play Instrument #2 for 3 seconds. -i 2 3 5 +i 1 0 10 2 5 ;a bit jitter +i 1 8 10 10 20 ;some more +i 1 16 10 20 50 ;lots more e - - </CsScore> </CsoundSynthesizer> |