diff options
Diffstat (limited to 'examples/syncgrain.csd')
-rw-r--r--[-rwxr-xr-x] | examples/syncgrain.csd | 29 |
1 files changed, 15 insertions, 14 deletions
diff --git a/examples/syncgrain.csd b/examples/syncgrain.csd index aacfcbe..bbc3c99 100755..100644 --- a/examples/syncgrain.csd +++ b/examples/syncgrain.csd @@ -1,16 +1,16 @@ <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 syncgrain.wav -W ;;; for file output any platform </CsOptions> <CsInstruments> -sr = 44100 -kr = 4410 -ksmps = 10 +sr = 44100 +ksmps = 32 +0dbfs = 1 nchnls = 2 instr 1 @@ -20,20 +20,21 @@ igrsize = 0.04 ifreq = iolaps/igrsize ips = 1/iolaps -istr = .5 /* timescale */ -ipitch = 1 /* pitchscale */ - -a1 syncgrain 16000, ifreq, ipitch, igrsize, ips*istr, 1, 2, iolaps - outs a1, a1 -endin +istr = .3 /* timescale */ +ipitch = p4 /* pitchscale */ +asig syncgrain 1, ifreq, ipitch, igrsize, ips*istr, 1, 2, iolaps + outs asig, asig +endin </CsInstruments> <CsScore> -f1 0 0 1 "beats.wav" 0 0 0 +f1 0 0 1 "fox.wav" 0 0 0 ;deferred table f2 0 8192 20 2 1 -i1 0 4 - e +i1 0 5 1 +i1 + 5 4 +i1 + 5 .8 +e </CsScore> </CsoundSynthesizer>
\ No newline at end of file |