aboutsummaryrefslogtreecommitdiff
path: root/site/udo/scss/mixer/test.csd
blob: 1fc60998d7406d2c30f25dc54172ac18a19fddf9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<CsoundSynthesizer>
<CsOptions>
-odac
</CsOptions>
<CsInstruments>
sr = 48000
ksmps = 64
nchnls = 2
0dbfs = 1
seed 0

#include "scss/mixer/base.udo"

instr test_boot
	schedule("mx_boot", 0, 1) ; defaults: 12 channels
	schedule("test_set", 0.5, 1)
endin

instr test_set
	schedule("mx_alter_insert", 0.1, 1, 12, 0, 0) ; reverb on return 1 fx 1 (chan 12)
	schedule("mx_alter_insert", 0, 1, 12, 1, 3) ; ring mod on return 1 fx 0 (chan 12)
	chnset 1, "mxsend0_0" ; send chan 0 to reverb
	schedule("test_sound", 0.5, 50) ; test sound
	schedule("mx_getstate", 1, 1) ; test state output
endin


instr test_sound
	prints "\n\ntest sound\n\n"
	aL, aR diskin2 "d:/temp/drive.wav", 1, 0, 1
	bus_mix("mxchan0", aL, aR)

	kfreq = abs:k(oscil:k(2200, 1)) + 220
	chnset kfreq, "fxi_freq_12_1"
endin

</CsInstruments>
<CsScore>
i"test_boot" 0 60
</CsScore>
</CsoundSynthesizer>