Sequence algorithm

M K's icon

Does anyone have an example of an algorithm that produces sequences?
Thanks

kLSDiz's icon

Does anyone have an example of an algorithm that produces sequences?
Thanks

?

Max Patch
Copy patch and select New From Clipboard in Max.

M K's icon

Thanks. But it should be a fixed sequence. So im able to tweak it with two or more numbers

Source Audio's icon

What do You mean by fixed ?
length ? or range ?

M K's icon

I think I mean a sequence that has a pattern. No randomness

Source Audio's icon

If You want all possible combinations of range and length,
than just use uzi and hit something similar to pass cracker.
That will leave You with large amount of lists - patterns
without any randomness.

Source Audio's icon

I mean something that produces all possible combinations.
Like if You decide to have sequence length of 4, and possible range between 0 and 100,
than one woul start with 0 0 0 0, 1 0 0 0, 2 0 0 0, 3 0 0 0, and so on till
100 100 100 100.
And than You select one of that milion produced sequences.

kLSDiz's icon

joking aside, please be more specific about wanted result. Making sequence(r)s is a basic "piece-of-cake" activity in Max.

This could be a starting point:

Max Patch
Copy patch and select New From Clipboard in Max.

If you want to dig into something more elaborate check the book by Gregory Taylor: https://cycling74.com/products/books
https://s3.amazonaws.com/cycling74-books/StepbyStep_Patches.zip

M K's icon

I guess the length and range could be whatever, but how do I make a "seed"?

M K's icon

You can choose fx a length of 6 and a range of 4 and then it could go like 1, 3, 2, 4, 2, 3
I just miss the sequence

Roman Thilenius's icon


random each step

randomly choose n out of 16

randomly choose 3 out of 16, but only within the range of 1-12

randomly choose 3 out of 16, but with other than a uniform distribution

every 4th active, others out

every 3rd inactive, others active

convert decimal numbers to binary

read from random coll / presets

classic euclidian

1st active, then 1 rest, then 2 active, then 2 rests, then 3 active ...

invertation of the current status

copy from another sequencer

...

and that is only for 0/1 sequences.

for int or floats you can find thousands on the net. literally every simple arithmetic operation such as "n1=n0+5, %16, repeat 3 times" will produce more or less useful result for graphics or music.