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

This commit is contained in:
2023-08-31 19:42:45 +03:00
parent dd014e9df3
commit 323c6821d3
5 changed files with 59 additions and 18 deletions

View File

@ -107,7 +107,7 @@ export const makeArrayExtensions = (api: UserAPI) => {
*
* @param array - The array of values to pick from
*/
return this[(api.app.clock.time_position.bar + 1) % this.length];
return this[api.app.clock.time_position.bar % this.length];
};
Array.prototype.pulse = function () {