diff --git a/src/API.ts b/src/API.ts index 1f70eda..d64d683 100644 --- a/src/API.ts +++ b/src/API.ts @@ -1462,10 +1462,6 @@ export class UserAPI { return this.beat(nums.dur(...nums)); }; - // ============================================================= - // Modulo based time filters - // ============================================================= - // ============================================================= // Other core temporal functions // ============================================================= @@ -1996,38 +1992,6 @@ export class UserAPI { // would be 1.0, which is the current rate (very speedy). }; - // ============================================================= - // Legacy functions - // ============================================================= - - public divseq = (...args: any): any => { - const chunk_size = args[0]; // Get the first argument (chunk size) - const elements = args.slice(1); // Get the rest of the arguments as an array - const timepos = this.app.clock.pulses_since_origin; - const slice_count = Math.floor( - timepos / Math.floor(chunk_size * this.ppqn()), - ); - return elements[slice_count % elements.length]; - }; - - public seqbeat = (...array: T[]): T => { - /** - * Returns an element from an array based on the current beat. - * - * @param array - The array of values to pick from - */ - return array[this.app.clock.time_position.beat % array.length]; - }; - - public seqbar = (...array: T[]): T => { - /** - * Returns an element from an array based on the current bar. - * - * @param array - The array of values to pick from - */ - return array[(this.app.clock.time_position.bar + 1) % array.length]; - }; - // ============================================================= // High Order Functions // ============================================================= @@ -2124,27 +2088,6 @@ export class UserAPI { }; }; - // ============================================================= - // Ralt144mi section - // ============================================================= - - raltfont = (mainFont: string, commentFont: string): void => { - this.app.view.dispatch({ - effects: this.app.fontSize.reconfigure( - EditorView.theme({ - "&": { fontFamily: mainFont }, - ".cm-gutters": { fontFamily: mainFont }, - ".cm-content": { - fontFamily: mainFont, - }, - ".cm-comment": { - fontFamily: commentFont, - }, - }), - ), - }); - }; - // ============================================================= // Resolution // ============================================================= @@ -2946,9 +2889,6 @@ export class UserAPI { return this.randomChar(n, 0x1f910, 0x1f92f); }; - - - // ============================================================= // OSC Functions // ============================================================= @@ -3063,5 +3003,4 @@ export class UserAPI { public getThemes = (): string[] => { return Object.keys(colorschemes); } - }