1. IMPORTANT:
    We launched a new online community and this space is now closed. This community will be available as a read-only resources until further notice.
    JOIN US HERE

Repeatable random seed sequences

Discussion in 'Building With Reaktor' started by playmodes, Nov 8, 2018.

  1. playmodes

    playmodes NI Product Owner

    Messages:
    118
    Hi again!

    Is there a way to have repeatable random sequences?
    As far as i could see, when using event random in core with a fixed seed i can't get the same sequence twice. On the event core random module there is no "reset" parameter to re-start the sequence from the begining. I realized, though, that the sequence is restarted every time you reset the reaktor engine (power on-off)

    Does anyone know a solution for this?
     
  2. colB

    colB NI Product Owner

    Messages:
    3,969
    There is no true random in Reaktor, only pseudo random. If you start with the same seed, and trigger the random generator with an identical series of trigger events, you will _always_ get the same output.

    If you are getting different output each time, there is something in your code that is causing the sequence of triggers driving the random generator to change in some way - more, fewer, or in a different order with respect to some other process in your system.

    Can't help more unless you provide an actual example - preferably a simplified example.
     
    • Like Like x 1
    • Informative Informative x 1
  3. playmodes

    playmodes NI Product Owner

    Messages:
    118
    Ok... i found the solution!

    if i want to repeat the exact same sequence every now and the i just need to resend the seed value before begining to trigger the random values

    :-D

    there's nothing like exposing a problem to find its solution

    Thank you colB again for your help, you are my reaktor angel!
     
  4. Thala

    Thala NI Product Owner

    Messages:
    577
    thanks a lot. to both of you!
    this triggers ideas :)
     
  5. playmodes

    playmodes NI Product Owner

    Messages:
    118
    My idea is to use this for generating very controlled pseudo-random rhythms and melodies that you can access later just by adjusting a global seed.
    Something like navigating through seeds to search for cool stuff inside the magma of randomness.... music mining...
     
    • Like Like x 1
  6. Paule

    Paule NI Product Owner

    Messages:
    7,555
  7. PaHaMa

    PaHaMa NI Product Owner

    Messages:
    75
    Very promising approach! Thanks!