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/repluck.csd | |
parent | 3a91171181113761a14bcc36a086a8dda144b77b (diff) |
Imported Upstream version 6.02~dfsg
Diffstat (limited to 'examples/repluck.csd')
-rw-r--r-- | examples/repluck.csd | 56 |
1 files changed, 31 insertions, 25 deletions
diff --git a/examples/repluck.csd b/examples/repluck.csd index 2af2659..d5ceb8e 100644 --- a/examples/repluck.csd +++ b/examples/repluck.csd @@ -1,44 +1,50 @@ <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 repluck.wav -W ;;; for file output any platform </CsOptions> <CsInstruments> -; Initialize the global variables. -sr = 44100 -kr = 4410 -ksmps = 10 -nchnls = 1 +sr = 44100 +ksmps = 32 +0dbfs = 1 +nchnls = 2 -; Instrument #1. instr 1 - iplk = 0.75 - kamp = 30000 - icps = 220 - kpick = 0.75 - krefl = 0.5 - axcite oscil 1, 1, 1 - apluck repluck iplk, kamp, icps, kpick, krefl, axcite +iplk = 0.75 +kamp = .8 +icps = 110 +krefl = p4 +kpick = p5 - out apluck -endin +axcite oscil 1, 1, 1 +asig repluck iplk, kamp, icps, kpick, krefl, axcite +asig dcblock2 asig ;get rid of DC offset + outs asig, asig +endin </CsInstruments> <CsScore> - -; Table #1, a sine wave. -f 1 0 16384 10 1 - -; Play Instrument #1 for two seconds. -i 1 0 2 +f 1 0 16384 10 1 ;sine wave. + +s +i 1 0 1 0.95 0.75 ;sounds heavier (=p5) +i 1 + 1 < +i 1 + 1 < +i 1 + 1 < +i 1 + 10 0.6 + +s +i 1 0 1 0.95 0.15 ;sounds softer (=p5) +i 1 + 1 < +i 1 + 1 < +i 1 + 1 < +i 1 + 10 0.6 e - - </CsScore> </CsoundSynthesizer> |