add euclid
This commit is contained in:
parent
eaa250a962
commit
91c0a46ba9
10 changed files with 100 additions and 21 deletions
3
util.mjs
3
util.mjs
|
|
@ -39,3 +39,6 @@ export const getPlayableNoteValue = (event) => {
|
|||
}
|
||||
return note;
|
||||
};
|
||||
|
||||
// rotate array by n steps (to the left)
|
||||
export const rotate = (arr, n) => arr.slice(n).concat(arr.slice(0, n));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue