Customizing params in Tidal

I am trying to create a new effect as per the instructions in

/Library/Application Support/SuperCollider/downloaded-quarks/SuperDirt/hacks/adding-effects.scd

I am having trouble locating the params.hs file. I have only .hi files in
/Users/~user/Library/Haskell/ghc-8.2.1-x86_64/lib/tidal-1.4.4/Sound/Tidal

I have a params.hi file in there but it’s binary. Any idea, what’s going on here? I also renamed the params.hi file just to test it and Tidal still worked fine. Perhaps there’s another directory I should look in?

Hi @speedo19, the suggestion there is to download the sourcecode to tidal from https://github.com/tidalcycles/tidal, edit the src/Sound/Tidal/Params.hs, and install it (with cabal install or similar).

There’s no need to do that though, you can just run the code in your editor, in the same way as any tidal code. E.g. run:

let tsdelay = pF "tsdelay"
    xsdelay = pI "xsdelay"

then

d1 $ tsdelay "0 0.25 0.5 0.75 1" # xsdelay "3 124 3 12 62 2" # sound "can"

Alternatively you can use the pF / pI etc functions within a pattern, and not make any external definitions:

d1 $ pF "tsdelay" "0 0.25 0.5 0.75 1" # pI "xsdelay" "3 124 3 12 62 2" # sound "can"

Yes, thanks Alex! I finally figured that out.

I found some very nice explanation here: http://ericfairbanks.org/music/tidal/code/2017/06/05/tidal-tutorial-part-2.html
which thought me about this kind of stuff.
If there are any other resources i would love to hear!