Welcome to %s forums

BrainModular Users Forum

Login Register

roll array

Tell us what you'd like Usine to do
Post Reply
23fx23
Member
Posts: 2545
Contact:

Unread post by 23fx23 » 16 Apr 2009, 20:54

a roll array module would be helpfull: kind of the shift array but if you shift ie +1 the last value go to first value ect...

but maybe it's already possible?

User avatar
senso
Site Admin
Posts: 4424
Location: France
Contact:

Unread post by senso » 16 Apr 2009, 22:01

A perfect candidate for a script?
Who whant to create it?

bmoussay
Member
Posts: 130
Contact:

Unread post by bmoussay » 17 Apr 2009, 16:57

Hi,


I just made a script for a circular array.
It's there:

http://www.sensomusic.com/download.php? ... 0Array.pat

Hope it can help,
Regards,

B.

User avatar
nay-seven
Site Admin
Posts: 5684
Location: rennes France
Contact:

Unread post by nay-seven » 17 Apr 2009, 18:25

thanks benjamin , i've tried it..
but if i choose -5 and more negative value i've this message :

[4021] [Script Error] : Out of Record Fields Range in 0 at 999
[4022] [Script Error] : Out of Record Fields Range in 0 at 999
[4023] [Script Error] : Out of Record Fields Range in 0 at 999

bmoussay
Member
Posts: 130
Contact:

Unread post by bmoussay » 17 Apr 2009, 20:14

Hi Nay-Seven,

You're right, I had forgotten some small protection.
Here's the new version:

http://www.sensomusic.com/download.php? ... 0Array.pat

Regards,

B.

User avatar
nay-seven
Site Admin
Posts: 5684
Location: rennes France
Contact:

Unread post by nay-seven » 17 Apr 2009, 21:26

works fine !
thanks !

23fx23
Member
Posts: 2545
Contact:

Unread post by 23fx23 » 18 Apr 2009, 01:33

haha bmoussay rock once again, thx a lot!!!!

23fx23
Member
Posts: 2545
Contact:

Unread post by 23fx23 » 01 May 2009, 21:49

just wanted to thank you again bmoussay, this is a very usefull tool!

just wondered if you/anybody would know the best way to store any data in realtime to an array, and then replay it same rate.
this would let us use this great roll function on recorded data sadly the xy don't output arrays... or did ya manage nay in your instrument to roll recorded data or is it other sequence?

Ive tested to queue data in array with no success because wasn't reflecting correctly speed changes. I guess it has to have kind of "sample rate" for rec and playback but can't find...

bsork
Site Admin
Posts: 1334
Location: Asker, Norway
Contact:

Unread post by bsork » 02 May 2009, 07:43

The first idea that strikes me (except using the sampler module), would be to have a "block counter" array where you input the number of block executions since recording started at the same time as you record the actual values in another array. When replaying, restart the block executions counter and check whether the next stored value in the block counter array matches. If so, output the actual value and move on to check the next counter.
Bjørn S

23fx23
Member
Posts: 2545
Contact:

Unread post by 23fx23 » 02 May 2009, 17:24

I was thinking of something like this indeed thx bsork. if fact this is exactly what i thought about,

but sorry for my ignorence, how can I count usine blocs executions couldn' find any module?
or is this made by generating a clock with a tempo linked to usine block size?
I need to get this usine cycles clock counter! how to?


edit; YEs just tried the cloc tec, seems to work very well cool, let me record virtually anything and roll rec data.

made this:
(sample rate / blocksize) gives nb of blocks in one second. one second/that number gives bloc duration. so can generate a clock of that duration folowed by a counter that count blocs executions, and store on each change the chosen input to the next array value to rec.
playback: swap array and get elementX value. driven by another clock, same rate.
speed variations are now reflected correctly. cool.

will post a pach later if anyone interested, rec anyting and rock n' roll it thx to boussay and bsork.
but now back to config arf a bit late for tomorrow electrolyses...
maybe would be even more accurate is usine could natively send a bloc clock, or other way to get this?
ps this rocks but would be usable with more items if they had mse down, know they're coming ;)

Post Reply

Who is online

Users browsing this forum: No registered users and 13 guests