Skip to content

Instantly share code, notes, and snippets.

@gabrielflorit
Last active January 21, 2020 22:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gabrielflorit/9bbe5e432a42f3a2fa72cdf6b3297255 to your computer and use it in GitHub Desktop.
Save gabrielflorit/9bbe5e432a42f3a2fa72cdf6b3297255 to your computer and use it in GitHub Desktop.
SCRIPT-8
{
"0": {
"0": {
"2": 0
},
"1": {
"2": 0
},
"2": {
"2": 0
},
"3": {
"2": 0
},
"4": {
"1": 0,
"2": 0
},
"5": {
"1": 0,
"2": 0
},
"6": {
"1": 0,
"2": 0
},
"7": {
"1": 0,
"2": 0
},
"8": {
"1": 0,
"2": 0,
"3": 0
},
"9": {
"1": 0,
"2": 0,
"3": 0
},
"10": {
"0": 0,
"1": 0,
"2": 0,
"3": 0
},
"11": {
"0": 0,
"1": 0,
"2": 0,
"3": 0
},
"12": {
"0": 0,
"1": 0,
"2": 0,
"3": 0
},
"13": {
"0": 0,
"1": 0,
"2": 0,
"3": 0
},
"14": {
"2": 0,
"3": 0
},
"15": {
"2": 0,
"3": 0
},
"tempo": "2"
},
"1": {
"0": {
"0": 1
},
"1": {
"0": 1
},
"2": {
"1": 1
},
"3": {
"2": 1
},
"tempo": "3"
}
}
init = state => {
}
update = (state, input, elapsed) => {
if (input.aPressed) {
playChain(0, true)
}
if (input.bPressed) {
stopChain()
}
if (input.upPressed) {
playPhrase(0)
}
}
draw = state => {
}
{
"iframeVersion": "0.1.273",
"lines": [
17,
0,
0,
0,
0,
0,
0,
0
]
}
{
"0": {
"notes": [
"0c07",
"1c17",
"2c17",
"3c17",
"4c07",
"6c07",
"12c07",
"13c17",
"14c17",
"15c27"
],
"tempo": "3"
},
"1": {
"notes": [
"0a-17",
"1a-17",
"2a-17",
"3a#17",
"4a17",
"5a-17",
"6a-17",
"7a-17",
"8a-17",
"9a-17",
"10a-17",
"11a-17",
"12a-17",
"13a-17",
"14a-17",
"15a-17"
],
"tempo": 0
}
}
{
"0": {
"0": 0,
"tempo": "2"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment