SuperCollider example (was Re: subnotebook/netbook w/ linux 4 electronic music?)
Tony Hardie-Bick
EMAIL HIDDEN
Sun Aug 28 17:40:10 CEST 2011
On 28/08/11 16:09, Peter Korsten wrote:
> Op 27-8-2011 18:42, Tony Hardie-Bick schreef:
>
>> On 26/08/11 19:14, Jay Vaughan wrote:
>>> play{LFCub.ar(LFSaw.kr(LFPulse.kr(1/4,1/4,1/4)*2+2,1,-20,50))+(WhiteNoise.ar(LFPulse.kr(4,0,LFPulse.kr(1,3/4)/4+0.05))/8)!2}//
>>>
>>> #supercollider
>>
>> play{(DFM1.ar(LFCub.ar(LFSaw.kr(LFPulse.kr(1/4,1/4,1/4)*2+2,1,-20,50))+(0.25*DFM1.ar(WhiteNoise.ar(LFPulse.kr(4,0,LFPulse.kr(1,3/4)/4+0.05))/8,(1.0+LFCub.kr(0.02,3.5))*1500+230,0.8,3.1,1,0.0015)),MouseX.kr(5,3000,'linear'),MouseY.kr(0.0,1.1),0.9,0,0.002)*0.5)!2}
>>
>
> So can you write such a module in Java as well? It's a bit odd to have a Java
> application, but then requiring all modules to be compiled for each platform.
Peter,
I'm not sure I follow you. sc isn't a java application. Perhaps you're referring
to the java version of DFM1, which I wrote as a reference prior to porting to
(C/C++) SuperCollider, pd and Max.
The sc language is compiled into its own bytecode, transmitted via OSC to a
server. The ugens provide primitives which the bytecodes reference, ie, all CPU
intensive operations are handled by native compiled code.
Some details on this in chapter 24 in The SuperCollider Book (the VM opcodes are
listed on P670).
Tony (HB)
More information about the music-bar
mailing list