Skip to content

Instantly share code, notes, and snippets.

@trentgill
Created August 18, 2021 15:21
Show Gist options
  • Select an option

  • Save trentgill/ca33eaacc889645c4db5b57c4246be60 to your computer and use it in GitHub Desktop.

Select an option

Save trentgill/ca33eaacc889645c4db5b57c4246be60 to your computer and use it in GitHub Desktop.
emulating just friends with a crow ASL
--- maps: S2E4 dynamic mutation
-- just friends emulator in ASL
function init()
output[1](oscillate( dyn{freq=800}:mul(0.8) + 120, dyn{lev=5}:mul(0.98)))
end
HLUT = {1,2,3,4} -- list of harmonics to 'Intone' toward
-- v (0..1): 0 == all at f, 1 == all at HLUT multiples of f.
function intone(f, v)
for i=1,4 do
local hlut = HLUT[i]
output[i].dyn.freq = f * (1 + v*(hlut-1))
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment