(Hopefully) Interesting snippet for making melodies

I'm gonna try these out soon!

And, I am glad you enjoyed my set. It wouldn't have been possible without your initial pattern :slight_smile:

2 Likes

Here's a structure that allows changing the key of multiple running patterns at once (I've been finding it super useful!):

-- boot.tidal
let getGlobalMode = cS "chromatic" "global_mode"
    setGlobalMode = setS "global_mode"
    getGlobalRoot = cF0 "global_root"
    setGlobalRoot = setF "global_root"
    tonal rr mm = note . (|+ rr) . scale mm
    t = tonal getGlobalRoot getGlobalMode
    setkey root mode = do
      setGlobalMode mode
      setGlobalRoot root

-- usage
setkey "<0 3>" "dorian"

do
  p "mel" $ t "0 2 4 7" # s "superpiano" # pan 0.4
  p "bass" $ t "0@3 4@3 7@2" # s "superpiano" # octave 5
  p "chords" $ t "[~ [-3,0,4,6]*<2 1>]*2" # s "superhammond" # pan 0.65

-- then
setkey 4 "locrian"
setkey (-2) "major"
...

Calling setkey changes the global root and mode. Hope someone finds this helpful!

btw. I discuss this solution in detail here

3 Likes

Really nice, I am going to try that out lately.
The YT video is private, but I understand how it works, just need to try it for myself.

Thanks

1 Like