diff options
Diffstat (limited to 'examples/ftlen.csd')
-rw-r--r-- | examples/ftlen.csd | 38 |
1 files changed, 17 insertions, 21 deletions
diff --git a/examples/ftlen.csd b/examples/ftlen.csd index 5844458..57f4391 100644 --- a/examples/ftlen.csd +++ b/examples/ftlen.csd @@ -1,38 +1,34 @@ <CsoundSynthesizer> <CsOptions> ; Select audio/midi flags here according to platform -; Audio out Audio in --odac -iadc ;;;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 ftlen.wav -W ;;; for file output any platform </CsOptions> <CsInstruments> -; Initialize the global variables. sr = 44100 -kr = 4410 -ksmps = 10 -nchnls = 1 +ksmps = 32 +nchnls = 2 +0dbfs =1 -; Instrument #1. instr 1 - ; Print out the size of Table #1. - ; The size will be the number of points excluding the guard point. - ilen = ftlen(1) - print ilen -endin +ift = ftlen(p4) + print ift +aout loscil3 .8, 4, p4 + outs aout, aout -</CsInstruments> -<CsScore> +endin +</CsInstruments> +<CsScore> +f 1 0 0 1 "fox.wav" 0 0 0 ;Csound computes tablesize +f 2 0 0 1 "beats.wav" 0 0 0 ;Csound computes tablesize -; Table #1: Use an audio file, Csound will determine its size. -f 1 0 0 1 "mary.wav" 0 0 0 +i 1 0 3 1 ;"fox.wav" +i 1 3 3 2 ;"beats.wav" -; Play Instrument #1 for 1 second. -i 1 0 1 e - - </CsScore> -</CsoundSynthesizer> +</CsoundSynthesizer>
\ No newline at end of file |