3
; Select audio/midi flags here according to platform
4
; Audio out Audio in No messages
5
-odac -iadc -d ;;;RT audio I/O
6
; For Non-realtime ouput leave only the line below:
7
; -o lorisplay.wav -W ;;; for file output any platform
15
; Play the partials in clarinet.sdif from 0 to 3 sec with 1 ms fadetime
16
; and no frequency , amplitude, or bandwidth modification.
19
ktime linseg 0, p3, 3.0 ; linear time function from 0 to 3 seconds
20
lorisread ktime, "clarinet.sdif", 1, 1, 1, 1, .001
21
asig lorisplay 1, 1, 1, 1
26
; Play the partials in clarinet.sdif from 0 to 3 sec with 1 ms fadetime
27
; adding tuning and vibrato, increasing the "breathiness" (noisiness) and overall
28
; amplitude, and adding a highpass filter.
31
ktime linseg 0, p3, 3.0 ; linear time function from 0 to 3 seconds
32
; compute frequency scale for tuning
34
ifscale = cpspch(p4)/cpspch(8.08) ; (original pitch was G#4)
35
; make a vibrato envelope
36
kvenv linseg 0, p3/6, 0, p3/6, .02, p3/3, .02, p3/6, 0, p3/6, 0
37
kvib oscil kvenv, 4, 1 ; table 1, sinusoid
38
kbwenv linseg 1, p3/6, 1, p3/6, 100, 2*p3/3, 100 ;lots of noise
39
lorisread ktime, "clarinet.sdif", 1, 1, 1, 1, .001
40
a1 lorisplay 1, ifscale+kvib, 2, kbwenv
41
a2 atone a1, 1000 ; highpass filter, cutoff 1000 Hz
47
; make sinusoid in table 1