Tidal icon indicating copy to clipboard operation
Tidal copied to clipboard

add muting with `_` for p and d1-16

Open geikha opened this issue 1 year ago • 3 comments

As said on the Discord:

An idea that could be interesting for performing:

_d1 _ = d1 silence
_d2 _ = d2 silence
-- ... etc
_p x = p x $ silence

what if we define underscore functions for each default stream (d1, d2, d3, etc)? this way one could easily silence or "mute" a pattern via adding an underscore and evaluating the same block of code instead of having to write d1 $ silence at the bottom and evaluating that

Wondering if this would have to be replicated on the pulsar default BootTidal files and such


Also see https://github.com/tidalcycles/strudel/pull/1059

geikha avatar Apr 18 '24 02:04 geikha

Thanks, I've just merged #1007 though which means these aliases will need moving to Sound.Tidal.Boot.

That PR will reduce the need to update editor default BootTidal.hs files in the future.

yaxu avatar Apr 18 '24 08:04 yaxu

Have you tested this? I'd have thought the functions would need adding to the export list at the top

yaxu avatar Apr 18 '24 19:04 yaxu

aghh my bad,, I thought I tested this but I was using my own bootfile still 🤦‍♂️

geikha avatar Apr 18 '24 19:04 geikha