-- Octobre Jaune
resetCycles

do
setcps (117/60/4)
d1 $ gM1 $ gF1 -- KICK SOUTENANT
  $ midiOn "^41" (<| "k k k <k!3 [<~ k> k]>")
  $ "[hardkick_rha:60,jazz]"
  -- # bandf 200
  # lpf 1300
d2 $ gM2 $ gF1 -- Snare glitch+perc
  $ midiOn "^42" (struct "~ t ~ t*<1!3 2>")
  $ midiOff "^42" (struct "~ t")
  $ fix (whenmod 4 3 (ply "4 [4 <1 2>]") . (|* gain 0.8) . (# rel 0.1)) "clap"
  $ fix ((# n 2) . (# pan 0.2) . (# note "-24")) "glitch"
  $ "glitch"
  # begin 0.02
  # end 0.35
  # pan 0.8
d3 $ gM2 $ gF1 -- Hats reguliers mais varies
  -- FIXME(#94) d3 drives more controls than the grid gives it (BT3 only — BL1-3 are the family mutes). ^44 now belongs to another orbit, so this step STILL FIRES ACROSS COLUMNS — turning ^44 for its new owner also moves this. NOT commented out: this is a `$`-step and something above it is a partial application waiting for it, so removing it would stop the whole block compiling. Fold it onto d3's own control with gSel.
  -- FIXME(#94) d3 drives more controls than the grid gives it (BT3 only — BL1-3 are the family mutes). ^44 now belongs to another orbit, so this step STILL FIRES ACROSS COLUMNS — turning ^44 for its new owner also moves this. NOT commented out: this is a `$`-step and something above it is a partial application waiting for it, so removing it would stop the whole block compiling. Fold it onto d3's own control with gSel.
  $ midiOn "^44" (ply 2)
  $ midiOn "^43" (struct "t(3,8). t(5,8)")
  $ someCyclesBy "<1!8 0!56>" (mask "f . t f")
  $ "~ h ~ h ~ h*<1!7 2> ~ h"
  # drumFrom "rolandtr909" "hh:2"
  # hpf 5000
  |* gain (range 0.85 1 (fast 4 sine + (slow 2 perlin)))
d6 $ gM3 $ gF1
  $ "~ rampleS0"
  # n "<6!6 7 7>"
  # pan 0.8
d8 $ gM2 $ gF1
  $ midiOn "^92" (ply 2)
  $ whenmod 4 3 (ply 2)
  $ chop 16
  $ midiOn "^36" (loopAt 2 . (# n 40))
  $ midiOn "^56" (loopAt 1 . (# n 40))
  $ loopAt 2
  $ "jungle_breaks:18"
  # cut 8
d4 $ gM3 $ gF2 -- MATRIX BASS
  $ slow 2
  $ midiOn "^44" (# freeze 0.1)
  $ midiOn "^76" (slice 8 "0*[8 16]")
  $ note "<[f@3 <cs!3 [cs ds]>] c>"
  # "90s_matrix:0"
  # cut 4
  # tremoloratebus 41 (range 0 (slow 4 "<2 4 8 16>") "^32")
  # tremolodepthbus 42 (range 0 0.9 "^32")
  # combbus 43 (range 0 0.5 "^52")
  # ampbus 44 (range 1 1.25 "^52")
  -- FIXME(#54) d4 drives more controls than the grid gives it (B4 + C4). ^33 now belongs to another orbit, so the line(s) below are COMMENTED OUT rather than left firing across columns. Nothing is lost — restore by removing the dashes once gSel folds this onto d4's own control.
  -- # distortbus 45 (range 0 0.5 "^33")
  # pan "<0.8!32 0.2!32>"
  # gain 0.8
d5 $ gM3 $ gF2 -- ACID bassline
  $ midiOn "^89" ( -- Echoes of future FIXME SUPERPOSITION NOT REPLACE
    superimpose ((# cut 51) . superimpose ((# cut 52) . (|+ note 12))
    . (|+ note "[12,<~!8 24!8>]")
    . (|* gain 0.9) . (# room 0.2) . (# sz 0.9)) . (# cut 51))
  $ midiOn "^57" (# freezebus 51 0.1)
  $ note (  "f@2 f <gs!2 gf!2>@2 <gs!2 g!2> <g!2 gs <gs gs5>>@2"
    - 12
    )
  # distortbus 52 (range 0 2.5 "^33")
  # "90s_matrix:4"
  # pan "<0.2!32 0.8!32>"
  -- # octave 3
  # cut 5
  -- # midiG' "^82" 0 1.9
d7 $ gF3 $ gM3
  $ midiOn "^59" (|- note "c'maj'2")
  $ note (
  (slow 8 $ "<[<f4 as5>]!2 [<ef3!2 [ef4!3 f4] f4>]!2>")
  + "0([3 <3!3 5>],8) . 0(<3!7 [3 5]>,8)"
  )
  # "superfork"
  # room (slow 16 $ range 0 0.2 saw)
  # delay (slow 32 $ range 0 0.5 saw)
  # octersubbus 71 (range 0 2 "^35")
  # octersubsubbus 72 (range 0 2 "^35")
  # pan (slow 16 $ (saw + 0.2 * perlin))
-- c bf g
d10 -- RISE!
  $ fix (
    loopAt 4
    . (# "risers:4")
    . (# pan 0.2)
    . (# room 0.4)
    -- . (# gain 0)
    . (# cut 81)) "r1"
  $ fix (-- laser rise
    loopAt 8
    . (# "risers:11")
    . (|* gain 0.9)
    . (# pan 0.9)
    . (# room 0.4)
    . (# drybus 82 (slow 4 $ range 0.5 1.2 saw))
    . (# sz 0.8)
    . (# cut 82)) "r2"
  $ "[<~ ~ ~ <r1!3 ~>>,<~!24 ~!8 r2 ~!7>]"
  -- # midiG' "^20" 0 1.3

-- risers:3 annonce
-- risers:4
once $ "risers:11"
  # gain 0.7
  # end 0.85
  # cut 9

once $ "rampleS0:6" # cut 4

once
  $ fix (# drumFrom "rolandtr909" "cp:1") "cp"
  $ "[psr:1,cp]" # gain 0.8

  ef-f. f-e e-es.. es-e-es-f......

once $ drumFrom "rolandtr808" "bd:4"
