import { PanelItem, RadialGraphSegments, UI, WebAudio, clamp, mapLinear, median, rms, ticker, tween } from '../src/index.js';

        const store = {
            sound: true
        };

        class AudioController {
            static init(ui, graph) {
                this.ui = ui;
                this.graph = graph;

                this.context = WebAudio.context;

                // Median downsample
                this.array = [];
                this.chunkSizes = [];
                this.chunkSize 