I started the week using the freq() function

A bass line with character emerged, and that’s how the strudel recipe ended up.

// ==================================================================================
// @title Strudel de salak
// @by technoabu

// 2026-11
// https://technoabu.codeberg.page
// https://youtube.com/@technoabu
// https://soundcloud.com/technoabu
// https://patchstorage.com/author/technoabu/
// ==================================================================================

setcpm(128/4)

const KICK         = s("[bd:3 ~]*4").bank("RolandTR909")

const TON          = s("[~ ht ~ ht:1 ~ ht ~ ht:1]").bank("RolandTR808").sometimesBy(0.2, ply(2))

const CHARLES      = s("hh*8").bank("RolandTR909")
                     .gain(".7 .3 .7 .3 .6 .2 .8 .4")
                     .sometimesBy(0.1, ply(2))
                     .degradeBy(0.05)
                     .hpf(4600).pan("[0.3|0.5|0.7]")
 
const BASS         = freq(sine.range(30, 120).fast(4))
                     .s("supersaw")
                     .struct("0 1 0 1 0 1 1 1").gain(".3 .7 .3 .6 .2 .8 .4 .7")
                     .sometimesBy(0.1, x => x.ply(2).decay(0.1))
                     .room(0.9).delay(0.25).lpf(900)
                            
const LEAD_MELODIC = n("0 2 0 4 6 0 <0 2> <6 4>")
                     .scale("a3:minor")
                     .struct("[1 1 0 1 1 0 1 1]")
                     .gain( ".7 .3 .0 .6 .2 .0 .3 .6")
                     .s("gm_fx_atmosphere:7")
                     .sometimesBy(0.2, x => x.jux(y => y.rev()))
                     .sometimesBy(0.1, ply(2)) 
                     .diode(0.6)
                     .detune(0.4)
                     .decay(0.5).sustain(0.2).release(0.7)
                     .room(0.8).size(0.9) 

const LEAD         = chord("[Am F C G]/<2!3 4>").voicing()
                     .struct("x  x  -  x  x  -  x*2 x")
                     .gain( ".7 .3 .0 .6 .2 .0 .3  .1")
                     .s("supersaw")
                     .diode(0.6)
                     .detune(0.4)
                     .decay(0.5).sustain(0.2).release(0.5)
                     .lpf(sine.range(600, 800).slow(4))

const BASE_LINE    =  s("didgeridoo")
                     .struct("x  x  -  x  x  -  x*2 x")
                     .speed(sine.range(0.5, 2).fast("<4 1>/8")).clip(1)
                     .room(0.8).delay(0.25)

$: stack(
  BASE_LINE
)

$: arrange(
  [4, stack(
    BASS 
  )],
  [4, stack(
    KICK,
    BASS 
  )],
  [16, stack(
    KICK,
    CHARLES,
    BASS
  )],
  [4, stack(
    BASS,
    CHARLES,
    LEAD_MELODIC
  )],
  [4, stack(
    KICK,
    CHARLES,
    BASS 
  )],
  [8, stack(
    KICK,
    CHARLES,
    TON,
    LEAD,
    LEAD_MELODIC
  )],
  [24, stack(
    KICK,
    CHARLES,
    BASS,
    LEAD         .mask("<0!4 1!8>"),
    LEAD_MELODIC .mask("<0!2 1!4>")
  )],
)

// From 132 onwards, it continues to run but stops making sound.
all(x => x.mask(time.lt(132)).postgain(slider(1, 0, 1)))