Skip to content

Instantly share code, notes, and snippets.

@icarito
Created April 25, 2020 23:36
Show Gist options
  • Save icarito/9903dd8430f2434bb7521e423cf7403b to your computer and use it in GitHub Desktop.
Save icarito/9903dd8430f2434bb7521e423cf7403b to your computer and use it in GitHub Desktop.
SCRIPT-8
init = state => {
state.t = 0
}
update = (state, input, elapsed) => {
state.t++
if (input.start==1) {
playPhrase(0)
}
}
draw = state => {
}
{
"iframeVersion": "0.1.280",
"lines": [
14,
0,
0,
0,
0,
0,
0,
0
]
}
{
"0": {
"notes": [
"0f#37",
"1g37",
"2g#27",
"3g37",
"4f#37",
"5f37",
"6f#37",
"7g37",
"8g#37",
"9a37",
"10a#37",
"11b37",
"12a#27",
"13a27",
"14g#27",
"15g27"
],
"tempo": "3",
"synth": "1"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment