[twitter] @sctwitters lists

Dear users,

I made an twitter account just to create lists with the SuperCollider users and/or devs.
So it’s easier to follow a list of the users (or devs, but they usually are users too) instead of searching for people using the #supercollider tag.

The list is at the moment almost empty, please mention @sctweeters and I’ll add you the list (or via e-mail, but it’s in twitter, for tweeters)

http://twitter.com/sctweeters

and here the lists:

http://twitter.com/sctweeters/users
http://twitter.com/sctweeters/devs

I hope this bring the sc-twitter community more together ๐Ÿ˜‰

Greetings,
@sctweeters
 

#supercollider tweets

SuperCollider์—์„œ 140characters Project๋ฅผ ํ–ˆ์ฃ . ์ •๋ง ์žฌ๋ฏธ์žˆ๊ณ  ๊ณต๋ถ€๊ฐ€ ๋งŽ์ด ๋˜๋Š” ์†Œ์Šค๋“ค์ด ๋ฐ”๋กœ ์ €๊ธฐ ๋งํฌ์— ์žˆ์Šต๋‹ˆ๋‹ค!

 

http://pipes.yahoo.com/pipes/pipe.info?_id=7aaebaf85a767b15c1143e602c4c2a5b

21. Event? (1)

Event

Event๋Š” ํ•˜๋‚˜์˜ Environment๋กœ์„œ Play๋ฉ”์„ธ์ง€๋ฅผ ๋ฐ›์„ ๊ฒฝ์šฐ์— ์•ก์…˜์„ ์ทจํ•˜๋„๋ก ๋งŒ๋“ค์–ด์ง„ ๊ฒƒ์ž…๋‹ˆ๋‹ค.
Event๋Š” defaultParentEvent๋ฅผ ์ œ๊ณตํ•˜๋Š”๋ฐ ์ด๋Š” ๋‹ค์–‘ํ•œ ๋‹ค๋ฅธ event type ์„ ์ •์˜ํ•ด์ฃผ๊ณ  ๊ฐ๊ฐ์˜ type์— default key.value pairs๋ฅผ ์ œ๊ณตํ•ด ์ค๋‹ˆ๋‹ค.
type ์€ type, note์˜ ๊ฐ’์— ์˜ํ•ด ๊ฒฐ์ •๋ฉ๋‹ˆ๋‹ค.

Event ๋Š” ๋‹ค์Œ๊ณผ ๊ฐ™์ด ์ •์˜๋˜์ง€์š”

( ).play; // the default note
( freq: 500, pan: -1) .play; // 500 Hz, panned left
( degree: (0..12)).play // a whole tone cluster
Events ์™€ SynthDefs

SynthDef์—์„œ๋Š” ํ•˜๋‚˜์˜ instrument๋ฅผ ์ •์˜๋‚ด๋ ค ์ค๋‹ˆ๋‹ค. ๊ทธ instrument๋Š” ‘Event’์— ์˜ํ•ด ์‹คํ–‰๋˜์–ด ์ฃผ๋Š” ๊ฒƒ์ด์ง€์š”.
๋‹ค์Œ์˜ ์˜ˆ์ œ๋ฅผ ๋ณด์„ธ์š”.

SynthDef(“pm”, { | out=0, freq=440, amp=0.1, pan=0, gate=1, ratio = 1, index = 1, ar = 0.1, dr = 0.1 |
var z;
z = LPF.ar(
PMOsc.ar(freq, freq * ratio, Linen.kr(gate, ar,index, dr), 0, 0.3),
XLine.kr(Rand(4000,5000), Rand(2500,3200), 1)
) * Linen.kr(gate, 0.01, 0.7, dr, 2);
OffsetOut.ar(out, Pan2.ar(z, pan, amp));
}).store;

(instrument: “pm”).play;
(instrument: “pm”, ratio: 3.42, index: 12, freq: 150, ar: 8, dr: 3, sustain: 10).play;

pm์ด๋ผ๋Š” SynthDef๊ฐ€ ์ •์˜๋‚ด๋ ค์กŒ๊ณ , store์— ์˜ํ•ด ์„œ๋ฒ„์— ๋ณด๋‚ด์ง‘๋‹ˆ๋‹ค.
** ์„œ๋ฒ„์— ๋ณด๋‚ด์ง„ synthDef๋ฅผ ํ™•์ธํ•˜์‹œ๋ ค๋ฉด Users/Library/ApplicationSupports/SuperCollider3/synthdefsํด๋”์— ์ €์žฅ๋ฉ๋‹ˆ๋‹ค. ์ด๋ฅผ ์‚ฌ์šฉํ•˜์—ฌ ๋‹ค๋ฅธ๊ณณ์—์„œ๋„ SynthDef์— ์ ‘๊ทผ ๊ฐ€๋Šฅํ•œ๋ฐ ์ฐธ๊ณ ํ•˜์„ธ์š”.
์•„๋ž˜ instrument๋ฅผ ์‚ฌ์šฉํ•˜์—ฌ pm์„ ์—ฐ์ฃผํ•ด ์ฃผ๋Š”๊ฒƒ์ด event์ž…๋‹ˆ๋‹ค.
Events ์™€ Patterns
์ด๋ฒคํŠธ๋Š” ํŽ˜ํ„ด ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ์™€ ํ•จ๊ป˜ ์ ์šฉ๋ฉ๋‹ˆ๋‹ค. pattern์€ ๋‹ค๋ฅธ๊ณณ์—์„œ ๋‹ค๋ฃจ์–ด ๋ณด๋„๋ก ํ•˜๊ฒ ์Šต๋‹ˆ๋‹ค.
๋‹ค์Œ์€ ๋ช‡๊ฐœ์˜ keys๊ฐ€ ํŒจํ„ด์— ์ ์šฉ๋œ ์˜ˆ์ œ์ž…๋‹ˆ๋‹ค. ์—ฌ๊ธฐ์„œ key๋“ค์€ stepsPerOctave, note, ctranspose, detune, sustain, dur, db๊ฐ€ ์‚ฌ์šฉ๋˜์—ˆ์Šต๋‹ˆ๋‹ค.
(
p = Pbind(*[
stepsPerOctave: Pstep(Pseq((2..12).mirror, inf),12), // 3 – 12 tone e.t. scales
note: Pseq((0..12).mirror, inf),

ctranspose: Pwhite(-0.2, 0.2), // detune up to +-20 cents
detune: Pwhite(-1.0, 1.0), // detune up to 1 Hz
sustain: Prand([0.2, 0.2, 0.2, 4], inf), // notes last 0.2 or 4 seconds
dur: Prand([0.2, 0.2, 0.2, 0.2, 0.2, 0.8], inf), // 1 in 6 chance note lasts 0.8 seconds
db: Pstep( // 4 beat accent structure
Pseq([-15, -25, -20, -25], inf),
0.8
)
]);
p.play
)

Event play method.
Event๋‚˜ ๋‹ค๋ฅธ Environment๊ฐ€ use(function)๋ฉ”์„ธ์ง€๋ฅผ ๋ฐ›์œผ๋ฉด, ๊ทธ ์ฆ‰์‹œ ์ด๋Š” currentEnvironment๊ฐ€ ๋˜๋ฉฐ, function์„ ๊ณ„์‚ฐํ•˜๊ณ , currentEnvironment์˜ ์›๋ž˜ ๊ฐ’์„ ๋‹ค์‹œ ์ €์žฅํ•ฉ๋‹ˆ๋‹ค.
์ด๋ ‡๊ฒŒ ํ™•์ธํ•ฉ๋‹ˆ๋‹ค.
currentEnvironment.at(keyName)
๋˜๋Š” ~keyName
๋‹ค๋ฅธ ํ‚ค๊ฐ’์„ ์„ค์ •ํ• ๋•Œ์—๋Š”
currentEnvironment.put(keyNamem value)
์ด๋Š” ๋‹ค์Œ๊ณผ ๊ฐ™์Šต๋‹ˆ๋‹ค.
~keyName = value
์—ฌ๊ธฐ์„œ ~keyName์€ ๋ฌผ๋ก  ์ €์žฅ๋œ ํ‚ค์˜ ๊ฐ’, ์œ„์˜ ์˜ˆ์ œ๋กœ ๋ณผ๊ฒƒ๊ฐ™์œผ๋ฉด ~sustain, ๋˜๋Š” ~dur๋“ฑ๋“ฑ์ด ๋˜๊ฒ ์ง€์š”.
‘~Name'(environment)์— ๋Œ€ํ•ด์„œ๋Š” ๋‹ค์Œ์— ๋‹ค์‹œ ๊นŠ๊ฒŒ ๋‹ค๋ฃจ๋„๋ก ํ•˜๊ฒ ์Šต๋‹ˆ๋‹ค.

๋‹ค์Œ์€ Enevt play method๋ฅผ ์ •์˜ํ•œ ์˜ˆ์ œ์ž…๋‹ˆ๋‹ค.
play {
if (parent.isNil) { parent = defaultParentEvent };
this.use { ~play.value };
}

์œ„์— ์˜ˆ์ œ๋ฅผ ์„ค๋ช…ํ•˜์ž๋ฉด ~play์— ์ €์žฅ๋˜์–ด ์žˆ๋Š” ๊ฐ’์ด ์—†๋‹ค๋ฉด defaultParentEvent๋ฅผ ์žฌ์ƒํ•˜๋ผ๋Š” ๋œป์ž…๋‹ˆ๋‹ค.

-Reference
SC Help file.


ย