Diff from network of loosely connected nodes by LFSaw (29 Apr'13 12:05) to Re: network of loosely connected nodes (now working) by LFSaw (21 Oct'13 22:30)
name
Re: network of loosely connected nodes (now working)
description
Idea: network of loosely connected nodes. Each node has a dedicated pulse rate / phase. Inducing an irregular trigger signal influences the nodes to (gradually) adapt their pulsation freq (and phase?) to the one of the input.
sound example: https://soundcloud.com/lfsaw/sync-weakconnection-tduty-time
code
(
Ndef(\nodeTest, {
// the input
// var input = Impulse.ar([1, 3, 5].reciprocal * 1, phase: [0, 0.13325, 0.5]).sum;
//var theinput nodes= Impulse.ar([2, each3], takesphase: its[0, predecessor0.25]).sum;
// var as input and= estimatesSelect.ar(Line.kr(0, the1, duration10) between* twoSinOsc.ar(0.01).range(0, events1), [Impulse.ar([0.2,
//0.3], Unfortunatelyphase: [0, the0.25]).sum, startingLocalIn.ar(1)]);
var pointinput of= TimerSelect.ar(Line.kr(0, is1, '10), [Impulse.ar(0'.134), whichLocalIn.ar(1)]);
// wethe havenodes, toeach puttakes intoits reasonablepredecessor limits.as Systeminput settlesand afterestimates aboutthe 15duration secondsbetween two events.
var nodes = (1..1020).inject([input], {|last, item|
var dur = Gate.ar(
Timer.ar(TDelay.ar(last.first, Rand(1, 4))),
last.first
);
[TDuty.ar(max(0
dur.25lag(20), Timer
TDelay.ar(last.first, dur.lag(20)), 0,
1
)] ++ last
});
LocalOut.ar(nodes.first);
// add a pitch to each
nodes = nodes.collect{|node, i| SinOsc.ar((4000500 + (i*500250))), 0.9pi)
// * Decay2.ar(node, 0.01, 0.2)
* EnvGen.ar(Env.perc(0.0001, 0.1), gate: node)
* 2 * (25-i) * 0.01};
// splay in stereo field
//nodes.sum!2;
Splay.ar(nodes)// + (SinOsc.ar(2000) * Decay2.ar(input, 0.01, 0.2) * 0.1);
}).play
)
category tags
code fork, weak connection, synchronization
ancestors
1-4Tw