File: test_recompile_udo.csd

package info (click to toggle)
csound 1%3A6.18.1%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 62,416 kB
  • sloc: ansic: 192,636; cpp: 14,151; javascript: 9,654; objc: 9,181; java: 3,337; python: 3,333; sh: 1,783; yacc: 1,255; xml: 985; perl: 635; lisp: 411; tcl: 341; lex: 217; makefile: 126
file content (74 lines) | stat: -rw-r--r-- 1,083 bytes parent folder | download | duplicates (6)
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
<CsoundSynthesizer>
<CsOptions>
</CsOptions>
<CsInstruments>


sr=44100
ksmps=32
nchnls=2
0dbfs=1

/* this opcode should never be used */
opcode testNoise, a, 0
 apink  oscili 0.2, 440
 xout apink
endop

/* this opcode should replace the above */
opcode testNoise, a, 0
 awhite unirand 2.0
 awhite = awhite - 1.0
 apink  pinkish awhite, 1
 xout apink
endop


instr 1
 apink testNoise
 outs apink * 0.25, apink * 0.25
endin

instr 2

i1 compilestr {{
/* this opcode should replace the above
   after compilation */
opcode testNoise, a, 0
 apink  oscili 1.0, 440
 xout apink
endop

instr 1
 apink testNoise
 outs apink * 0.25, apink * 0.25
endin

}}

endin

</CsInstruments>
<CsScore>
i1 0 3
i2 1 0.1
i1 4 1
</CsScore>
</CsoundSynthesizer>
<bsbPanel>
 <label>Widgets</label>
 <objectName/>
 <x>100</x>
 <y>100</y>
 <width>320</width>
 <height>240</height>
 <visible>true</visible>
 <uuid/>
 <bgcolor mode="nobackground">
  <r>255</r>
  <g>255</g>
  <b>255</b>
 </bgcolor>
</bsbPanel>
<bsbPresets>
</bsbPresets>