Created
August 18, 2021 15:21
-
-
Save trentgill/ca33eaacc889645c4db5b57c4246be60 to your computer and use it in GitHub Desktop.
emulating just friends with a crow ASL
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --- 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