Cockatoo's rain

by KaRus

/
  • Streaming + Download

    Includes unlimited streaming via the free Bandcamp app, plus high-quality download in MP3, FLAC and more.
    Purchasable with gift card

      $7 AUD  or more

     

1.
2.
3.
4.
To the nest 10:11

about

proc process*(s: var State, cc: var Controls, n: var Notes): Frame {.nimcall, exportc, dynlib.} =
s.pool.init
proc ff(x, dt, k: float): float {.inline.} = x.fb(dt, k).add(x.mul(sqrt(1.0-k*k)))
proc xff(x, dt, k: float): float {.inline.} = x.long_fb(dt, k).add(x.mul(sqrt(1.0-k*k)))
let r = 30.0*(cc/0x4b).round.max(1.0)
let ambience = 30.0 * (cc/0x49)
var p = 0.0
for i in 0..n.high:
let note = n[i].load
let pitch = (note and 0x00FF).float.midi2freq
let velocity = (note div 0x100)
let amp = velocity.float / 127.0
var t = 0.0
if velocity > 0:
t = 1.0
s.vs[i] = amp
let m = ambience.recip.mul(4.0*(cc/0x4a)).tline(0.01).osc.biscale(r.recip, r) #.quantize(r.recip)
p += pitch.tline(0.001)
.fm(m, 1/2)
.mul(t.adsr(ambience*(cc/0x46), ambience*(cc/0x47), s.vs[i], 5.0*ambience*(cc/0x48),))

result = p
.ff(0.5, 0.25)
.xff(0.33*ambience.tline(0.01*ambience), 0.2)
.xff(0.5*ambience.tline(0.01*ambience), 0.2)
.xff(0.7071*ambience.tline(0.01*ambience), 0.2)
.mul(0.1)
.bqhpf(30.0, 0.7071)
.compressor(20.0, -12.0, 0.1, 0.1)
.simple_saturator

credits

released April 1, 2021

license

all rights reserved

tags

about

KaRus Sydney, Australia

contact / help

Contact KaRus

Streaming and
Download help

Report this album or account

If you like KaRus, you may also like: