This commit is contained in:
jane 2021-05-27 14:21:54 -04:00
parent 0a30639e37
commit 8f6adec59e

View file

@ -37,7 +37,7 @@ export function set_pattern(pat) {
pattern = pat;
}
let functions = {
export const functions = {
random: (index, args, prev) => { return Math.floor(Math.random() * 256) },
constant: (index, args, prev) => { return args; },
modulo: (index, args, prev) => { return prev % args; },
@ -47,8 +47,6 @@ let functions = {
subtract: (index, args, prev) => { return prev - args; }
}
export const functions;
function tick_pattern() {
// do the parsing stuff here
log.debug("TICKING PATTERN")