; Select audio/midi flags here according to platform
; Audio out Audio in
; For Non-realtime ouput leave only the line below:
; -o printk.wav -W ;;; for file output any platform
; Initialize the global variables.
sr = 44100
kr = 44100
ksmps = 1
nchnls = 1
; Instrument #1.
instr 1
; Change a value linearly from 0 to 100,
; over the period defined by p3.
kval line 0, p3, 100
; Print the value of kval when it changes.
printks2 "value now %f\n", int(kval)
endin
; Play Instrument #1 for 5 seconds.
i 1 0 5
e