resetCycles

do
-- setcps(144/60/4)
setcps(166/60/4)
-- TODO SoundDesign reconsiderations kick/snare
-- gF1/gF2/gF3 deliberately NOT redefined here: use BootTidal's safe-at-centre
-- gDJF. The old local form (# djfbus N (range 0.05 0.95 "^NN")) is the #21/#48
-- footgun -- djf 0.05 is a ~26 Hz low-pass, i.e. total silence, and that is
-- where an untouched/low knob sits. Bypass is djf 0.5, the CENTRE.
d1 $ gF1 $ gM1
  -- $ fix ((# lpf 150) . (|* gain 0.93)) "kick:5"
  $ midiOn "^41" (<| "k k k <k <k*2 [k k k ~]>>")
  $ midiOff "^41" (<| "k . ~ k ~ ~")
  $ "[kick:4]"
  # gain 1.4
d2 $ gF1 $ gM2
  $ midiOn "^42"  (<| "~ c ~ c*<1!3 <2 [2 4]>>")
  $ midiOff "^42" (<| "~ . c*<1!3 <2!3 4>> ~")
  $ "rampleS37:5"
  # gain 1.8
  -- # lpf 2650
d3 $ gF1 $ gM2 -- Highest hats
  -- PLN 2026-08-02: "d3 should also be the classic techno runner companion on 43,
  -- so it hits(4,8,1)". struct puts the hats ON the euclid rather than thinning
  -- what is already there (mask would only remove); ply 2 doubles each hit into a
  -- running 8. Released, the liquid pattern below returns. TODO @PLN verify.
  $ midiOn "^43" (struct "t(4,8,1)")
  -- $ midiOn "^76" (ply 2)
  $ sometimesBy "0!3 <0 0.5>"  (# n 12)
  $ sometimesBy "0!3 <0.1 0>"  (# n 13)
  $ midiOff "^43" (<| "~ d ~ d d d d*<1 1 2 1> d")
  $ "rampleS34:6"
  # cut 3
  # legato (range 0.28 1 sine)
  # gain (1.4 * (range 0.85 1.05 (fast 4 perlin)))
  # room 0.14 # sz 0.4 # dry 1
  # pan 0.8
  -- Emphasize "and" of beats
d4 $ gF2 $ gM3 
  $ superimpose (const $ gF2 $ gM3 -- Second BASS!
    $ midiOff "^44" (slow 2)  
    $ note "~ [a3 c4] ~ [e3 g3] ~ [a3 e3] ~ g3"
    # "bassWarsaw" |- note 12
    # cut 41 # gain (range 0.5 1.5 "^32")
    -- was `range 0.5 2`. SuperDirt amp is gain^4, so the top of that sweep was
    -- +24.1 dB — the same number that had do_it_right's kick clipping. And this
    -- orbit carries TWO basses at once (this superimpose + the no_sunshine loop
    -- below), both crushed off ^52, so d4 peaks when you push ^32 to either end.
    -- 1.5 = +14.1 dB, which matches the main bass's new ceiling: the ^32 crossfade
    -- now holds roughly CONSTANT loudness instead of getting louder at both ends.
    # crushbus 43 (range 16 2.5 "^52")
  )
  $ whenmod 4 3 (ply "1 2")
  $ chop 8 
  $ loopAt 4 
  $ "no_sunshine:5"
  # gain (1.5 - 0.3 * "^32")   -- was (1.8 - 0.6 * ^32): +20.4 dB with the knob
                               -- UNTOUCHED, i.e. the default state of the track.
  # lpf 4000
  # room 0.4 # sz 0.8
  # delay 0.3 # delayt 0.25 # delayfb 0.5
  -- # octersubbus 41 (range 0 2 "^53")  
  # crushbus 42 (range 16 2.5 "^52")
d5 $ gM3 -- The Voice of Love 
-- $ gF3 $ gM3 
  $ midiOn "^57" ( -- I KNOW
    (# n "<16 ~!3>") 
    . (# cut 5)) -- FIXME VOICE OFF <- root cause was d11 sharing this group, fixed (#70)
  $ midiOff "^57" (>| n ("<~ ~ [~ 0] ~>"  
  + (slow 4 "<9 9 10 11 ~ 12 13 14 ~>")))
  $ "no_sunshine"
  # gain 1.5
  # cut 5
  # room 0.3 # sz 0.3
d6 $ gF3 $ gM3  -- Guitar Sunshine
  $ midiOn "^90" (ply "2!3 <4 8>")
  $ juxBy 0.8 (rev . chop 4 . (# cut 61))
  $ midiOn "^58" ( -- SLICE!
    ply "1 2" . slow 4 . chop 8 . (# n 24)
    )
  $ "no_sunshine/2" 
  # n (slow 2 "<20 20 21 22 23 24 25 26>")
  # cut 6
  # gain 1.4 
  # room 0.3
d11 $ gF3 $ gM3
  $ chop 4
  $ "no_sunshine:4/4"
  # cut 11   -- was cut 5, which is d5's group: every d11 event killed the voice
             -- mid-word (#70, found by pvlint PV004). Group N = orbit N, as d3/d6/d8/d9
             -- already do. If the vocal WAS meant to be monophonic across both layers,
             -- put this back to 5 — it is the only line that changed.
  # room 0.3 # sz 0.5
  # gain 1.2
d9 $ gF3 $ gM3 
  $ "no_sunshine/4" # n (slow 4 "<0 1 2 3>" )
  # cut 9
  # room 0.3
d8 $ gF1 $ gM2 -- JazzyBelle JazzyBreak
  $ juxBy 0.5 (# cut 81)
  $ midiOn "^92" (slice 4 "0*2 [1 2] 2*2 3*<1 1 1 2>")
  $ chop 16
  $ midiOn "^36" (loopAt 1 . (# "org_jungle_breaks:24"))
  $ midiOn "^56" (slice 4 "0 <1 1 1 3> <2 2 3 2> <3 3 2 <1 3>>" . 
    loopAt 1 . (# "breaks165"))
  $ loopAt 1
  -- $ n "<0!4 1!3 0 2!4 3!3 <2 3>>"
  $ "org_jungle_breaks:1"
  # pan 0.26
  # gain 0.9
  # octersub 1.2
  # octersubsub 2
  # cut 8
  # room 0.3 # sz 0.5 # dry 0.9
  # gain 1.5
d10 $ gF1 $ gM3 $ mask "<t f!7>" $ "risers:8" -- safe riser (#33)
