Group Admins

  • Profile picture of Karim
  • Profile picture of Jean

OpenMusic

Public Group active 2 hours, 6 minutes ago

User group for OpenMusic and computer-aided composition. Visit the Forum for discussions.

search way to get lists from X*n

Author 2 Subscribed Users |
Profile photo of MariaRose
MariaRose

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 7*2 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 .. 😀 and in wich mode should the random function be?

hope for s.b. its intelligible :)

Thanks a lot <3

Best L

Attachments:
  1. Bildschirmfoto-2017-11-01-um-11.51.42

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

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

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

November 1, 2017 at 11:52 #24231
Profile photo of Karim
Karim

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

November 1, 2017 at 13:20 #24234
Profile photo of MariaRose
MariaRose

Dear Karim

thanks for reply! :)

-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 :)

thanks a lot!

Best L

November 1, 2017 at 14:16 #24235
Profile photo of Karim
Karim

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

November 1, 2017 at 15:40 #24238
Profile photo of MariaRose
MariaRose

.. I don’t know, sorry 😀

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

November 1, 2017 at 17:13 #24239
Profile photo of Karim
Karim

Maybe this ?

November 1, 2017 at 17:59 #24240
Profile photo of MariaRose
MariaRose

Dear K,

thanks for that! :) .. 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 😀

Thanks,
L

November 1, 2017 at 20:56 #24243
Profile photo of Karim
Karim

Yes
here it is
k

November 1, 2017 at 22:50 #24244
Profile photo of MariaRose
MariaRose

Dear Karim,

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

Best L

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

  • This reply was modified 2 weeks, 6 days ago by Profile photo of MariaRose MariaRose.
November 2, 2017 at 09:32 #24247

You must be logged in to reply to this topic.

Log in now