oscilloscope prototype
This commit is contained in:
13
src/API.ts
13
src/API.ts
@ -26,7 +26,7 @@ import {
|
||||
} from "superdough";
|
||||
import { Speaker } from "./StringExtensions";
|
||||
import { getScaleNotes } from "zifferjs";
|
||||
import { blinkScript } from "./AudioVisualisation";
|
||||
import { OscilloscopeConfig, blinkScript } from "./AudioVisualisation";
|
||||
|
||||
interface ControlChange {
|
||||
channel: number;
|
||||
@ -1968,4 +1968,15 @@ export class UserAPI {
|
||||
*/
|
||||
return array.concat(array.slice(0, array.length - 1).reverse());
|
||||
};
|
||||
|
||||
// =============================================================
|
||||
// Oscilloscope Configuration
|
||||
// =============================================================
|
||||
public scope = (config: OscilloscopeConfig): void => {
|
||||
/**
|
||||
* Configures the oscilloscope.
|
||||
* @param config - The configuration object
|
||||
*/
|
||||
this.app.oscilloscope_config = config;
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user