Added oneuclid for testing

This commit is contained in:
2023-08-31 21:28:10 +03:00
parent 323c6821d3
commit 1a95fb1339
2 changed files with 14 additions and 1 deletions

View File

@ -121,7 +121,7 @@ export const makeArrayExtensions = (api: UserAPI) => {
Array.prototype.div = function (divisor: number) {
const chunk_size = divisor; // Get the first argument (chunk size)
const timepos = api.epulse();
const timepos = api.app.clock.pulses_since_origin;
const slice_count = Math.floor(
timepos / Math.floor(chunk_size * api.ppqn())
);