< Back to IRCAM Forum

Search way to get lists from X*n

Hi All

I’m excusing for creating another topic …

I want to create lists with different amounts- from a list with y elements.
I made a sketch so its more clear to understand (sc)

theres a list with y amount of numbers
then in first list I want X numbers in this sketch its 7
then in second list I want 72 numbers but the first 7 should be the same and only added 7 new
then in third list I want 7
3 numbers -> the first 14 (7*2) should be the same and agin it should add 7 new
and so on…

in this example till 7*5

I think its possible with loop but I don’t get it how to make it … :smiley: and in wich mode should the random function be?

hope for s.b. its intelligible :slight_smile:

Thanks a lot <3

Best L

Bildschirmfoto-2017-11-01-um-11.51.42.png

Hi Lena,

Your explanation is not very clear but i think i understand your problem.
First :
you don’t need the repeat-n to multiply an atom (number here) with a list. om* will do just fine.

Second :
when using random (here nth-random) with multiple outputs connected to it and you need it to be one result each evaluation, you just have to put your nth-random in eval-once mode by selecting it, typing b and clicking one time on the cross which will become a “1” symbol.

If you need an example, please do send your patch i will fix it for you.

Best
K

Dear Karim

thanks for reply! :slight_smile:

-to first …I think I need that n-repeat because of the source the nth-random is drawing, but you couldn’t know its not in screenshot…

-to second: in 1-mode he is only taking one atom and putting it 7 times in list but I want 7 severals in one list;
and then the list step by step expand by 7 keeping the previous lists of 7 atoms and add a list of 7 atoms…

maybe its more clear if you see the patch…
would be magnificent if you could fix it :slight_smile:

thanks a lot!

Best L

Ok, i think i begin to understand.

However, still, do you need repeated elemts sometime or the list should be as in the original without repeated elmts ?

Best
K

… I don’t know, sorry :smiley:

could you make an example, please?
But in case I don’t know what you mean I think I don’t need repeated elements at the moment…

Best L

Maybe this ?

random-accum.omp (11.1 KB)

Dear K,

thanks for that! :slight_smile: … as you know I am not using OM so very long so I am not too good reading it only like that,… I need the patch to see it more graphic :smiley:

Thanks,
L

Yes
here it is
k

171101-sketch-lists-x-mal-n-NOT-FINISH-1.omp (15.7 KB)

Dear Karim,

yes thats it!! :slight_smile:
Thank you very, very much! <3

Best L

(PS: the evaluation of loop2, not only last element)