View this PageEdit this PageUploads to this PageHistory of this PageTop of the SwikiRecent ChangesSearch the SwikiHelp Guide

einfache code beispiele

ein paar sachen vom 12.11.02
5.do({
	"hellllo".postln
})
hellllo
hellllo
hellllo
hellllo
hellllo


(3 * (7 + 8)).postln


5.rrand(10).postln
5.class.postln
"eee".class.postln
String

("uh." ++ "hamm" ++ "tette").postln

(
var hans;
hans = 0;
hans = hans + 8;
hans.postln
)

f = { (h*h/(h-1)+h.sin).postln  };

h = 1;
h.postln;
f.value.class.postln;

f = { arg zugeben; zugeben + 1 };
f.value(59).postln;
100.do({ arg i;
	f.value(i).post
})

f = { arg input=0, der=9;
		var hans, output;
		hans = 1.0.rand;
		output = input * hans * der;
		output
};

f.value(8, 8).postln;
18.7316
0
a = f.value(8)

uh.hamm



{ LFPulse.ar(MouseX.kr(800, 10000), 0.2, 0.1) }.play;

{ Pulse.ar(MouseX.kr(800, 10000), 0.2, 0.1) }.play;

{ LFClipNoise.ar(9000, 0.1) }.scope;




(


{
	var out, mx;
	mx = MouseX.kr(1, 100);
	out = Formant.ar(mx, 400, 50, 0.1);
	out * LFNoise1.kr([2,2]*mx).max(0)


}.scope

)


{
	Formant.ar(100, LFNoise0.kr([2,3], 15, 70).midicps,  50, 0.1)
}.scope;



{
	Formant.ar(100, LFNoise0.kr(1, 15, 70).midicps,  MouseX.kr(1, 1000), 0.1)
}.scope;

{
	Formant.ar(100, MouseX.kr(70-15, 70+15).midicps,  50, 0.1)
}.scope;



{
	var fr;
	fr = [1, 3, 5];
	Mix.ar(
		Formant.ar(100, fr*MouseX.kr(70-15, 70+15).midicps,  LFNoise0.kr(20, 1000, 1001), 0.1)
	);
}.scope;

***
/*
authors so far:
scgroup
*/


Link to this Page