Tidal icon indicating copy to clipboard operation
Tidal copied to clipboard

Stay On Last Value?

Open BenjaminWynn opened this issue 4 years ago • 2 comments

Is there a way to have Tidal go through a series of numbers in order and then remain on the last value? So in this case after every goes through its numbers it stays on 5 and doesn't wrap around? d1 $ every "<2 3 4 5>" (hurry 3.5) $ sound "bd sn"

BenjaminWynn avatar Mar 30 '21 17:03 BenjaminWynn

I'm guessing in this particular case you'd also want '2' to last 2 cycles, '3' to last 3 cycles, etc? That's an extra layer of complication..

Here's a first go at a simpler case of going through them in a cycle, not quiet there..

through xs = _segment n $ select envL xs
  where n = toRational $ length xs

d1 $ qtrigger 1 $ n (through [2,3,4,5]) # s "drum"

yaxu avatar Apr 22 '21 20:04 yaxu

Hey Alex. I was imagining it working the way your example does! every "2" then "3" up to "5" and staying on "5".

Thank you!

BenjaminWynn avatar Apr 22 '21 23:04 BenjaminWynn