; Select audio/midi flags here according to platform ; Audio out Audio in No messages -odac -iadc -d ;;;RT audio I/O ; For Non-realtime ouput leave only the line below: ; -o delay.wav -W ;;; for file output any platform ; Initialize the global variables. sr = 44100 kr = 4410 ksmps = 10 nchnls = 2 ; Instrument #1 -- Delayed beeps. instr 1 ; Make a basic sound. abeep vco 20000, 440, 1 ; Delay the beep by .1 seconds. idlt = 0.1 adel delay abeep, idlt ; Send the beep to the left speaker and ; the delayed beep to the right speaker. outs abeep, adel endin ; Table #1, a sine wave. f 1 0 16384 10 1 ; Keep the score running for 2 seconds. f 0 2 ; Play Instrument #1. i 1 0.0 0.2 i 1 0.5 0.2 e