Skip to content

Commit 4329915

Browse files
author
vlazzarini
committed
improved what's new
1 parent 06bb14a commit 4329915

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

docs/intro/whats-new-in-csound-7.md

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,23 @@ endin
163163
```
164164

165165
Opcode objects may be invoked in loops, passed as parameters, have
166-
their init and perf functions executed, etc.
166+
their init and perf functions executed, exist in arrays, etc.
167+
For example, we can run an array of opcodes in parallel,
168+
169+
```csound-orc
170+
freq:i[] = fillarray(p5*0.75, p5, p5*1.333, p5*1.666)
171+
obj:Opcode[] = create(reson, lenarray(freq))
172+
src:a = rand(linenr(p4,0.1,0.1,0.01))
173+
sig:a[] = run(obj, src, freq, freq/p6, 2)
174+
```
175+
176+
or in series
177+
178+
```csound-orc
179+
obj:Opcode[] = create(reson, 4)
180+
sig:a = rand(linenr(p4,0.1,0.1,0.01))
181+
sig = run(obj, sig, p5, p5/p6, 1)
182+
```
167183

168184
## Complex Type
169185

0 commit comments

Comments
 (0)