Csound Csound-dev Csound-tekno Search About

[Csnd] UDOs as inline arguments to opcodes..

Date2014-02-08 12:15
FromRory Walsh
Subject[Csnd] UDOs as inline arguments to opcodes..
This blows my mind :)

opcode midi2CPS, k, k
kNote xin
kCPS = (440.0*exp(log(2.0)*((kNote)-69.0)/12.0))
xout kCPS
endop

instr 1
a1 oscil 1, midi2CPS(60), -1
outs a1, a1
endin

Date2014-02-08 13:13
Fromjoachim heintz
SubjectRe: [Csnd] UDOs as inline arguments to opcodes..
wow cool thanks.
it is somehow strange to see this feature in the same line as the oscil 
opcode. but i seem to remember you like evil dinosaurs ... =)
	j


Am 08.02.2014 13:15, schrieb Rory Walsh:
> This blows my mind :)
>
> opcode midi2CPS, k, k
> kNote xin
> kCPS = (440.0*exp(log(2.0)*((kNote)-69.0)/12.0))
> xout kCPS
> endop
>
> instr 1
> a1 oscil 1, midi2CPS(60), -1
> outs a1, a1
> endin
>
>
> Send bugs reports to the Sourceforge bug trackers
> csound6:
>              https://sourceforge.net/p/csound/tickets/
> csound5:
>              https://sourceforge.net/p/csound/bugs/
> Discussions of bugs and features can be posted here
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"
>
>
>

Date2014-02-09 00:12
FromOeyvind Brandtsegg
SubjectRe: [Csnd] UDOs as inline arguments to opcodes..
old habits die hard :-)
(for me too)

2014-02-08 14:13 GMT+01:00 joachim heintz :
> wow cool thanks.
> it is somehow strange to see this feature in the same line as the oscil
> opcode. but i seem to remember you like evil dinosaurs ... =)
>         j
>
>
> Am 08.02.2014 13:15, schrieb Rory Walsh:
>
>> This blows my mind :)
>>
>> opcode midi2CPS, k, k
>> kNote xin
>> kCPS = (440.0*exp(log(2.0)*((kNote)-69.0)/12.0))
>> xout kCPS
>> endop
>>
>> instr 1
>> a1 oscil 1, midi2CPS(60), -1
>> outs a1, a1
>> endin
>>
>>
>> Send bugs reports to the Sourceforge bug trackers
>> csound6:
>>              https://sourceforge.net/p/csound/tickets/
>> csound5:
>>              https://sourceforge.net/p/csound/bugs/
>> Discussions of bugs and features can be posted here
>> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
>> csound"
>>
>>
>>
>
>
> Send bugs reports to the Sourceforge bug trackers
> csound6:
>            https://sourceforge.net/p/csound/tickets/
> csound5:
>            https://sourceforge.net/p/csound/bugs/
> Discussions of bugs and features can be posted here
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
> csound"
>
>



-- 

Oeyvind Brandtsegg
Professor of Music Technology
NTNU
7491 Trondheim
Norway
Cell: +47 92 203 205

http://flyndresang.no/
http://www.partikkelaudio.com/
http://soundcloud.com/brandtsegg
http://soundcloud.com/t-emp