diff options
Diffstat (limited to 'examples/int.csd')
-rw-r--r-- | examples/int.csd | 29 |
1 files changed, 13 insertions, 16 deletions
diff --git a/examples/int.csd b/examples/int.csd index e80a6bb..4affa52 100644 --- a/examples/int.csd +++ b/examples/int.csd @@ -1,35 +1,32 @@ <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 int.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 - i1 = 16 / 5 - i2 = int(i1) - - print i2 -endin +icount init 0 +loop: + inum = icount / 3 + inm = int(inum) + prints "integer (%f/3) = %f\\n", icount, inm +loop_lt icount, 1, 10, loop +endin </CsInstruments> <CsScore> -; Play Instrument #1 for one second. -i 1 0 1 +i 1 0 0 e - - </CsScore> </CsoundSynthesizer> |