Logo

ZLB



Archive for December, 2009

SC hint #4

Monday, December 28th, 2009

VCAs in SC : a question of summing. VCAs are usefull in order not to spend cpu cycles adjusting levels with a dedicated synth, but still keeping full range on your controlling faders, knobs, etc.

(~vca = 0;
w=FlowView.new;
g = EZSlider(	w,  	// parent
		390@20,	// bounds
		"The VCA ",	// label
		\db.asSpec, 	// controlSpec
		{|ez| ~vca = ez.value;i.value  = ~vca + h.value } // action
).value_(0);
h = EZSlider(	w,  	// parent
		390@20,	// bounds
		"The fader ",	// label
		\db.asSpec, 	// controlSpec
		{|ez| i.value  = ~vca + ez.value} // action
);
i = EZSlider(	w,  	// parent
		390@20,	// bounds
		"Result ",	// label
		\db.asSpec, 	// controlSpec
		{|ez| } // action
);
)

Going in mini-tour this january !! Porto and Galiza and The Hague

Saturday, December 26th, 2009

FRIENDLY VIRUS MINI TOUR with ÁNGEL FARALDO, ZLB and TIMITIMINONO:
07/01 - Breyner85, PORTO, PT (w/ FILIPE LOPES)
10/01 - Alg-a Lab, VIGO, ES
12/01 - Casa das Atochas, A CORUÑA, ES
13/01 - FERROL, ES
21/01 - Den Haag, NL

SC Hint #3 - Block - Break

Tuesday, December 22nd, 2009

if you need to break from the middle of a iteration, because let’s say you had an error and you shouldn’t continue, then you can use:

block{ |break| 10.do{ |i| if(i==5){ break.value(999) } } }

SC Hint #2 - get the Rect with the size of View

Friday, December 18th, 2009

If you have a view and you want to get a Rect with it’s width and height you can do:

Rect(0,0,view.bounds.width,view.bounds.height)

But it’s more compact to do:

view.bounds.extent.asRect

info_at_friendlyvirus.org
sales_at_friendlyvirus.org
www.myspace.com/friendlyvirus/