resetCycles

do
setcps (70/60/4)
let prog = "<b3 d4 b3 <as3 g3>>"
let blocker = degradeBy "<0!128 0.5 0.75 0.8 0.9 1!124>"
d1
  $ blocker
  $ mask "<t!120 t t t f t t f [t f!3]>" -- Outro
  $ mask "<f!8 t t f t t f t f t!48>" -- Intro partie
  $ mask "<t!32 f!8 t!24>" -- Pont1
  $ "k(<1!4 2 1 <3 <4 5>>>,8) . <~!16 k!16> <k!4 ~!3 k> <~!8 k!8> <~!2 [k k?]? k*2>"
  # "[super808,jazz]"
  # gain (0.5 + 0.15 * (slow 32 sine))
  # room 0.5
  # sz 0.7
  # dry 0.9
d2
  $ blocker
  $ degradeBy "<[0 0.8!7] 0.5 0.25 0 0!28>" -- intro
  $ mask "<t!32 f f [f t] t f f [f t] t t!24>" -- Pont1
  $ n (stack [
  "~ 0*<[2 <4 8 16 [16 8]>]>",
  (fast ("4 8" * "1 <2 2 2 [2 1] 2 2 1 [2 4]>") "5"),
  "9(<0!16 <5!3 [5 8]>!16>,8)",
  ""
  ])
  # "amencutup"
  # gain 0.5
d3 -- Bassline
  $ blocker
  $ someCyclesBy "<0!32 1!8 1!24>" (# hpf 1000) -- Pont1
  $ mask -- Degradation sur 32 par 8: intro/full/degrade/outro
  "<t!4 t f f t [f!3 t] t!7 [t f f t]!3 t [f t t f]!3 [f t] t!5 [t!3 f]>"
  $ note prog
  # crush "<10!30 8 5 10!16 8 7 6 5 5 5 5 4.5 5 6 7 8 5!4>"
  # "bassWarsaw"
  # gain 0.55
  # pan 0.2
d4 -- Epiano ritournelle cut
  $ blocker
  $ mask "<f!4 [f t]!4 t!24>" -- Intro
  $ mask "<t!123 f!5>" -- Outro
  $ someCyclesBy "<0!32 1!8 1!24>" (# hpf 1000) -- Pont1
  $ whenmod 128 64 (
    # panbus 32 (slow 64 $ range 0.95 0.5 saw)
  )
  $ whenmod 64 32 (
    # crushbus 31 (slow 32 $ range 16 4.5 saw)
  )
  $ slice 4 ("<0 [0 1] 1 0*[8 <1 16>]>" + (slow 16 "<0 2>"))
  $ "fepiano:8"
  # cut 3
  # gain 0.45
  # room 0.3
  # pan 0.3
d5 -- Piano base gauche / glitchy monomaniaque droite
  $ blocker
  $ mask "<f!3 [t f] f!7 t t!24>" -- Intro
  $ mask "<t!120 f!8>" -- Outro
  $ mask "<t!64 f!16 t!48>" -- Off begin second part
  $ someCyclesBy "<0!32 1!8 1!24>" (# hpf 1000) -- Pont1
  $ superimpose (
    whenmod 32 8 (sometimesBy (slow 32 $ range 0 0.5 saw) (ply 2) )
    . (|+ note "12 24")
    . struct "~ . t(<5!3 [5|8]>,8,<0 0 1 2>)"
    )
  $ note (prog
    + "<~!3 0> <0!3 [12 <~ 0 12 [12 0]>]>"
  )
  # "superpiano"
  # velocity (slow 32 $ range 0.25 0.4 saw)
  # pan 0.75
d6 -- Trombones de combat
  $ blocker
  $ mask "<t!125 f!3>" -- Outro
  $ mask "<f!15 t f!15 t t!32>" -- Second half of each part
  $ note (prog
    + "0(<3!3 [3 <1!3 5>]>,8) [12 . <12!4 ~> <~!4 12!4> <9 9 12 9> 12]"
    + "1" -- fix note base sample
  )
  # octave 6
  # "rootsTromb:4"
  # cut 6
  # gain (slow 16 $ range 0.65 0.4 saw)
  # pan "<[0.65 0.65 0.5 0.65]!3 0.35>"
d7
  $ blocker
  $ mask "<t!126 f!2>" -- Outro
  $ mask "<f!128 t!128>" -- Second part
  $ slice 4 "<0!3 1>"
  $ "rootsTrump:5"
  # cut 7
  # gain 0.5
d10  -- Drumroll scred
  $ blocker
  $ someCyclesBy "<0!32 1!8 1!24>" (# hpf 1000) -- Pont1
  $ jux rev
  $ whenmod 8 4 (degradeBy (slow 32 $ range 0.5 0.05 cosine))
  $ "amencutup:28*[<16!4 [<8!4 16!4> . <8 16>]!4> . 0 <16 [16 32] 16 32>]"
  # dry 0.99
  # pan (slow 4 $ range 0.25 0.75 saw)
  # gain 0.45