Change clock starting point and add oncount method as alternative to onbeat

This commit is contained in:
2023-08-31 18:03:07 +03:00
parent 3c335a50a9
commit 86739faa77
6 changed files with 67 additions and 38 deletions

View File

@ -98,7 +98,7 @@ export const makeArrayExtensions = (api: UserAPI) => {
*
* @returns The element corresponding to the current beat
*/
return this[(api.ebeat() / beat) % this.length];
return this[(api.app.clock.beats_since_origin / beat) % this.length];
};
Array.prototype.bar = function () {