Tidal icon indicating copy to clipboard operation
Tidal copied to clipboard

Should `choose` work with patterns as well as lists?

Open jarmitage opened this issue 6 years ago • 2 comments

Tidal-1.0.x (currently) has no patToList, which means it's harder to select random elements from a pattern.

Perhaps choose could be generalised, or another choose could be created, to facilitate choosing random elements from patterns.

jarmitage avatar Dec 25 '18 14:12 jarmitage

We could either make patterns of lists:

choose :: Pattern [a] -> Pattern a

or use polyphony as lists:

choose :: Pattern a -> Pattern a

For chords, we're doing the latter, which sort of makes sense. For something like choose, the former probably makes sense.. but then, what if we want to randomly choose a note from a chord?

yaxu avatar Dec 27 '18 11:12 yaxu

I think a version of mono that makes a pattern monophonic by picking from concurrent events at random would be the answer to this,

yaxu avatar Jul 09 '20 20:07 yaxu