oscilloscope prototype

This commit is contained in:
2023-10-22 22:49:56 +02:00
parent d6577718a6
commit 816429b9fa
5 changed files with 147 additions and 29 deletions

View File

@ -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;
};
}