hi soundmind.
audio in usine is an array of the bloc size set in global setup. (by default 128). there is a module in "interface control" called bloc size that ouput the correct value.
let's say you have a bloc size of 128 and you want a base array of 512 to go to sampler. the goal is at each bloc feed the sampler with an array of size 128 , so in bloc 1 the 0-127 part of the 512 array, on bloc 2 the 128-255, ect...
in other words 'scrub a sub window array of bloc size' at each bloc inside the bg array.
to achieved this the solution i use is connecting an "extract sub array" module out of the 512 array (or more now in v5)with a lengh of 128 (bloc size), start position on bloc 1 is 0, on bloc 2 is 128, ect., so this need a bloc clock, something tht count bloc.
bsork helped me doing a script called bloc counter. i multiply the bloc nb out by bloc size to get the start position of the extract subarray., if then you connect the array out of sub array, tada you get audio you can feedd an rec to sampler.
here is the script i use, copy paste in the empty new script:
/////////////////////////////////////////////////
VAR reset, counter : tParameter;
VAR count : Integer;
PROCEDURE Init;
BEGIN
reset := CreateParam('reset', ptButton);
SetIsOutput(reset, FALSE);
counter := CreateParam('counter', ptDataField);
SetIsInput(counter, FALSE);
END;
//PROCEDURE Callback(count : Integer);
//BEGIN
//END;
PROCEDURE Process;
BEGIN
IF (GetValue(reset) = 1) THEN BEGIN
SetValue(reset, 0);
count := 0;
END
ELSE BEGIN
SetValue(counter, count);
count := count + 1;
END;
END;
////////////////////////////
just curious: what solution did ya use to get audio to array? some queue data in array, dispatching and concat all arrays, or concat each new aray with previous (what i use actually) or maybe something else?
yes it can make some interesting results piched low and adapted for other automations, i love to get a spring effect out of kick drum piched down sinus., experience fractal things (each element audio piched low automat something)..strange results...
there are certainly lot of cools things to experiment with usine, but we have to remind usine is not a modular synth like ie reactor, it's better made to perform at a macro level (bloc scale and not sample scale)...
to make usine access sample accurate operations we would need to have a bloc size of 1 sample, with a nasa 1024 core computer, it's not is primary aim, for true optimized synthesis i guess it's better to use nay's pack or reactor, tassman ect..
still we can make lot's of cool things...
ive gone further with my draw oscillator and made a classic subtractive synth, with vca, vcf enveloppes and well even if higher in cpu that most of synth, it sounds really not bad and allow nice possibilities unavaible, at least not customizable on other synths..
and the thing im a bit stupidly proud of, it's a 100 percent usine synth
