What's new in Csound 7
Csound 7 brings major changes which offer new possibilities for users and modernize coding. Nevertheless Csound 7 keeps backwards compatibility: Despite new syntax features any valid Csound code from the past can be run without any code change.
Explicit Variable Types
Variable names no longer have to start with i, k, a etc. to declare their data type implicitely. Instead any name (except existing opcodes or keywords) can be used, and the type declared explicitely:
| Explicit Varaible Types | |
|---|---|
New UDO Syntax and Pass-by-reference
User Defined Opcodes now follow the syntax opcode name(inargs):(outargs).
opcode myop(inval:i):(i)
xout(inval+1)
endop
opcode empty():void
puts("empty!",1)
endop
instr 1
print(myop(17))
empty()
endin
schedule(1,0,0)
Give example for pass-by-reference ...
Removed Limitations for Functional Style
Multiple output arguments can now be used in functional style, e.g.
For-Loop
Is it going to happen??