[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[sc-dev] chaining effects the patch muh



//Böllerschüsse in Freiburg an Heiligabend


// create an array of buttons.
var w,name;

s.boot;


name = ["tish","moto-rev","echo","reverb","stop"];

w = "button panel", Rect(128, 64, 340, 360));
w.view.decorator =t = FlowLayout(w.view.bounds);


t.nextLine;

5.do({ arg i;
c = SCDragSource(w, Rect(0, 0, 75, 24));
c.string = name.at(i);
c.beginDragAction = { arg view; name.at(i); };
});
t.nextLine;




d = SCDragSink(
w, Rect(0,0, 75, 24));
d.string = "Sink ";
d.action = { if (d.object == "stop",{
s.sendMsg("/n_free", 1001)},{

if (d.value != nil, {
s.sendMsg("/n_free", 1001);
s.sendMsg("/s_new", d.object, 1001, 0);
})
});
};




v = SCStaticText(w,Rect(0, 0, 75, 25));
v.string = "trigger";
t.nextLine;


e = SCDragSink(
w, Rect(0,0, 75, 24));
e.string = "Sink ";
e.action = { if (e.object == "stop",{
s.sendMsg("/n_free",1002)},{

if (e.value != nil, {
s.sendMsg("/n_free", 1002);
s.sendMsg("/s_new", e.object, 1002, 0);

})
});
};
w.view.background = Color.rand;
w.front;


Nicholas Busssmann
Auguststrasse 10
10117 Berlin
http://www.studiobeige.de
++49-30-47306119