Information Technology Grimoire

Version .0.0.1

IT Notes from various projects because I forget, and hopefully they help you too.

Entre Sombras y Luz

Entre Sombras y Luz

Violin and acoustic guitar with flamenco beat.

Try it

setcpm(120/4)

// Guitar - completely silent when fiddle plays
$: n("<<<[0 3 7 10] [7 10 14 17] [5 8 12 15] [4 7 11 14]>*2 ~> <~ ~ ~ <[0 3 7 10] [7 10 14 17] [5 8 12 15] [4 7 11 14]>*2>>").scale("a:minor").trans(0)
  .s("gm_acoustic_guitar_nylon kalimba")
  .lpf(2500)
  .delay(0.3)
  .gain(0.6)
  .room(0.4)
  ._pianoroll()
// Fiddle - completely silent when guitar plays
$: n("<<~ <0 -1 0 3 4 3 0 -1>*4> <<0 4 7 4 3 0 -1 0>*4 <0 -1 0 3 4 3 0 -1>*4 ~>>").scale("a:phrygian").trans(12)
  .s("gm_fiddle")
  .lpf(3000)
  .gain(0.5)
  .room(0.5)
  ._pianoroll()
// bass 1
$: n("<<[0 ~ ~ ~] [7 ~ ~ ~] [5 ~ ~ ~] [4 ~ ~ ~]> <[~ 3 5 7] [~ 10 12 14] [~ 8 10 12] [~ 7 9 11]>>").scale("a:minor").trans(-24)
  .s("triangle")
  .lpf(400)
  .gain(0.7)
  ._pianoroll()
// Flamenco-style percussion
$: s("<bd:2!4 bd:2!4 [bd:2 bd:2 ~ bd:2] bd:2!4>")
  .gain(0.5)

// Hand claps - flamenco rhythm (palmas)
$: s("~ cp:3 ~ <cp:3 [cp:3 cp:3]>")
  .gain(0.4)

// Shaker with Spanish feel
$: s("shaker_small*8")
  .gain("<0.3 0.4 0.5 0.4>")
Last updated on 16 Nov 2025
Published on 16 Nov 2025