@drop-ai/core 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +316 -0
- package/dist/actions/ActionRegistry.d.ts +33 -0
- package/dist/actions/ActionRegistry.d.ts.map +1 -0
- package/dist/actions/ActionRegistry.js +96 -0
- package/dist/actions/ActionRegistry.js.map +1 -0
- package/dist/actions/types.d.ts +31 -0
- package/dist/actions/types.d.ts.map +1 -0
- package/dist/actions/types.js +11 -0
- package/dist/actions/types.js.map +1 -0
- package/dist/analysis/TransientDetector.d.ts +28 -0
- package/dist/analysis/TransientDetector.d.ts.map +1 -0
- package/dist/analysis/TransientDetector.js +109 -0
- package/dist/analysis/TransientDetector.js.map +1 -0
- package/dist/audio/AudioEngine.d.ts +107 -0
- package/dist/audio/AudioEngine.d.ts.map +1 -0
- package/dist/audio/AudioEngine.js +798 -0
- package/dist/audio/AudioEngine.js.map +1 -0
- package/dist/audio/AudioProvider.d.ts +96 -0
- package/dist/audio/AudioProvider.d.ts.map +1 -0
- package/dist/audio/AudioProvider.js +2 -0
- package/dist/audio/AudioProvider.js.map +1 -0
- package/dist/audio/BufferPool.d.ts +92 -0
- package/dist/audio/BufferPool.d.ts.map +1 -0
- package/dist/audio/BufferPool.js +172 -0
- package/dist/audio/BufferPool.js.map +1 -0
- package/dist/audio/LoudnessUtils.d.ts +18 -0
- package/dist/audio/LoudnessUtils.d.ts.map +1 -0
- package/dist/audio/LoudnessUtils.js +91 -0
- package/dist/audio/LoudnessUtils.js.map +1 -0
- package/dist/audio/MeterUtils.d.ts +37 -0
- package/dist/audio/MeterUtils.d.ts.map +1 -0
- package/dist/audio/MeterUtils.js +71 -0
- package/dist/audio/MeterUtils.js.map +1 -0
- package/dist/audio/OfflineExporter.d.ts +48 -0
- package/dist/audio/OfflineExporter.d.ts.map +1 -0
- package/dist/audio/OfflineExporter.js +202 -0
- package/dist/audio/OfflineExporter.js.map +1 -0
- package/dist/audio/ProcessingGraph.d.ts +152 -0
- package/dist/audio/ProcessingGraph.d.ts.map +1 -0
- package/dist/audio/ProcessingGraph.js +360 -0
- package/dist/audio/ProcessingGraph.js.map +1 -0
- package/dist/audio/SourceCache.d.ts +124 -0
- package/dist/audio/SourceCache.d.ts.map +1 -0
- package/dist/audio/SourceCache.js +205 -0
- package/dist/audio/SourceCache.js.map +1 -0
- package/dist/audio/dto.d.ts +50 -0
- package/dist/audio/dto.d.ts.map +1 -0
- package/dist/audio/dto.js +2 -0
- package/dist/audio/dto.js.map +1 -0
- package/dist/audio/engine/PlaylistEngine.d.ts +19 -0
- package/dist/audio/engine/PlaylistEngine.d.ts.map +1 -0
- package/dist/audio/engine/PlaylistEngine.js +83 -0
- package/dist/audio/engine/PlaylistEngine.js.map +1 -0
- package/dist/automation/AutomationCurve.d.ts +61 -0
- package/dist/automation/AutomationCurve.d.ts.map +1 -0
- package/dist/automation/AutomationCurve.js +198 -0
- package/dist/automation/AutomationCurve.js.map +1 -0
- package/dist/automation/AutomationList.d.ts +185 -0
- package/dist/automation/AutomationList.d.ts.map +1 -0
- package/dist/automation/AutomationList.js +459 -0
- package/dist/automation/AutomationList.js.map +1 -0
- package/dist/automation/AutomationMode.d.ts +17 -0
- package/dist/automation/AutomationMode.d.ts.map +1 -0
- package/dist/automation/AutomationMode.js +18 -0
- package/dist/automation/AutomationMode.js.map +1 -0
- package/dist/automation/ParameterDescriptor.d.ts +65 -0
- package/dist/automation/ParameterDescriptor.d.ts.map +1 -0
- package/dist/automation/ParameterDescriptor.js +113 -0
- package/dist/automation/ParameterDescriptor.js.map +1 -0
- package/dist/automation/PointThinning.d.ts +14 -0
- package/dist/automation/PointThinning.d.ts.map +1 -0
- package/dist/automation/PointThinning.js +52 -0
- package/dist/automation/PointThinning.js.map +1 -0
- package/dist/automation/types.d.ts +14 -0
- package/dist/automation/types.d.ts.map +1 -0
- package/dist/automation/types.js +9 -0
- package/dist/automation/types.js.map +1 -0
- package/dist/commands/Command.d.ts +8 -0
- package/dist/commands/Command.d.ts.map +1 -0
- package/dist/commands/Command.js +2 -0
- package/dist/commands/Command.js.map +1 -0
- package/dist/commands/CommandExecutor.d.ts +36 -0
- package/dist/commands/CommandExecutor.d.ts.map +1 -0
- package/dist/commands/CommandExecutor.js +108 -0
- package/dist/commands/CommandExecutor.js.map +1 -0
- package/dist/commands/CommandHistory.d.ts +155 -0
- package/dist/commands/CommandHistory.d.ts.map +1 -0
- package/dist/commands/CommandHistory.js +316 -0
- package/dist/commands/CommandHistory.js.map +1 -0
- package/dist/commands/CommandRegistry.d.ts +110 -0
- package/dist/commands/CommandRegistry.d.ts.map +1 -0
- package/dist/commands/CommandRegistry.js +91 -0
- package/dist/commands/CommandRegistry.js.map +1 -0
- package/dist/commands/UndoTransaction.d.ts +54 -0
- package/dist/commands/UndoTransaction.d.ts.map +1 -0
- package/dist/commands/UndoTransaction.js +77 -0
- package/dist/commands/UndoTransaction.js.map +1 -0
- package/dist/commands/handlers/AutomationHandler.d.ts +14 -0
- package/dist/commands/handlers/AutomationHandler.d.ts.map +1 -0
- package/dist/commands/handlers/AutomationHandler.js +84 -0
- package/dist/commands/handlers/AutomationHandler.js.map +1 -0
- package/dist/commands/handlers/CommandHandler.d.ts +57 -0
- package/dist/commands/handlers/CommandHandler.d.ts.map +1 -0
- package/dist/commands/handlers/CommandHandler.js +22 -0
- package/dist/commands/handlers/CommandHandler.js.map +1 -0
- package/dist/commands/handlers/ExportHandler.d.ts +14 -0
- package/dist/commands/handlers/ExportHandler.d.ts.map +1 -0
- package/dist/commands/handlers/ExportHandler.js +166 -0
- package/dist/commands/handlers/ExportHandler.js.map +1 -0
- package/dist/commands/handlers/HistoryHandler.d.ts +29 -0
- package/dist/commands/handlers/HistoryHandler.d.ts.map +1 -0
- package/dist/commands/handlers/HistoryHandler.js +124 -0
- package/dist/commands/handlers/HistoryHandler.js.map +1 -0
- package/dist/commands/handlers/IOHandler.d.ts +14 -0
- package/dist/commands/handlers/IOHandler.d.ts.map +1 -0
- package/dist/commands/handlers/IOHandler.js +59 -0
- package/dist/commands/handlers/IOHandler.js.map +1 -0
- package/dist/commands/handlers/MarkerHandler.d.ts +13 -0
- package/dist/commands/handlers/MarkerHandler.d.ts.map +1 -0
- package/dist/commands/handlers/MarkerHandler.js +95 -0
- package/dist/commands/handlers/MarkerHandler.js.map +1 -0
- package/dist/commands/handlers/MidiHandler.d.ts +14 -0
- package/dist/commands/handlers/MidiHandler.d.ts.map +1 -0
- package/dist/commands/handlers/MidiHandler.js +153 -0
- package/dist/commands/handlers/MidiHandler.js.map +1 -0
- package/dist/commands/handlers/MixerSceneHandler.d.ts +12 -0
- package/dist/commands/handlers/MixerSceneHandler.d.ts.map +1 -0
- package/dist/commands/handlers/MixerSceneHandler.js +113 -0
- package/dist/commands/handlers/MixerSceneHandler.js.map +1 -0
- package/dist/commands/handlers/RangeHandler.d.ts +14 -0
- package/dist/commands/handlers/RangeHandler.d.ts.map +1 -0
- package/dist/commands/handlers/RangeHandler.js +108 -0
- package/dist/commands/handlers/RangeHandler.js.map +1 -0
- package/dist/commands/handlers/RegionHandler.d.ts +14 -0
- package/dist/commands/handlers/RegionHandler.d.ts.map +1 -0
- package/dist/commands/handlers/RegionHandler.js +313 -0
- package/dist/commands/handlers/RegionHandler.js.map +1 -0
- package/dist/commands/handlers/SendBusHandler.d.ts +14 -0
- package/dist/commands/handlers/SendBusHandler.d.ts.map +1 -0
- package/dist/commands/handlers/SendBusHandler.js +55 -0
- package/dist/commands/handlers/SendBusHandler.js.map +1 -0
- package/dist/commands/handlers/SessionHandler.d.ts +14 -0
- package/dist/commands/handlers/SessionHandler.d.ts.map +1 -0
- package/dist/commands/handlers/SessionHandler.js +80 -0
- package/dist/commands/handlers/SessionHandler.js.map +1 -0
- package/dist/commands/handlers/TrackGroupHandler.d.ts +18 -0
- package/dist/commands/handlers/TrackGroupHandler.d.ts.map +1 -0
- package/dist/commands/handlers/TrackGroupHandler.js +210 -0
- package/dist/commands/handlers/TrackGroupHandler.js.map +1 -0
- package/dist/commands/handlers/TrackHandler.d.ts +14 -0
- package/dist/commands/handlers/TrackHandler.d.ts.map +1 -0
- package/dist/commands/handlers/TrackHandler.js +241 -0
- package/dist/commands/handlers/TrackHandler.js.map +1 -0
- package/dist/commands/handlers/TransportHandler.d.ts +14 -0
- package/dist/commands/handlers/TransportHandler.d.ts.map +1 -0
- package/dist/commands/handlers/TransportHandler.js +117 -0
- package/dist/commands/handlers/TransportHandler.js.map +1 -0
- package/dist/commands/handlers/index.d.ts +18 -0
- package/dist/commands/handlers/index.d.ts.map +1 -0
- package/dist/commands/handlers/index.js +17 -0
- package/dist/commands/handlers/index.js.map +1 -0
- package/dist/commands/impl/AddAutomationPointCommand.d.ts +20 -0
- package/dist/commands/impl/AddAutomationPointCommand.d.ts.map +1 -0
- package/dist/commands/impl/AddAutomationPointCommand.js +45 -0
- package/dist/commands/impl/AddAutomationPointCommand.js.map +1 -0
- package/dist/commands/impl/AddAuxTrackCommand.d.ts +11 -0
- package/dist/commands/impl/AddAuxTrackCommand.d.ts.map +1 -0
- package/dist/commands/impl/AddAuxTrackCommand.js +23 -0
- package/dist/commands/impl/AddAuxTrackCommand.js.map +1 -0
- package/dist/commands/impl/AddBusTrackCommand.d.ts +11 -0
- package/dist/commands/impl/AddBusTrackCommand.d.ts.map +1 -0
- package/dist/commands/impl/AddBusTrackCommand.js +23 -0
- package/dist/commands/impl/AddBusTrackCommand.js.map +1 -0
- package/dist/commands/impl/AddMarkerCommand.d.ts +13 -0
- package/dist/commands/impl/AddMarkerCommand.d.ts.map +1 -0
- package/dist/commands/impl/AddMarkerCommand.js +25 -0
- package/dist/commands/impl/AddMarkerCommand.js.map +1 -0
- package/dist/commands/impl/AddMidiNoteCommand.d.ts +22 -0
- package/dist/commands/impl/AddMidiNoteCommand.d.ts.map +1 -0
- package/dist/commands/impl/AddMidiNoteCommand.js +45 -0
- package/dist/commands/impl/AddMidiNoteCommand.js.map +1 -0
- package/dist/commands/impl/AddPluginCommand.d.ts +19 -0
- package/dist/commands/impl/AddPluginCommand.d.ts.map +1 -0
- package/dist/commands/impl/AddPluginCommand.js +43 -0
- package/dist/commands/impl/AddPluginCommand.js.map +1 -0
- package/dist/commands/impl/AddRangeCommand.d.ts +19 -0
- package/dist/commands/impl/AddRangeCommand.d.ts.map +1 -0
- package/dist/commands/impl/AddRangeCommand.js +32 -0
- package/dist/commands/impl/AddRangeCommand.js.map +1 -0
- package/dist/commands/impl/AddRegionCommand.d.ts +19 -0
- package/dist/commands/impl/AddRegionCommand.d.ts.map +1 -0
- package/dist/commands/impl/AddRegionCommand.js +58 -0
- package/dist/commands/impl/AddRegionCommand.js.map +1 -0
- package/dist/commands/impl/AddSendBusCommand.d.ts +23 -0
- package/dist/commands/impl/AddSendBusCommand.d.ts.map +1 -0
- package/dist/commands/impl/AddSendBusCommand.js +30 -0
- package/dist/commands/impl/AddSendBusCommand.js.map +1 -0
- package/dist/commands/impl/AddSourceCommand.d.ts +12 -0
- package/dist/commands/impl/AddSourceCommand.d.ts.map +1 -0
- package/dist/commands/impl/AddSourceCommand.js +16 -0
- package/dist/commands/impl/AddSourceCommand.js.map +1 -0
- package/dist/commands/impl/AddTempoChangeCommand.d.ts +15 -0
- package/dist/commands/impl/AddTempoChangeCommand.d.ts.map +1 -0
- package/dist/commands/impl/AddTempoChangeCommand.js +45 -0
- package/dist/commands/impl/AddTempoChangeCommand.js.map +1 -0
- package/dist/commands/impl/AddTrackCommand.d.ts +13 -0
- package/dist/commands/impl/AddTrackCommand.d.ts.map +1 -0
- package/dist/commands/impl/AddTrackCommand.js +26 -0
- package/dist/commands/impl/AddTrackCommand.js.map +1 -0
- package/dist/commands/impl/ConnectIOCommand.d.ts +13 -0
- package/dist/commands/impl/ConnectIOCommand.d.ts.map +1 -0
- package/dist/commands/impl/ConnectIOCommand.js +31 -0
- package/dist/commands/impl/ConnectIOCommand.js.map +1 -0
- package/dist/commands/impl/CopyRegionCommand.d.ts +12 -0
- package/dist/commands/impl/CopyRegionCommand.d.ts.map +1 -0
- package/dist/commands/impl/CopyRegionCommand.js +42 -0
- package/dist/commands/impl/CopyRegionCommand.js.map +1 -0
- package/dist/commands/impl/DisconnectIOCommand.d.ts +13 -0
- package/dist/commands/impl/DisconnectIOCommand.d.ts.map +1 -0
- package/dist/commands/impl/DisconnectIOCommand.js +24 -0
- package/dist/commands/impl/DisconnectIOCommand.js.map +1 -0
- package/dist/commands/impl/DuplicateRegionCommand.d.ts +15 -0
- package/dist/commands/impl/DuplicateRegionCommand.d.ts.map +1 -0
- package/dist/commands/impl/DuplicateRegionCommand.js +49 -0
- package/dist/commands/impl/DuplicateRegionCommand.js.map +1 -0
- package/dist/commands/impl/ExportCommand.d.ts +17 -0
- package/dist/commands/impl/ExportCommand.d.ts.map +1 -0
- package/dist/commands/impl/ExportCommand.js +92 -0
- package/dist/commands/impl/ExportCommand.js.map +1 -0
- package/dist/commands/impl/FreezeTrackCommand.d.ts +25 -0
- package/dist/commands/impl/FreezeTrackCommand.d.ts.map +1 -0
- package/dist/commands/impl/FreezeTrackCommand.js +94 -0
- package/dist/commands/impl/FreezeTrackCommand.js.map +1 -0
- package/dist/commands/impl/GroupRegionsCommand.d.ts +15 -0
- package/dist/commands/impl/GroupRegionsCommand.d.ts.map +1 -0
- package/dist/commands/impl/GroupRegionsCommand.js +28 -0
- package/dist/commands/impl/GroupRegionsCommand.js.map +1 -0
- package/dist/commands/impl/LoadSessionCommand.d.ts +24 -0
- package/dist/commands/impl/LoadSessionCommand.d.ts.map +1 -0
- package/dist/commands/impl/LoadSessionCommand.js +77 -0
- package/dist/commands/impl/LoadSessionCommand.js.map +1 -0
- package/dist/commands/impl/LockRegionCommand.d.ts +16 -0
- package/dist/commands/impl/LockRegionCommand.d.ts.map +1 -0
- package/dist/commands/impl/LockRegionCommand.js +37 -0
- package/dist/commands/impl/LockRegionCommand.js.map +1 -0
- package/dist/commands/impl/MergeRegionsCommand.d.ts +19 -0
- package/dist/commands/impl/MergeRegionsCommand.d.ts.map +1 -0
- package/dist/commands/impl/MergeRegionsCommand.js +85 -0
- package/dist/commands/impl/MergeRegionsCommand.js.map +1 -0
- package/dist/commands/impl/MoveAutomationPointCommand.d.ts +20 -0
- package/dist/commands/impl/MoveAutomationPointCommand.d.ts.map +1 -0
- package/dist/commands/impl/MoveAutomationPointCommand.js +73 -0
- package/dist/commands/impl/MoveAutomationPointCommand.js.map +1 -0
- package/dist/commands/impl/MoveMarkerCommand.d.ts +13 -0
- package/dist/commands/impl/MoveMarkerCommand.d.ts.map +1 -0
- package/dist/commands/impl/MoveMarkerCommand.js +29 -0
- package/dist/commands/impl/MoveMarkerCommand.js.map +1 -0
- package/dist/commands/impl/MoveMidiNoteCommand.d.ts +20 -0
- package/dist/commands/impl/MoveMidiNoteCommand.d.ts.map +1 -0
- package/dist/commands/impl/MoveMidiNoteCommand.js +55 -0
- package/dist/commands/impl/MoveMidiNoteCommand.js.map +1 -0
- package/dist/commands/impl/MoveRegionCommand.d.ts +22 -0
- package/dist/commands/impl/MoveRegionCommand.d.ts.map +1 -0
- package/dist/commands/impl/MoveRegionCommand.js +148 -0
- package/dist/commands/impl/MoveRegionCommand.js.map +1 -0
- package/dist/commands/impl/NewSessionCommand.d.ts +17 -0
- package/dist/commands/impl/NewSessionCommand.d.ts.map +1 -0
- package/dist/commands/impl/NewSessionCommand.js +88 -0
- package/dist/commands/impl/NewSessionCommand.js.map +1 -0
- package/dist/commands/impl/NormalizeRegionCommand.d.ts +24 -0
- package/dist/commands/impl/NormalizeRegionCommand.d.ts.map +1 -0
- package/dist/commands/impl/NormalizeRegionCommand.js +60 -0
- package/dist/commands/impl/NormalizeRegionCommand.js.map +1 -0
- package/dist/commands/impl/PasteRegionCommand.d.ts +18 -0
- package/dist/commands/impl/PasteRegionCommand.d.ts.map +1 -0
- package/dist/commands/impl/PasteRegionCommand.js +66 -0
- package/dist/commands/impl/PasteRegionCommand.js.map +1 -0
- package/dist/commands/impl/RemoveAutomationPointCommand.d.ts +17 -0
- package/dist/commands/impl/RemoveAutomationPointCommand.d.ts.map +1 -0
- package/dist/commands/impl/RemoveAutomationPointCommand.js +69 -0
- package/dist/commands/impl/RemoveAutomationPointCommand.js.map +1 -0
- package/dist/commands/impl/RemoveMarkerCommand.d.ts +14 -0
- package/dist/commands/impl/RemoveMarkerCommand.d.ts.map +1 -0
- package/dist/commands/impl/RemoveMarkerCommand.js +32 -0
- package/dist/commands/impl/RemoveMarkerCommand.js.map +1 -0
- package/dist/commands/impl/RemoveMidiNoteCommand.d.ts +16 -0
- package/dist/commands/impl/RemoveMidiNoteCommand.d.ts.map +1 -0
- package/dist/commands/impl/RemoveMidiNoteCommand.js +38 -0
- package/dist/commands/impl/RemoveMidiNoteCommand.js.map +1 -0
- package/dist/commands/impl/RemovePluginCommand.d.ts +17 -0
- package/dist/commands/impl/RemovePluginCommand.d.ts.map +1 -0
- package/dist/commands/impl/RemovePluginCommand.js +55 -0
- package/dist/commands/impl/RemovePluginCommand.js.map +1 -0
- package/dist/commands/impl/RemoveRangeCommand.d.ts +15 -0
- package/dist/commands/impl/RemoveRangeCommand.d.ts.map +1 -0
- package/dist/commands/impl/RemoveRangeCommand.js +34 -0
- package/dist/commands/impl/RemoveRangeCommand.js.map +1 -0
- package/dist/commands/impl/RemoveRegionCommand.d.ts +17 -0
- package/dist/commands/impl/RemoveRegionCommand.d.ts.map +1 -0
- package/dist/commands/impl/RemoveRegionCommand.js +58 -0
- package/dist/commands/impl/RemoveRegionCommand.js.map +1 -0
- package/dist/commands/impl/RemoveSendBusCommand.d.ts +17 -0
- package/dist/commands/impl/RemoveSendBusCommand.d.ts.map +1 -0
- package/dist/commands/impl/RemoveSendBusCommand.js +34 -0
- package/dist/commands/impl/RemoveSendBusCommand.js.map +1 -0
- package/dist/commands/impl/RemoveTempoChangeCommand.d.ts +11 -0
- package/dist/commands/impl/RemoveTempoChangeCommand.d.ts.map +1 -0
- package/dist/commands/impl/RemoveTempoChangeCommand.js +32 -0
- package/dist/commands/impl/RemoveTempoChangeCommand.js.map +1 -0
- package/dist/commands/impl/RemoveTrackCommand.d.ts +11 -0
- package/dist/commands/impl/RemoveTrackCommand.d.ts.map +1 -0
- package/dist/commands/impl/RemoveTrackCommand.js +28 -0
- package/dist/commands/impl/RemoveTrackCommand.js.map +1 -0
- package/dist/commands/impl/ReorderTrackCommand.d.ts +15 -0
- package/dist/commands/impl/ReorderTrackCommand.d.ts.map +1 -0
- package/dist/commands/impl/ReorderTrackCommand.js +25 -0
- package/dist/commands/impl/ReorderTrackCommand.js.map +1 -0
- package/dist/commands/impl/ResizeRegionCommand.d.ts +18 -0
- package/dist/commands/impl/ResizeRegionCommand.d.ts.map +1 -0
- package/dist/commands/impl/ResizeRegionCommand.js +65 -0
- package/dist/commands/impl/ResizeRegionCommand.js.map +1 -0
- package/dist/commands/impl/ReverseRegionCommand.d.ts +22 -0
- package/dist/commands/impl/ReverseRegionCommand.d.ts.map +1 -0
- package/dist/commands/impl/ReverseRegionCommand.js +50 -0
- package/dist/commands/impl/ReverseRegionCommand.js.map +1 -0
- package/dist/commands/impl/SaveSessionCommand.d.ts +11 -0
- package/dist/commands/impl/SaveSessionCommand.d.ts.map +1 -0
- package/dist/commands/impl/SaveSessionCommand.js +33 -0
- package/dist/commands/impl/SaveSessionCommand.js.map +1 -0
- package/dist/commands/impl/SaveSnapshotCommand.d.ts +15 -0
- package/dist/commands/impl/SaveSnapshotCommand.d.ts.map +1 -0
- package/dist/commands/impl/SaveSnapshotCommand.js +34 -0
- package/dist/commands/impl/SaveSnapshotCommand.js.map +1 -0
- package/dist/commands/impl/SetGridCommand.d.ts +20 -0
- package/dist/commands/impl/SetGridCommand.d.ts.map +1 -0
- package/dist/commands/impl/SetGridCommand.js +35 -0
- package/dist/commands/impl/SetGridCommand.js.map +1 -0
- package/dist/commands/impl/SetLoopRangeCommand.d.ts +18 -0
- package/dist/commands/impl/SetLoopRangeCommand.d.ts.map +1 -0
- package/dist/commands/impl/SetLoopRangeCommand.js +44 -0
- package/dist/commands/impl/SetLoopRangeCommand.js.map +1 -0
- package/dist/commands/impl/SetPluginParameterCommand.d.ts +16 -0
- package/dist/commands/impl/SetPluginParameterCommand.d.ts.map +1 -0
- package/dist/commands/impl/SetPluginParameterCommand.js +49 -0
- package/dist/commands/impl/SetPluginParameterCommand.js.map +1 -0
- package/dist/commands/impl/SetPunchRangeCommand.d.ts +18 -0
- package/dist/commands/impl/SetPunchRangeCommand.d.ts.map +1 -0
- package/dist/commands/impl/SetPunchRangeCommand.js +42 -0
- package/dist/commands/impl/SetPunchRangeCommand.js.map +1 -0
- package/dist/commands/impl/SetRangeCommand.d.ts +27 -0
- package/dist/commands/impl/SetRangeCommand.d.ts.map +1 -0
- package/dist/commands/impl/SetRangeCommand.js +66 -0
- package/dist/commands/impl/SetRangeCommand.js.map +1 -0
- package/dist/commands/impl/SetRegionFadesCommand.d.ts +16 -0
- package/dist/commands/impl/SetRegionFadesCommand.d.ts.map +1 -0
- package/dist/commands/impl/SetRegionFadesCommand.js +46 -0
- package/dist/commands/impl/SetRegionFadesCommand.js.map +1 -0
- package/dist/commands/impl/SetRegionPlaybackRateCommand.d.ts +23 -0
- package/dist/commands/impl/SetRegionPlaybackRateCommand.d.ts.map +1 -0
- package/dist/commands/impl/SetRegionPlaybackRateCommand.js +46 -0
- package/dist/commands/impl/SetRegionPlaybackRateCommand.js.map +1 -0
- package/dist/commands/impl/SetRegionTimeDomainCommand.d.ts +16 -0
- package/dist/commands/impl/SetRegionTimeDomainCommand.d.ts.map +1 -0
- package/dist/commands/impl/SetRegionTimeDomainCommand.js +42 -0
- package/dist/commands/impl/SetRegionTimeDomainCommand.js.map +1 -0
- package/dist/commands/impl/SetSendLevelCommand.d.ts +18 -0
- package/dist/commands/impl/SetSendLevelCommand.d.ts.map +1 -0
- package/dist/commands/impl/SetSendLevelCommand.js +35 -0
- package/dist/commands/impl/SetSendLevelCommand.js.map +1 -0
- package/dist/commands/impl/SetTrackMuteCommand.d.ts +15 -0
- package/dist/commands/impl/SetTrackMuteCommand.d.ts.map +1 -0
- package/dist/commands/impl/SetTrackMuteCommand.js +29 -0
- package/dist/commands/impl/SetTrackMuteCommand.js.map +1 -0
- package/dist/commands/impl/SetTrackPanCommand.d.ts +15 -0
- package/dist/commands/impl/SetTrackPanCommand.d.ts.map +1 -0
- package/dist/commands/impl/SetTrackPanCommand.js +29 -0
- package/dist/commands/impl/SetTrackPanCommand.js.map +1 -0
- package/dist/commands/impl/SetTrackSoloCommand.d.ts +15 -0
- package/dist/commands/impl/SetTrackSoloCommand.d.ts.map +1 -0
- package/dist/commands/impl/SetTrackSoloCommand.js +29 -0
- package/dist/commands/impl/SetTrackSoloCommand.js.map +1 -0
- package/dist/commands/impl/SetTrackVolumeCommand.d.ts +15 -0
- package/dist/commands/impl/SetTrackVolumeCommand.d.ts.map +1 -0
- package/dist/commands/impl/SetTrackVolumeCommand.js +29 -0
- package/dist/commands/impl/SetTrackVolumeCommand.js.map +1 -0
- package/dist/commands/impl/SplitAtPlayheadCommand.d.ts +32 -0
- package/dist/commands/impl/SplitAtPlayheadCommand.d.ts.map +1 -0
- package/dist/commands/impl/SplitAtPlayheadCommand.js +100 -0
- package/dist/commands/impl/SplitAtPlayheadCommand.js.map +1 -0
- package/dist/commands/impl/SplitRegionCommand.d.ts +22 -0
- package/dist/commands/impl/SplitRegionCommand.d.ts.map +1 -0
- package/dist/commands/impl/SplitRegionCommand.js +69 -0
- package/dist/commands/impl/SplitRegionCommand.js.map +1 -0
- package/dist/commands/impl/StripSilenceCommand.d.ts +26 -0
- package/dist/commands/impl/StripSilenceCommand.d.ts.map +1 -0
- package/dist/commands/impl/StripSilenceCommand.js +83 -0
- package/dist/commands/impl/StripSilenceCommand.js.map +1 -0
- package/dist/commands/impl/TimeStretchRegionCommand.d.ts +28 -0
- package/dist/commands/impl/TimeStretchRegionCommand.d.ts.map +1 -0
- package/dist/commands/impl/TimeStretchRegionCommand.js +55 -0
- package/dist/commands/impl/TimeStretchRegionCommand.js.map +1 -0
- package/dist/commands/impl/ToggleLoopCommand.d.ts +12 -0
- package/dist/commands/impl/ToggleLoopCommand.d.ts.map +1 -0
- package/dist/commands/impl/ToggleLoopCommand.js +27 -0
- package/dist/commands/impl/ToggleLoopCommand.js.map +1 -0
- package/dist/commands/impl/TrimRegionCommand.d.ts +22 -0
- package/dist/commands/impl/TrimRegionCommand.d.ts.map +1 -0
- package/dist/commands/impl/TrimRegionCommand.js +92 -0
- package/dist/commands/impl/TrimRegionCommand.js.map +1 -0
- package/dist/commands/impl/UngroupRegionsCommand.d.ts +14 -0
- package/dist/commands/impl/UngroupRegionsCommand.d.ts.map +1 -0
- package/dist/commands/impl/UngroupRegionsCommand.js +28 -0
- package/dist/commands/impl/UngroupRegionsCommand.js.map +1 -0
- package/dist/commands/types.d.ts +1895 -0
- package/dist/commands/types.d.ts.map +1 -0
- package/dist/commands/types.js +1338 -0
- package/dist/commands/types.js.map +1 -0
- package/dist/domain/ABComparison.d.ts +33 -0
- package/dist/domain/ABComparison.d.ts.map +1 -0
- package/dist/domain/ABComparison.js +78 -0
- package/dist/domain/ABComparison.js.map +1 -0
- package/dist/domain/CDMarker.d.ts +36 -0
- package/dist/domain/CDMarker.d.ts.map +1 -0
- package/dist/domain/CDMarker.js +78 -0
- package/dist/domain/CDMarker.js.map +1 -0
- package/dist/domain/ClockMode.d.ts +19 -0
- package/dist/domain/ClockMode.d.ts.map +1 -0
- package/dist/domain/ClockMode.js +65 -0
- package/dist/domain/ClockMode.js.map +1 -0
- package/dist/domain/CrossfadeEngine.d.ts +27 -0
- package/dist/domain/CrossfadeEngine.d.ts.map +1 -0
- package/dist/domain/CrossfadeEngine.js +47 -0
- package/dist/domain/CrossfadeEngine.js.map +1 -0
- package/dist/domain/DragManager.d.ts +21 -0
- package/dist/domain/DragManager.d.ts.map +1 -0
- package/dist/domain/DragManager.js +37 -0
- package/dist/domain/DragManager.js.map +1 -0
- package/dist/domain/EditMode.d.ts +15 -0
- package/dist/domain/EditMode.d.ts.map +1 -0
- package/dist/domain/EditMode.js +16 -0
- package/dist/domain/EditMode.js.map +1 -0
- package/dist/domain/ExportConfig.d.ts +55 -0
- package/dist/domain/ExportConfig.d.ts.map +1 -0
- package/dist/domain/ExportConfig.js +115 -0
- package/dist/domain/ExportConfig.js.map +1 -0
- package/dist/domain/ExportStatus.d.ts +46 -0
- package/dist/domain/ExportStatus.d.ts.map +1 -0
- package/dist/domain/ExportStatus.js +113 -0
- package/dist/domain/ExportStatus.js.map +1 -0
- package/dist/domain/FadeEnvelope.d.ts +31 -0
- package/dist/domain/FadeEnvelope.d.ts.map +1 -0
- package/dist/domain/FadeEnvelope.js +44 -0
- package/dist/domain/FadeEnvelope.js.map +1 -0
- package/dist/domain/GridSettings.d.ts +99 -0
- package/dist/domain/GridSettings.d.ts.map +1 -0
- package/dist/domain/GridSettings.js +213 -0
- package/dist/domain/GridSettings.js.map +1 -0
- package/dist/domain/Marker.d.ts +31 -0
- package/dist/domain/Marker.d.ts.map +1 -0
- package/dist/domain/Marker.js +56 -0
- package/dist/domain/Marker.js.map +1 -0
- package/dist/domain/MeterData.d.ts +26 -0
- package/dist/domain/MeterData.d.ts.map +1 -0
- package/dist/domain/MeterData.js +2 -0
- package/dist/domain/MeterData.js.map +1 -0
- package/dist/domain/MeterType.d.ts +22 -0
- package/dist/domain/MeterType.d.ts.map +1 -0
- package/dist/domain/MeterType.js +24 -0
- package/dist/domain/MeterType.js.map +1 -0
- package/dist/domain/MidiClip.d.ts +56 -0
- package/dist/domain/MidiClip.d.ts.map +1 -0
- package/dist/domain/MidiClip.js +119 -0
- package/dist/domain/MidiClip.js.map +1 -0
- package/dist/domain/MidiNote.d.ts +38 -0
- package/dist/domain/MidiNote.d.ts.map +1 -0
- package/dist/domain/MidiNote.js +82 -0
- package/dist/domain/MidiNote.js.map +1 -0
- package/dist/domain/MidiRegion.d.ts +65 -0
- package/dist/domain/MidiRegion.d.ts.map +1 -0
- package/dist/domain/MidiRegion.js +123 -0
- package/dist/domain/MidiRegion.js.map +1 -0
- package/dist/domain/MixerScene.d.ts +62 -0
- package/dist/domain/MixerScene.d.ts.map +1 -0
- package/dist/domain/MixerScene.js +131 -0
- package/dist/domain/MixerScene.js.map +1 -0
- package/dist/domain/MonitorMode.d.ts +15 -0
- package/dist/domain/MonitorMode.d.ts.map +1 -0
- package/dist/domain/MonitorMode.js +16 -0
- package/dist/domain/MonitorMode.js.map +1 -0
- package/dist/domain/MouseMode.d.ts +25 -0
- package/dist/domain/MouseMode.d.ts.map +1 -0
- package/dist/domain/MouseMode.js +26 -0
- package/dist/domain/MouseMode.js.map +1 -0
- package/dist/domain/OverlapType.d.ts +18 -0
- package/dist/domain/OverlapType.d.ts.map +1 -0
- package/dist/domain/OverlapType.js +19 -0
- package/dist/domain/OverlapType.js.map +1 -0
- package/dist/domain/Playlist.d.ts +83 -0
- package/dist/domain/Playlist.d.ts.map +1 -0
- package/dist/domain/Playlist.js +205 -0
- package/dist/domain/Playlist.js.map +1 -0
- package/dist/domain/Range.d.ts +35 -0
- package/dist/domain/Range.d.ts.map +1 -0
- package/dist/domain/Range.js +59 -0
- package/dist/domain/Range.js.map +1 -0
- package/dist/domain/RecordMode.d.ts +13 -0
- package/dist/domain/RecordMode.d.ts.map +1 -0
- package/dist/domain/RecordMode.js +14 -0
- package/dist/domain/RecordMode.js.map +1 -0
- package/dist/domain/Region.d.ts +96 -0
- package/dist/domain/Region.d.ts.map +1 -0
- package/dist/domain/Region.js +219 -0
- package/dist/domain/Region.js.map +1 -0
- package/dist/domain/RegionClipboard.d.ts +56 -0
- package/dist/domain/RegionClipboard.d.ts.map +1 -0
- package/dist/domain/RegionClipboard.js +70 -0
- package/dist/domain/RegionClipboard.js.map +1 -0
- package/dist/domain/RegionGroup.d.ts +16 -0
- package/dist/domain/RegionGroup.d.ts.map +1 -0
- package/dist/domain/RegionGroup.js +36 -0
- package/dist/domain/RegionGroup.js.map +1 -0
- package/dist/domain/Route.d.ts +104 -0
- package/dist/domain/Route.d.ts.map +1 -0
- package/dist/domain/Route.js +192 -0
- package/dist/domain/Route.js.map +1 -0
- package/dist/domain/RulerType.d.ts +21 -0
- package/dist/domain/RulerType.d.ts.map +1 -0
- package/dist/domain/RulerType.js +22 -0
- package/dist/domain/RulerType.js.map +1 -0
- package/dist/domain/SelectionHistory.d.ts +38 -0
- package/dist/domain/SelectionHistory.d.ts.map +1 -0
- package/dist/domain/SelectionHistory.js +70 -0
- package/dist/domain/SelectionHistory.js.map +1 -0
- package/dist/domain/SendBus.d.ts +28 -0
- package/dist/domain/SendBus.d.ts.map +1 -0
- package/dist/domain/SendBus.js +43 -0
- package/dist/domain/SendBus.js.map +1 -0
- package/dist/domain/Session.d.ts +347 -0
- package/dist/domain/Session.d.ts.map +1 -0
- package/dist/domain/Session.js +965 -0
- package/dist/domain/Session.js.map +1 -0
- package/dist/domain/SidechainConfig.d.ts +51 -0
- package/dist/domain/SidechainConfig.d.ts.map +1 -0
- package/dist/domain/SidechainConfig.js +84 -0
- package/dist/domain/SidechainConfig.js.map +1 -0
- package/dist/domain/Source.d.ts +11 -0
- package/dist/domain/Source.d.ts.map +1 -0
- package/dist/domain/Source.js +11 -0
- package/dist/domain/Source.js.map +1 -0
- package/dist/domain/Take.d.ts +66 -0
- package/dist/domain/Take.d.ts.map +1 -0
- package/dist/domain/Take.js +106 -0
- package/dist/domain/Take.js.map +1 -0
- package/dist/domain/Track.d.ts +58 -0
- package/dist/domain/Track.d.ts.map +1 -0
- package/dist/domain/Track.js +124 -0
- package/dist/domain/Track.js.map +1 -0
- package/dist/domain/TrackGroup.d.ts +39 -0
- package/dist/domain/TrackGroup.d.ts.map +1 -0
- package/dist/domain/TrackGroup.js +86 -0
- package/dist/domain/TrackGroup.js.map +1 -0
- package/dist/domain/TransportFSM.d.ts +188 -0
- package/dist/domain/TransportFSM.d.ts.map +1 -0
- package/dist/domain/TransportFSM.js +412 -0
- package/dist/domain/TransportFSM.js.map +1 -0
- package/dist/domain/TransportMode.d.ts +23 -0
- package/dist/domain/TransportMode.d.ts.map +1 -0
- package/dist/domain/TransportMode.js +38 -0
- package/dist/domain/TransportMode.js.map +1 -0
- package/dist/domain/VCATrack.d.ts +48 -0
- package/dist/domain/VCATrack.d.ts.map +1 -0
- package/dist/domain/VCATrack.js +85 -0
- package/dist/domain/VCATrack.js.map +1 -0
- package/dist/domain/ZoomFocus.d.ts +21 -0
- package/dist/domain/ZoomFocus.d.ts.map +1 -0
- package/dist/domain/ZoomFocus.js +22 -0
- package/dist/domain/ZoomFocus.js.map +1 -0
- package/dist/domain/index.d.ts +11 -0
- package/dist/domain/index.d.ts.map +1 -0
- package/dist/domain/index.js +12 -0
- package/dist/domain/index.js.map +1 -0
- package/dist/domain/temporal/TempoMap.d.ts +68 -0
- package/dist/domain/temporal/TempoMap.d.ts.map +1 -0
- package/dist/domain/temporal/TempoMap.js +151 -0
- package/dist/domain/temporal/TempoMap.js.map +1 -0
- package/dist/domain/temporal/types.d.ts +34 -0
- package/dist/domain/temporal/types.d.ts.map +1 -0
- package/dist/domain/temporal/types.js +54 -0
- package/dist/domain/temporal/types.js.map +1 -0
- package/dist/domain/types.d.ts +26 -0
- package/dist/domain/types.d.ts.map +1 -0
- package/dist/domain/types.js +11 -0
- package/dist/domain/types.js.map +1 -0
- package/dist/errors/DAWErrors.d.ts +107 -0
- package/dist/errors/DAWErrors.d.ts.map +1 -0
- package/dist/errors/DAWErrors.js +159 -0
- package/dist/errors/DAWErrors.js.map +1 -0
- package/dist/index.d.ts +56 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +59 -0
- package/dist/index.js.map +1 -0
- package/dist/lib/Signal.d.ts +28 -0
- package/dist/lib/Signal.d.ts.map +1 -0
- package/dist/lib/Signal.js +34 -0
- package/dist/lib/Signal.js.map +1 -0
- package/dist/midi/MidiInput.d.ts +61 -0
- package/dist/midi/MidiInput.d.ts.map +1 -0
- package/dist/midi/MidiInput.js +153 -0
- package/dist/midi/MidiInput.js.map +1 -0
- package/dist/plugins/AutomatableParameter.d.ts +28 -0
- package/dist/plugins/AutomatableParameter.d.ts.map +1 -0
- package/dist/plugins/AutomatableParameter.js +89 -0
- package/dist/plugins/AutomatableParameter.js.map +1 -0
- package/dist/plugins/Plugin.d.ts +31 -0
- package/dist/plugins/Plugin.d.ts.map +1 -0
- package/dist/plugins/Plugin.js +7 -0
- package/dist/plugins/Plugin.js.map +1 -0
- package/dist/plugins/PluginManager.d.ts +15 -0
- package/dist/plugins/PluginManager.d.ts.map +1 -0
- package/dist/plugins/PluginManager.js +199 -0
- package/dist/plugins/PluginManager.js.map +1 -0
- package/dist/plugins/PluginPreset.d.ts +50 -0
- package/dist/plugins/PluginPreset.d.ts.map +1 -0
- package/dist/plugins/PluginPreset.js +292 -0
- package/dist/plugins/PluginPreset.js.map +1 -0
- package/dist/plugins/impl/AutoPanPlugin.d.ts +28 -0
- package/dist/plugins/impl/AutoPanPlugin.d.ts.map +1 -0
- package/dist/plugins/impl/AutoPanPlugin.js +48 -0
- package/dist/plugins/impl/AutoPanPlugin.js.map +1 -0
- package/dist/plugins/impl/ConvolutionReverbPlugin.d.ts +35 -0
- package/dist/plugins/impl/ConvolutionReverbPlugin.d.ts.map +1 -0
- package/dist/plugins/impl/ConvolutionReverbPlugin.js +65 -0
- package/dist/plugins/impl/ConvolutionReverbPlugin.js.map +1 -0
- package/dist/plugins/impl/DeEsserPlugin.d.ts +35 -0
- package/dist/plugins/impl/DeEsserPlugin.d.ts.map +1 -0
- package/dist/plugins/impl/DeEsserPlugin.js +87 -0
- package/dist/plugins/impl/DeEsserPlugin.js.map +1 -0
- package/dist/plugins/impl/ExpanderPlugin.d.ts +42 -0
- package/dist/plugins/impl/ExpanderPlugin.d.ts.map +1 -0
- package/dist/plugins/impl/ExpanderPlugin.js +105 -0
- package/dist/plugins/impl/ExpanderPlugin.js.map +1 -0
- package/dist/plugins/impl/GenericPlugin.d.ts +20 -0
- package/dist/plugins/impl/GenericPlugin.d.ts.map +1 -0
- package/dist/plugins/impl/GenericPlugin.js +37 -0
- package/dist/plugins/impl/GenericPlugin.js.map +1 -0
- package/dist/plugins/impl/MultibandCompressorPlugin.d.ts +33 -0
- package/dist/plugins/impl/MultibandCompressorPlugin.d.ts.map +1 -0
- package/dist/plugins/impl/MultibandCompressorPlugin.js +169 -0
- package/dist/plugins/impl/MultibandCompressorPlugin.js.map +1 -0
- package/dist/plugins/impl/ParametricEQPlugin.d.ts +25 -0
- package/dist/plugins/impl/ParametricEQPlugin.d.ts.map +1 -0
- package/dist/plugins/impl/ParametricEQPlugin.js +79 -0
- package/dist/plugins/impl/ParametricEQPlugin.js.map +1 -0
- package/dist/plugins/impl/PhaserPlugin.d.ts +29 -0
- package/dist/plugins/impl/PhaserPlugin.d.ts.map +1 -0
- package/dist/plugins/impl/PhaserPlugin.js +50 -0
- package/dist/plugins/impl/PhaserPlugin.js.map +1 -0
- package/dist/plugins/impl/SyncDelayPlugin.d.ts +52 -0
- package/dist/plugins/impl/SyncDelayPlugin.d.ts.map +1 -0
- package/dist/plugins/impl/SyncDelayPlugin.js +95 -0
- package/dist/plugins/impl/SyncDelayPlugin.js.map +1 -0
- package/dist/plugins/impl/TapeSaturationPlugin.d.ts +35 -0
- package/dist/plugins/impl/TapeSaturationPlugin.d.ts.map +1 -0
- package/dist/plugins/impl/TapeSaturationPlugin.js +87 -0
- package/dist/plugins/impl/TapeSaturationPlugin.js.map +1 -0
- package/dist/plugins/impl/TremoloPlugin.d.ts +29 -0
- package/dist/plugins/impl/TremoloPlugin.d.ts.map +1 -0
- package/dist/plugins/impl/TremoloPlugin.js +50 -0
- package/dist/plugins/impl/TremoloPlugin.js.map +1 -0
- package/dist/plugins/impl/VibratoPlugin.d.ts +28 -0
- package/dist/plugins/impl/VibratoPlugin.d.ts.map +1 -0
- package/dist/plugins/impl/VibratoPlugin.js +48 -0
- package/dist/plugins/impl/VibratoPlugin.js.map +1 -0
- package/dist/preferences/KeyBindings.d.ts +38 -0
- package/dist/preferences/KeyBindings.d.ts.map +1 -0
- package/dist/preferences/KeyBindings.js +83 -0
- package/dist/preferences/KeyBindings.js.map +1 -0
- package/dist/preferences/Preferences.d.ts +49 -0
- package/dist/preferences/Preferences.d.ts.map +1 -0
- package/dist/preferences/Preferences.js +93 -0
- package/dist/preferences/Preferences.js.map +1 -0
- package/dist/preferences/index.d.ts +4 -0
- package/dist/preferences/index.d.ts.map +1 -0
- package/dist/preferences/index.js +3 -0
- package/dist/preferences/index.js.map +1 -0
- package/dist/processing/GainProcessor.d.ts +10 -0
- package/dist/processing/GainProcessor.d.ts.map +1 -0
- package/dist/processing/GainProcessor.js +21 -0
- package/dist/processing/GainProcessor.js.map +1 -0
- package/dist/processing/IO.d.ts +15 -0
- package/dist/processing/IO.d.ts.map +1 -0
- package/dist/processing/IO.js +34 -0
- package/dist/processing/IO.js.map +1 -0
- package/dist/processing/MeterProcessor.d.ts +101 -0
- package/dist/processing/MeterProcessor.d.ts.map +1 -0
- package/dist/processing/MeterProcessor.js +195 -0
- package/dist/processing/MeterProcessor.js.map +1 -0
- package/dist/processing/PanProcessor.d.ts +15 -0
- package/dist/processing/PanProcessor.d.ts.map +1 -0
- package/dist/processing/PanProcessor.js +35 -0
- package/dist/processing/PanProcessor.js.map +1 -0
- package/dist/processing/PluginInsert.d.ts +9 -0
- package/dist/processing/PluginInsert.d.ts.map +1 -0
- package/dist/processing/PluginInsert.js +16 -0
- package/dist/processing/PluginInsert.js.map +1 -0
- package/dist/processing/PolarityProcessor.d.ts +25 -0
- package/dist/processing/PolarityProcessor.d.ts.map +1 -0
- package/dist/processing/PolarityProcessor.js +35 -0
- package/dist/processing/PolarityProcessor.js.map +1 -0
- package/dist/processing/Processor.d.ts +31 -0
- package/dist/processing/Processor.d.ts.map +1 -0
- package/dist/processing/Processor.js +45 -0
- package/dist/processing/Processor.js.map +1 -0
- package/dist/processing/SendProcessor.d.ts +55 -0
- package/dist/processing/SendProcessor.d.ts.map +1 -0
- package/dist/processing/SendProcessor.js +97 -0
- package/dist/processing/SendProcessor.js.map +1 -0
- package/dist/storage/AutoSave.d.ts +48 -0
- package/dist/storage/AutoSave.d.ts.map +1 -0
- package/dist/storage/AutoSave.js +108 -0
- package/dist/storage/AutoSave.js.map +1 -0
- package/dist/storage/SessionStorage.d.ts +74 -0
- package/dist/storage/SessionStorage.d.ts.map +1 -0
- package/dist/storage/SessionStorage.js +192 -0
- package/dist/storage/SessionStorage.js.map +1 -0
- package/dist/storage/SessionTemplate.d.ts +22 -0
- package/dist/storage/SessionTemplate.d.ts.map +1 -0
- package/dist/storage/SessionTemplate.js +77 -0
- package/dist/storage/SessionTemplate.js.map +1 -0
- package/dist/utils/AudioBufferToWav.d.ts +28 -0
- package/dist/utils/AudioBufferToWav.d.ts.map +1 -0
- package/dist/utils/AudioBufferToWav.js +110 -0
- package/dist/utils/AudioBufferToWav.js.map +1 -0
- package/dist/utils/DitherProcessor.d.ts +41 -0
- package/dist/utils/DitherProcessor.d.ts.map +1 -0
- package/dist/utils/DitherProcessor.js +78 -0
- package/dist/utils/DitherProcessor.js.map +1 -0
- package/dist/utils/FlacEncoder.d.ts +22 -0
- package/dist/utils/FlacEncoder.d.ts.map +1 -0
- package/dist/utils/FlacEncoder.js +196 -0
- package/dist/utils/FlacEncoder.js.map +1 -0
- package/dist/utils/OggEncoder.d.ts +40 -0
- package/dist/utils/OggEncoder.d.ts.map +1 -0
- package/dist/utils/OggEncoder.js +183 -0
- package/dist/utils/OggEncoder.js.map +1 -0
- package/package.json +67 -0
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import { Signal } from '../lib/Signal';
|
|
2
|
+
const STORAGE_KEY = 'drop-ai-keybindings';
|
|
3
|
+
/**
|
|
4
|
+
* Manages custom keyboard shortcut bindings that override defaults.
|
|
5
|
+
* Persists to localStorage.
|
|
6
|
+
*/
|
|
7
|
+
export class KeyBindings {
|
|
8
|
+
constructor() {
|
|
9
|
+
this.customBindings = new Map();
|
|
10
|
+
this.bindingsChanged = new Signal();
|
|
11
|
+
this.loadFromStorage();
|
|
12
|
+
}
|
|
13
|
+
static getInstance() {
|
|
14
|
+
if (!KeyBindings.instance) {
|
|
15
|
+
KeyBindings.instance = new KeyBindings();
|
|
16
|
+
}
|
|
17
|
+
return KeyBindings.instance;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Set a custom key binding for an action, overriding the default.
|
|
21
|
+
*/
|
|
22
|
+
setBinding(actionId, keyCombo) {
|
|
23
|
+
this.customBindings.set(actionId, keyCombo);
|
|
24
|
+
this.saveToStorage();
|
|
25
|
+
this.bindingsChanged.emit({ actionId, keyCombo });
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Get the custom key binding for an action (undefined if using default).
|
|
29
|
+
*/
|
|
30
|
+
getBinding(actionId) {
|
|
31
|
+
return this.customBindings.get(actionId);
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Remove a custom binding, reverting to default.
|
|
35
|
+
*/
|
|
36
|
+
removeBinding(actionId) {
|
|
37
|
+
this.customBindings.delete(actionId);
|
|
38
|
+
this.saveToStorage();
|
|
39
|
+
this.bindingsChanged.emit({ actionId, keyCombo: undefined });
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* Clear all custom bindings, reverting everything to defaults.
|
|
43
|
+
*/
|
|
44
|
+
resetToDefaults() {
|
|
45
|
+
this.customBindings.clear();
|
|
46
|
+
this.saveToStorage();
|
|
47
|
+
this.bindingsChanged.emit({ actionId: '*', keyCombo: undefined });
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Get all custom bindings as a Map of actionId -> keyCombo.
|
|
51
|
+
*/
|
|
52
|
+
getAllBindings() {
|
|
53
|
+
return new Map(this.customBindings);
|
|
54
|
+
}
|
|
55
|
+
saveToStorage() {
|
|
56
|
+
try {
|
|
57
|
+
if (typeof localStorage === 'undefined')
|
|
58
|
+
return;
|
|
59
|
+
const data = Object.fromEntries(this.customBindings);
|
|
60
|
+
localStorage.setItem(STORAGE_KEY, JSON.stringify(data));
|
|
61
|
+
}
|
|
62
|
+
catch (_a) {
|
|
63
|
+
// localStorage may be unavailable (SSR, private browsing)
|
|
64
|
+
console.warn('[KeyBindings] Failed to save to localStorage');
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
loadFromStorage() {
|
|
68
|
+
try {
|
|
69
|
+
if (typeof localStorage === 'undefined')
|
|
70
|
+
return;
|
|
71
|
+
const raw = localStorage.getItem(STORAGE_KEY);
|
|
72
|
+
if (raw) {
|
|
73
|
+
const data = JSON.parse(raw);
|
|
74
|
+
this.customBindings = new Map(Object.entries(data));
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
catch (_a) {
|
|
78
|
+
// localStorage may be unavailable (SSR, private browsing)
|
|
79
|
+
console.warn('[KeyBindings] Failed to load from localStorage');
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
//# sourceMappingURL=KeyBindings.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"KeyBindings.js","sourceRoot":"","sources":["../../src/preferences/KeyBindings.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAEvC,MAAM,WAAW,GAAG,qBAAqB,CAAC;AAE1C;;;GAGG;AACH,MAAM,OAAO,WAAW;IAKpB;QAHQ,mBAAc,GAAwB,IAAI,GAAG,EAAE,CAAC;QACxC,oBAAe,GAAG,IAAI,MAAM,EAAsD,CAAC;QAG/F,IAAI,CAAC,eAAe,EAAE,CAAC;IAC3B,CAAC;IAEM,MAAM,CAAC,WAAW;QACrB,IAAI,CAAC,WAAW,CAAC,QAAQ,EAAE,CAAC;YACxB,WAAW,CAAC,QAAQ,GAAG,IAAI,WAAW,EAAE,CAAC;QAC7C,CAAC;QACD,OAAO,WAAW,CAAC,QAAQ,CAAC;IAChC,CAAC;IAED;;OAEG;IACI,UAAU,CAAC,QAAgB,EAAE,QAAgB;QAChD,IAAI,CAAC,cAAc,CAAC,GAAG,CAAC,QAAQ,EAAE,QAAQ,CAAC,CAAC;QAC5C,IAAI,CAAC,aAAa,EAAE,CAAC;QACrB,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,EAAE,QAAQ,EAAE,QAAQ,EAAE,CAAC,CAAC;IACtD,CAAC;IAED;;OAEG;IACI,UAAU,CAAC,QAAgB;QAC9B,OAAO,IAAI,CAAC,cAAc,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;IAC7C,CAAC;IAED;;OAEG;IACI,aAAa,CAAC,QAAgB;QACjC,IAAI,CAAC,cAAc,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;QACrC,IAAI,CAAC,aAAa,EAAE,CAAC;QACrB,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,EAAE,QAAQ,EAAE,QAAQ,EAAE,SAAS,EAAE,CAAC,CAAC;IACjE,CAAC;IAED;;OAEG;IACI,eAAe;QAClB,IAAI,CAAC,cAAc,CAAC,KAAK,EAAE,CAAC;QAC5B,IAAI,CAAC,aAAa,EAAE,CAAC;QACrB,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,EAAE,QAAQ,EAAE,GAAG,EAAE,QAAQ,EAAE,SAAS,EAAE,CAAC,CAAC;IACtE,CAAC;IAED;;OAEG;IACI,cAAc;QACjB,OAAO,IAAI,GAAG,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC;IACxC,CAAC;IAEO,aAAa;QACjB,IAAI,CAAC;YACD,IAAI,OAAO,YAAY,KAAK,WAAW;gBAAE,OAAO;YAChD,MAAM,IAAI,GAAG,MAAM,CAAC,WAAW,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC;YACrD,YAAY,CAAC,OAAO,CAAC,WAAW,EAAE,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC,CAAC;QAC5D,CAAC;QAAC,WAAM,CAAC;YACL,0DAA0D;YAC1D,OAAO,CAAC,IAAI,CAAC,8CAA8C,CAAC,CAAC;QACjE,CAAC;IACL,CAAC;IAEO,eAAe;QACnB,IAAI,CAAC;YACD,IAAI,OAAO,YAAY,KAAK,WAAW;gBAAE,OAAO;YAChD,MAAM,GAAG,GAAG,YAAY,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC;YAC9C,IAAI,GAAG,EAAE,CAAC;gBACN,MAAM,IAAI,GAAG,IAAI,CAAC,KAAK,CAAC,GAAG,CAA2B,CAAC;gBACvD,IAAI,CAAC,cAAc,GAAG,IAAI,GAAG,CAAC,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC;YACxD,CAAC;QACL,CAAC;QAAC,WAAM,CAAC;YACL,0DAA0D;YAC1D,OAAO,CAAC,IAAI,CAAC,gDAAgD,CAAC,CAAC;QACnE,CAAC;IACL,CAAC;CACJ"}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { Signal } from '../lib/Signal';
|
|
2
|
+
export interface PreferenceValues {
|
|
3
|
+
audioBufferSize: 128 | 256 | 512 | 1024 | 2048;
|
|
4
|
+
sampleRate: 44100 | 48000 | 96000;
|
|
5
|
+
theme: 'dark' | 'light';
|
|
6
|
+
autoSaveInterval: number;
|
|
7
|
+
snapToGrid: boolean;
|
|
8
|
+
gridSubdivision: number;
|
|
9
|
+
meterType: 'peak' | 'rms' | 'vu';
|
|
10
|
+
showMinimap: boolean;
|
|
11
|
+
followPlayhead: boolean;
|
|
12
|
+
countInBars: number;
|
|
13
|
+
historyDepth: number;
|
|
14
|
+
saveHistory: boolean;
|
|
15
|
+
saveHistoryDepth: number;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Singleton preferences system with Signal-based change notification.
|
|
19
|
+
* Persists to localStorage.
|
|
20
|
+
*/
|
|
21
|
+
export declare class Preferences {
|
|
22
|
+
private static instance;
|
|
23
|
+
private values;
|
|
24
|
+
readonly preferenceChanged: Signal<{
|
|
25
|
+
key: keyof PreferenceValues;
|
|
26
|
+
value: unknown;
|
|
27
|
+
}>;
|
|
28
|
+
private constructor();
|
|
29
|
+
static getInstance(): Preferences;
|
|
30
|
+
/**
|
|
31
|
+
* Get a preference value by key.
|
|
32
|
+
*/
|
|
33
|
+
get<K extends keyof PreferenceValues>(key: K): PreferenceValues[K];
|
|
34
|
+
/**
|
|
35
|
+
* Set a preference value.
|
|
36
|
+
*/
|
|
37
|
+
set<K extends keyof PreferenceValues>(key: K, value: PreferenceValues[K]): void;
|
|
38
|
+
/**
|
|
39
|
+
* Get all preferences as a plain object.
|
|
40
|
+
*/
|
|
41
|
+
getAll(): Readonly<PreferenceValues>;
|
|
42
|
+
/**
|
|
43
|
+
* Reset all preferences to defaults.
|
|
44
|
+
*/
|
|
45
|
+
resetToDefaults(): void;
|
|
46
|
+
private saveToStorage;
|
|
47
|
+
private loadFromStorage;
|
|
48
|
+
}
|
|
49
|
+
//# sourceMappingURL=Preferences.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Preferences.d.ts","sourceRoot":"","sources":["../../src/preferences/Preferences.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAIvC,MAAM,WAAW,gBAAgB;IAC7B,eAAe,EAAE,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,IAAI,GAAG,IAAI,CAAC;IAC/C,UAAU,EAAE,KAAK,GAAG,KAAK,GAAG,KAAK,CAAC;IAClC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC;IACxB,gBAAgB,EAAE,MAAM,CAAC;IACzB,UAAU,EAAE,OAAO,CAAC;IACpB,eAAe,EAAE,MAAM,CAAC;IACxB,SAAS,EAAE,MAAM,GAAG,KAAK,GAAG,IAAI,CAAC;IACjC,WAAW,EAAE,OAAO,CAAC;IACrB,cAAc,EAAE,OAAO,CAAC;IACxB,WAAW,EAAE,MAAM,CAAC;IAEpB,YAAY,EAAE,MAAM,CAAC;IACrB,WAAW,EAAE,OAAO,CAAC;IACrB,gBAAgB,EAAE,MAAM,CAAC;CAC5B;AAkBD;;;GAGG;AACH,qBAAa,WAAW;IACpB,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAc;IACrC,OAAO,CAAC,MAAM,CAAmB;IACjC,SAAgB,iBAAiB;aAAqB,MAAM,gBAAgB;eAAS,OAAO;OAAM;IAElG,OAAO;WAKO,WAAW,IAAI,WAAW;IAOxC;;OAEG;IACI,GAAG,CAAC,CAAC,SAAS,MAAM,gBAAgB,EAAE,GAAG,EAAE,CAAC,GAAG,gBAAgB,CAAC,CAAC,CAAC;IAIzE;;OAEG;IACI,GAAG,CAAC,CAAC,SAAS,MAAM,gBAAgB,EAAE,GAAG,EAAE,CAAC,EAAE,KAAK,EAAE,gBAAgB,CAAC,CAAC,CAAC,GAAG,IAAI;IAOtF;;OAEG;IACI,MAAM,IAAI,QAAQ,CAAC,gBAAgB,CAAC;IAI3C;;OAEG;IACI,eAAe,IAAI,IAAI;IAS9B,OAAO,CAAC,aAAa;IASrB,OAAO,CAAC,eAAe;CAa1B"}
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
import { Signal } from '../lib/Signal';
|
|
2
|
+
const STORAGE_KEY = 'drop-ai-preferences';
|
|
3
|
+
const DEFAULT_PREFERENCES = {
|
|
4
|
+
audioBufferSize: 512,
|
|
5
|
+
sampleRate: 44100,
|
|
6
|
+
theme: 'dark',
|
|
7
|
+
autoSaveInterval: 60000,
|
|
8
|
+
snapToGrid: true,
|
|
9
|
+
gridSubdivision: 4,
|
|
10
|
+
meterType: 'peak',
|
|
11
|
+
showMinimap: true,
|
|
12
|
+
followPlayhead: true,
|
|
13
|
+
countInBars: 0,
|
|
14
|
+
historyDepth: 0,
|
|
15
|
+
saveHistory: true,
|
|
16
|
+
saveHistoryDepth: 0,
|
|
17
|
+
};
|
|
18
|
+
/**
|
|
19
|
+
* Singleton preferences system with Signal-based change notification.
|
|
20
|
+
* Persists to localStorage.
|
|
21
|
+
*/
|
|
22
|
+
export class Preferences {
|
|
23
|
+
constructor() {
|
|
24
|
+
this.preferenceChanged = new Signal();
|
|
25
|
+
this.values = Object.assign({}, DEFAULT_PREFERENCES);
|
|
26
|
+
this.loadFromStorage();
|
|
27
|
+
}
|
|
28
|
+
static getInstance() {
|
|
29
|
+
if (!Preferences.instance) {
|
|
30
|
+
Preferences.instance = new Preferences();
|
|
31
|
+
}
|
|
32
|
+
return Preferences.instance;
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* Get a preference value by key.
|
|
36
|
+
*/
|
|
37
|
+
get(key) {
|
|
38
|
+
return this.values[key];
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Set a preference value.
|
|
42
|
+
*/
|
|
43
|
+
set(key, value) {
|
|
44
|
+
if (this.values[key] === value)
|
|
45
|
+
return;
|
|
46
|
+
this.values[key] = value;
|
|
47
|
+
this.saveToStorage();
|
|
48
|
+
this.preferenceChanged.emit({ key, value });
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* Get all preferences as a plain object.
|
|
52
|
+
*/
|
|
53
|
+
getAll() {
|
|
54
|
+
return Object.assign({}, this.values);
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* Reset all preferences to defaults.
|
|
58
|
+
*/
|
|
59
|
+
resetToDefaults() {
|
|
60
|
+
const keys = Object.keys(DEFAULT_PREFERENCES);
|
|
61
|
+
this.values = Object.assign({}, DEFAULT_PREFERENCES);
|
|
62
|
+
this.saveToStorage();
|
|
63
|
+
keys.forEach(key => {
|
|
64
|
+
this.preferenceChanged.emit({ key, value: this.values[key] });
|
|
65
|
+
});
|
|
66
|
+
}
|
|
67
|
+
saveToStorage() {
|
|
68
|
+
try {
|
|
69
|
+
if (typeof localStorage === 'undefined')
|
|
70
|
+
return;
|
|
71
|
+
localStorage.setItem(STORAGE_KEY, JSON.stringify(this.values));
|
|
72
|
+
}
|
|
73
|
+
catch (_a) {
|
|
74
|
+
console.warn('[Preferences] Failed to save to localStorage');
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
loadFromStorage() {
|
|
78
|
+
try {
|
|
79
|
+
if (typeof localStorage === 'undefined')
|
|
80
|
+
return;
|
|
81
|
+
const raw = localStorage.getItem(STORAGE_KEY);
|
|
82
|
+
if (raw) {
|
|
83
|
+
const data = JSON.parse(raw);
|
|
84
|
+
// Merge loaded values with defaults (in case new prefs were added)
|
|
85
|
+
this.values = Object.assign(Object.assign({}, DEFAULT_PREFERENCES), data);
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
catch (_a) {
|
|
89
|
+
console.warn('[Preferences] Failed to load from localStorage');
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
//# sourceMappingURL=Preferences.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Preferences.js","sourceRoot":"","sources":["../../src/preferences/Preferences.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAEvC,MAAM,WAAW,GAAG,qBAAqB,CAAC;AAmB1C,MAAM,mBAAmB,GAAqB;IAC1C,eAAe,EAAE,GAAG;IACpB,UAAU,EAAE,KAAK;IACjB,KAAK,EAAE,MAAM;IACb,gBAAgB,EAAE,KAAK;IACvB,UAAU,EAAE,IAAI;IAChB,eAAe,EAAE,CAAC;IAClB,SAAS,EAAE,MAAM;IACjB,WAAW,EAAE,IAAI;IACjB,cAAc,EAAE,IAAI;IACpB,WAAW,EAAE,CAAC;IACd,YAAY,EAAE,CAAC;IACf,WAAW,EAAE,IAAI;IACjB,gBAAgB,EAAE,CAAC;CACtB,CAAC;AAEF;;;GAGG;AACH,MAAM,OAAO,WAAW;IAKpB;QAFgB,sBAAiB,GAAG,IAAI,MAAM,EAAmD,CAAC;QAG9F,IAAI,CAAC,MAAM,qBAAQ,mBAAmB,CAAE,CAAC;QACzC,IAAI,CAAC,eAAe,EAAE,CAAC;IAC3B,CAAC;IAEM,MAAM,CAAC,WAAW;QACrB,IAAI,CAAC,WAAW,CAAC,QAAQ,EAAE,CAAC;YACxB,WAAW,CAAC,QAAQ,GAAG,IAAI,WAAW,EAAE,CAAC;QAC7C,CAAC;QACD,OAAO,WAAW,CAAC,QAAQ,CAAC;IAChC,CAAC;IAED;;OAEG;IACI,GAAG,CAAmC,GAAM;QAC/C,OAAO,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;IAC5B,CAAC;IAED;;OAEG;IACI,GAAG,CAAmC,GAAM,EAAE,KAA0B;QAC3E,IAAI,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,KAAK,KAAK;YAAE,OAAO;QACvC,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,GAAG,KAAK,CAAC;QACzB,IAAI,CAAC,aAAa,EAAE,CAAC;QACrB,IAAI,CAAC,iBAAiB,CAAC,IAAI,CAAC,EAAE,GAAG,EAAE,KAAK,EAAE,CAAC,CAAC;IAChD,CAAC;IAED;;OAEG;IACI,MAAM;QACT,yBAAY,IAAI,CAAC,MAAM,EAAG;IAC9B,CAAC;IAED;;OAEG;IACI,eAAe;QAClB,MAAM,IAAI,GAAG,MAAM,CAAC,IAAI,CAAC,mBAAmB,CAAkC,CAAC;QAC/E,IAAI,CAAC,MAAM,qBAAQ,mBAAmB,CAAE,CAAC;QACzC,IAAI,CAAC,aAAa,EAAE,CAAC;QACrB,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,EAAE;YACf,IAAI,CAAC,iBAAiB,CAAC,IAAI,CAAC,EAAE,GAAG,EAAE,KAAK,EAAE,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;QAClE,CAAC,CAAC,CAAC;IACP,CAAC;IAEO,aAAa;QACjB,IAAI,CAAC;YACD,IAAI,OAAO,YAAY,KAAK,WAAW;gBAAE,OAAO;YAChD,YAAY,CAAC,OAAO,CAAC,WAAW,EAAE,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC;QACnE,CAAC;QAAC,WAAM,CAAC;YACL,OAAO,CAAC,IAAI,CAAC,8CAA8C,CAAC,CAAC;QACjE,CAAC;IACL,CAAC;IAEO,eAAe;QACnB,IAAI,CAAC;YACD,IAAI,OAAO,YAAY,KAAK,WAAW;gBAAE,OAAO;YAChD,MAAM,GAAG,GAAG,YAAY,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC;YAC9C,IAAI,GAAG,EAAE,CAAC;gBACN,MAAM,IAAI,GAAG,IAAI,CAAC,KAAK,CAAC,GAAG,CAA8B,CAAC;gBAC1D,mEAAmE;gBACnE,IAAI,CAAC,MAAM,mCAAQ,mBAAmB,GAAK,IAAI,CAAE,CAAC;YACtD,CAAC;QACL,CAAC;QAAC,WAAM,CAAC;YACL,OAAO,CAAC,IAAI,CAAC,gDAAgD,CAAC,CAAC;QACnE,CAAC;IACL,CAAC;CACJ"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/preferences/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,YAAY,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/preferences/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Processor, ProcessorId } from './Processor';
|
|
2
|
+
import { Signal } from '../lib/Signal';
|
|
3
|
+
export declare class GainProcessor extends Processor {
|
|
4
|
+
private _gain;
|
|
5
|
+
readonly gainChanged: Signal<number>;
|
|
6
|
+
constructor(id: ProcessorId, name?: string);
|
|
7
|
+
get gain(): number;
|
|
8
|
+
set gain(db: number);
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=GainProcessor.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GainProcessor.d.ts","sourceRoot":"","sources":["../../src/processing/GainProcessor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AACrD,OAAO,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAEvC,qBAAa,aAAc,SAAQ,SAAS;IACxC,OAAO,CAAC,KAAK,CAAa;IAE1B,SAAgB,WAAW,iBAAwB;gBAEvC,EAAE,EAAE,WAAW,EAAE,IAAI,GAAE,MAAgB;IAInD,IAAW,IAAI,IAAI,MAAM,CAExB;IAED,IAAW,IAAI,CAAC,EAAE,EAAE,MAAM,EAOzB;CACJ"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { Processor } from './Processor';
|
|
2
|
+
import { Signal } from '../lib/Signal';
|
|
3
|
+
export class GainProcessor extends Processor {
|
|
4
|
+
constructor(id, name = 'Fader') {
|
|
5
|
+
super(id, name);
|
|
6
|
+
this._gain = 0; // dB, default 0dB unity gain
|
|
7
|
+
this.gainChanged = new Signal();
|
|
8
|
+
}
|
|
9
|
+
get gain() {
|
|
10
|
+
return this._gain;
|
|
11
|
+
}
|
|
12
|
+
set gain(db) {
|
|
13
|
+
// Clamp or validate if needed
|
|
14
|
+
if (this._gain !== db) {
|
|
15
|
+
this._gain = db;
|
|
16
|
+
this.gainChanged.emit(db);
|
|
17
|
+
this.stateChanged.emit();
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
//# sourceMappingURL=GainProcessor.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GainProcessor.js","sourceRoot":"","sources":["../../src/processing/GainProcessor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAe,MAAM,aAAa,CAAC;AACrD,OAAO,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAEvC,MAAM,OAAO,aAAc,SAAQ,SAAS;IAKxC,YAAY,EAAe,EAAE,OAAe,OAAO;QAC/C,KAAK,CAAC,EAAE,EAAE,IAAI,CAAC,CAAC;QALZ,UAAK,GAAW,CAAC,CAAC,CAAC,6BAA6B;QAExC,gBAAW,GAAG,IAAI,MAAM,EAAU,CAAC;IAInD,CAAC;IAED,IAAW,IAAI;QACX,OAAO,IAAI,CAAC,KAAK,CAAC;IACtB,CAAC;IAED,IAAW,IAAI,CAAC,EAAU;QACtB,8BAA8B;QAC9B,IAAI,IAAI,CAAC,KAAK,KAAK,EAAE,EAAE,CAAC;YACpB,IAAI,CAAC,KAAK,GAAG,EAAE,CAAC;YAChB,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;YAC1B,IAAI,CAAC,YAAY,CAAC,IAAI,EAAE,CAAC;QAC7B,CAAC;IACL,CAAC;CACJ"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Signal } from '../lib/Signal';
|
|
2
|
+
export type IOId = string;
|
|
3
|
+
export declare class IO {
|
|
4
|
+
readonly id: IOId;
|
|
5
|
+
name: string;
|
|
6
|
+
private _connections;
|
|
7
|
+
readonly connected: Signal<string>;
|
|
8
|
+
readonly disconnected: Signal<string>;
|
|
9
|
+
constructor(id: IOId, name: string);
|
|
10
|
+
connect(targetId: IOId): void;
|
|
11
|
+
disconnect(targetId: IOId): void;
|
|
12
|
+
get connections(): ReadonlyArray<IOId>;
|
|
13
|
+
isConnectedTo(targetId: IOId): boolean;
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=IO.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IO.d.ts","sourceRoot":"","sources":["../../src/processing/IO.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAEvC,MAAM,MAAM,IAAI,GAAG,MAAM,CAAC;AAE1B,qBAAa,EAAE;IACX,SAAgB,EAAE,EAAE,IAAI,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;IAMpB,OAAO,CAAC,YAAY,CAAc;IAElC,SAAgB,SAAS,iBAAsB;IAC/C,SAAgB,YAAY,iBAAsB;gBAEtC,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM;IAK3B,OAAO,CAAC,QAAQ,EAAE,IAAI;IAOtB,UAAU,CAAC,QAAQ,EAAE,IAAI;IAQhC,IAAW,WAAW,IAAI,aAAa,CAAC,IAAI,CAAC,CAE5C;IAEM,aAAa,CAAC,QAAQ,EAAE,IAAI,GAAG,OAAO;CAGhD"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { Signal } from '../lib/Signal';
|
|
2
|
+
export class IO {
|
|
3
|
+
constructor(id, name) {
|
|
4
|
+
// Connected IOs (Output -> Input)
|
|
5
|
+
// If this is an Output, `connections` lists the Inputs it feeds.
|
|
6
|
+
// If this is an Input, `connections` implies source Outputs (though usually tracked by Output).
|
|
7
|
+
// For simplicity, we model: Output knows its destinations.
|
|
8
|
+
this._connections = [];
|
|
9
|
+
this.connected = new Signal();
|
|
10
|
+
this.disconnected = new Signal();
|
|
11
|
+
this.id = id;
|
|
12
|
+
this.name = name;
|
|
13
|
+
}
|
|
14
|
+
connect(targetId) {
|
|
15
|
+
if (!this._connections.includes(targetId)) {
|
|
16
|
+
this._connections.push(targetId);
|
|
17
|
+
this.connected.emit(targetId);
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
disconnect(targetId) {
|
|
21
|
+
const index = this._connections.indexOf(targetId);
|
|
22
|
+
if (index !== -1) {
|
|
23
|
+
this._connections.splice(index, 1);
|
|
24
|
+
this.disconnected.emit(targetId);
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
get connections() {
|
|
28
|
+
return this._connections;
|
|
29
|
+
}
|
|
30
|
+
isConnectedTo(targetId) {
|
|
31
|
+
return this._connections.includes(targetId);
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
//# sourceMappingURL=IO.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IO.js","sourceRoot":"","sources":["../../src/processing/IO.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAIvC,MAAM,OAAO,EAAE;IAaX,YAAY,EAAQ,EAAE,IAAY;QATlC,kCAAkC;QAClC,iEAAiE;QACjE,gGAAgG;QAChG,2DAA2D;QACnD,iBAAY,GAAW,EAAE,CAAC;QAElB,cAAS,GAAG,IAAI,MAAM,EAAQ,CAAC;QAC/B,iBAAY,GAAG,IAAI,MAAM,EAAQ,CAAC;QAG9C,IAAI,CAAC,EAAE,GAAG,EAAE,CAAC;QACb,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;IACrB,CAAC;IAEM,OAAO,CAAC,QAAc;QACzB,IAAI,CAAC,IAAI,CAAC,YAAY,CAAC,QAAQ,CAAC,QAAQ,CAAC,EAAE,CAAC;YACxC,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;YACjC,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;QAClC,CAAC;IACL,CAAC;IAEM,UAAU,CAAC,QAAc;QAC5B,MAAM,KAAK,GAAG,IAAI,CAAC,YAAY,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC;QAClD,IAAI,KAAK,KAAK,CAAC,CAAC,EAAE,CAAC;YACf,IAAI,CAAC,YAAY,CAAC,MAAM,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC;YACnC,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;QACrC,CAAC;IACL,CAAC;IAED,IAAW,WAAW;QAClB,OAAO,IAAI,CAAC,YAAY,CAAC;IAC7B,CAAC;IAEM,aAAa,CAAC,QAAc;QAC/B,OAAO,IAAI,CAAC,YAAY,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC;IAChD,CAAC;CACJ"}
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
import { Processor, ProcessorId } from './Processor';
|
|
2
|
+
import { Signal } from '../lib/Signal';
|
|
3
|
+
import { MeterData } from '../domain/MeterData';
|
|
4
|
+
import { MeterPoint } from '../domain/MeterType';
|
|
5
|
+
/**
|
|
6
|
+
* Metering DSP processor.
|
|
7
|
+
*
|
|
8
|
+
* Modelled after Ardour's PeakMeter (libs/ardour/meter.cc).
|
|
9
|
+
* Provides multi-channel peak, RMS, and peak-hold values along with
|
|
10
|
+
* K-metering and VU calculation helpers.
|
|
11
|
+
*
|
|
12
|
+
* The meter can be positioned at different points in the signal chain
|
|
13
|
+
* via the {@link MeterPoint} enum (input, pre-fader, post-fader, output).
|
|
14
|
+
*/
|
|
15
|
+
export declare class MeterProcessor extends Processor {
|
|
16
|
+
/** Per-channel instantaneous peak levels in dBFS. */
|
|
17
|
+
private peakValues;
|
|
18
|
+
/** Per-channel RMS levels in dBFS. */
|
|
19
|
+
private rmsValues;
|
|
20
|
+
/** Per-channel peak-hold values in dBFS (decays slowly). */
|
|
21
|
+
private peakHold;
|
|
22
|
+
/** Peak-hold decay rate in dB per frame callback. */
|
|
23
|
+
private decayRate;
|
|
24
|
+
/** Number of audio channels this meter tracks. */
|
|
25
|
+
private channelCount;
|
|
26
|
+
/** Where in the signal chain this meter is placed. */
|
|
27
|
+
private _meterPoint;
|
|
28
|
+
/** Emitted when meter data is updated. */
|
|
29
|
+
readonly meterUpdated: Signal<MeterData>;
|
|
30
|
+
/** Emitted when the meter point changes. */
|
|
31
|
+
readonly meterPointChanged: Signal<MeterPoint>;
|
|
32
|
+
/**
|
|
33
|
+
* @param id Unique processor identifier.
|
|
34
|
+
* @param meterPoint Initial placement in the signal chain.
|
|
35
|
+
* @param channels Number of audio channels (default 2 for stereo).
|
|
36
|
+
*/
|
|
37
|
+
constructor(id: ProcessorId, meterPoint?: MeterPoint, channels?: number);
|
|
38
|
+
/**
|
|
39
|
+
* Set the meter position in the signal chain.
|
|
40
|
+
* @param point The new meter point.
|
|
41
|
+
*/
|
|
42
|
+
setMeterPoint(point: MeterPoint): void;
|
|
43
|
+
/** Get the current meter point. */
|
|
44
|
+
getMeterPoint(): MeterPoint;
|
|
45
|
+
/**
|
|
46
|
+
* Calculate a K-meter value from raw samples.
|
|
47
|
+
*
|
|
48
|
+
* K-metering (Bob Katz) applies a reference offset so that the meter's
|
|
49
|
+
* 0 dB mark corresponds to the chosen reference level (e.g. -14 dBFS
|
|
50
|
+
* for K-14, -20 dBFS for K-20).
|
|
51
|
+
*
|
|
52
|
+
* @param samples Raw audio samples for a single channel.
|
|
53
|
+
* @param reference Reference level in dBFS (e.g. -14 for K-14, -20 for K-20).
|
|
54
|
+
* @returns The K-meter value in dB (relative to the reference).
|
|
55
|
+
*/
|
|
56
|
+
calculateKMeter(samples: Float32Array, reference: number): number;
|
|
57
|
+
/**
|
|
58
|
+
* Calculate a VU meter value from raw samples.
|
|
59
|
+
*
|
|
60
|
+
* A traditional VU meter has a 300 ms integration time (ballistic).
|
|
61
|
+
* This method computes the RMS over the provided sample block, which
|
|
62
|
+
* should ideally represent ~300 ms of audio for authentic behaviour.
|
|
63
|
+
*
|
|
64
|
+
* @param samples Raw audio samples for a single channel.
|
|
65
|
+
* @returns VU level in dB (0 VU ~ -14 dBFS by convention, but we return
|
|
66
|
+
* raw dBFS here -- the UI layer can apply the VU offset).
|
|
67
|
+
*/
|
|
68
|
+
calculateVUMeter(samples: Float32Array): number;
|
|
69
|
+
/**
|
|
70
|
+
* Feed new sample data into the meter.
|
|
71
|
+
*
|
|
72
|
+
* Intended to be called by the audio backend once per process cycle.
|
|
73
|
+
* Updates peak, RMS, and peak-hold values for each channel.
|
|
74
|
+
*
|
|
75
|
+
* @param channelData Array of Float32Array, one per channel.
|
|
76
|
+
*/
|
|
77
|
+
process(channelData: Float32Array[]): void;
|
|
78
|
+
/**
|
|
79
|
+
* Get the current aggregated meter data (stereo or mono).
|
|
80
|
+
*
|
|
81
|
+
* Returns the maximum peak/RMS across all channels, matching the
|
|
82
|
+
* existing {@link MeterData} interface used throughout the application.
|
|
83
|
+
*/
|
|
84
|
+
getMeterData(): MeterData;
|
|
85
|
+
/**
|
|
86
|
+
* Get per-channel meter data.
|
|
87
|
+
*
|
|
88
|
+
* @returns An array of MeterData, one per channel.
|
|
89
|
+
*/
|
|
90
|
+
getChannelMeterData(): MeterData[];
|
|
91
|
+
/**
|
|
92
|
+
* Reset all peak-hold values to -Infinity.
|
|
93
|
+
*/
|
|
94
|
+
resetPeakHold(): void;
|
|
95
|
+
/**
|
|
96
|
+
* Set the peak-hold decay rate.
|
|
97
|
+
* @param rate Decay rate in dB per frame callback.
|
|
98
|
+
*/
|
|
99
|
+
setDecayRate(rate: number): void;
|
|
100
|
+
}
|
|
101
|
+
//# sourceMappingURL=MeterProcessor.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MeterProcessor.d.ts","sourceRoot":"","sources":["../../src/processing/MeterProcessor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AACrD,OAAO,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AACvC,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAChD,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAEjD;;;;;;;;;GASG;AACH,qBAAa,cAAe,SAAQ,SAAS;IACzC,qDAAqD;IACrD,OAAO,CAAC,UAAU,CAAW;IAC7B,sCAAsC;IACtC,OAAO,CAAC,SAAS,CAAW;IAC5B,4DAA4D;IAC5D,OAAO,CAAC,QAAQ,CAAW;IAC3B,qDAAqD;IACrD,OAAO,CAAC,SAAS,CAAe;IAChC,kDAAkD;IAClD,OAAO,CAAC,YAAY,CAAS;IAE7B,sDAAsD;IACtD,OAAO,CAAC,WAAW,CAAa;IAEhC,0CAA0C;IAC1C,SAAgB,YAAY,oBAA2B;IACvD,4CAA4C;IAC5C,SAAgB,iBAAiB,qBAA4B;IAE7D;;;;OAIG;gBAEC,EAAE,EAAE,WAAW,EACf,UAAU,GAAE,UAAkC,EAC9C,QAAQ,GAAE,MAAU;IAYxB;;;OAGG;IACI,aAAa,CAAC,KAAK,EAAE,UAAU,GAAG,IAAI;IAQ7C,mCAAmC;IAC5B,aAAa,IAAI,UAAU;IAMlC;;;;;;;;;;OAUG;IACI,eAAe,CAAC,OAAO,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,GAAG,MAAM;IAgBxE;;;;;;;;;;OAUG;IACI,gBAAgB,CAAC,OAAO,EAAE,YAAY,GAAG,MAAM;IAgBtD;;;;;;;OAOG;IACI,OAAO,CAAC,WAAW,EAAE,YAAY,EAAE,GAAG,IAAI;IAsCjD;;;;;OAKG;IACI,YAAY,IAAI,SAAS;IAmBhC;;;;OAIG;IACI,mBAAmB,IAAI,SAAS,EAAE;IAazC;;OAEG;IACI,aAAa,IAAI,IAAI;IAI5B;;;OAGG;IACI,YAAY,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI;CAG1C"}
|
|
@@ -0,0 +1,195 @@
|
|
|
1
|
+
import { Processor } from './Processor';
|
|
2
|
+
import { Signal } from '../lib/Signal';
|
|
3
|
+
import { MeterPoint } from '../domain/MeterType';
|
|
4
|
+
/**
|
|
5
|
+
* Metering DSP processor.
|
|
6
|
+
*
|
|
7
|
+
* Modelled after Ardour's PeakMeter (libs/ardour/meter.cc).
|
|
8
|
+
* Provides multi-channel peak, RMS, and peak-hold values along with
|
|
9
|
+
* K-metering and VU calculation helpers.
|
|
10
|
+
*
|
|
11
|
+
* The meter can be positioned at different points in the signal chain
|
|
12
|
+
* via the {@link MeterPoint} enum (input, pre-fader, post-fader, output).
|
|
13
|
+
*/
|
|
14
|
+
export class MeterProcessor extends Processor {
|
|
15
|
+
/**
|
|
16
|
+
* @param id Unique processor identifier.
|
|
17
|
+
* @param meterPoint Initial placement in the signal chain.
|
|
18
|
+
* @param channels Number of audio channels (default 2 for stereo).
|
|
19
|
+
*/
|
|
20
|
+
constructor(id, meterPoint = MeterPoint.POST_FADER, channels = 2) {
|
|
21
|
+
super(id, 'Meter');
|
|
22
|
+
/** Peak-hold decay rate in dB per frame callback. */
|
|
23
|
+
this.decayRate = 0.3;
|
|
24
|
+
/** Emitted when meter data is updated. */
|
|
25
|
+
this.meterUpdated = new Signal();
|
|
26
|
+
/** Emitted when the meter point changes. */
|
|
27
|
+
this.meterPointChanged = new Signal();
|
|
28
|
+
this._meterPoint = meterPoint;
|
|
29
|
+
this.channelCount = channels;
|
|
30
|
+
this.peakValues = new Array(channels).fill(-Infinity);
|
|
31
|
+
this.rmsValues = new Array(channels).fill(-Infinity);
|
|
32
|
+
this.peakHold = new Array(channels).fill(-Infinity);
|
|
33
|
+
}
|
|
34
|
+
// ── Meter Point ──────────────────────────────────────────────────────────
|
|
35
|
+
/**
|
|
36
|
+
* Set the meter position in the signal chain.
|
|
37
|
+
* @param point The new meter point.
|
|
38
|
+
*/
|
|
39
|
+
setMeterPoint(point) {
|
|
40
|
+
if (this._meterPoint !== point) {
|
|
41
|
+
this._meterPoint = point;
|
|
42
|
+
this.meterPointChanged.emit(point);
|
|
43
|
+
this.stateChanged.emit();
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
/** Get the current meter point. */
|
|
47
|
+
getMeterPoint() {
|
|
48
|
+
return this._meterPoint;
|
|
49
|
+
}
|
|
50
|
+
// ── DSP Helpers ──────────────────────────────────────────────────────────
|
|
51
|
+
/**
|
|
52
|
+
* Calculate a K-meter value from raw samples.
|
|
53
|
+
*
|
|
54
|
+
* K-metering (Bob Katz) applies a reference offset so that the meter's
|
|
55
|
+
* 0 dB mark corresponds to the chosen reference level (e.g. -14 dBFS
|
|
56
|
+
* for K-14, -20 dBFS for K-20).
|
|
57
|
+
*
|
|
58
|
+
* @param samples Raw audio samples for a single channel.
|
|
59
|
+
* @param reference Reference level in dBFS (e.g. -14 for K-14, -20 for K-20).
|
|
60
|
+
* @returns The K-meter value in dB (relative to the reference).
|
|
61
|
+
*/
|
|
62
|
+
calculateKMeter(samples, reference) {
|
|
63
|
+
if (samples.length === 0)
|
|
64
|
+
return -Infinity;
|
|
65
|
+
let sumOfSquares = 0;
|
|
66
|
+
for (let i = 0; i < samples.length; i++) {
|
|
67
|
+
sumOfSquares += samples[i] * samples[i];
|
|
68
|
+
}
|
|
69
|
+
const rmsLinear = Math.sqrt(sumOfSquares / samples.length);
|
|
70
|
+
if (rmsLinear === 0)
|
|
71
|
+
return -Infinity;
|
|
72
|
+
const rmsDb = 20 * Math.log10(rmsLinear);
|
|
73
|
+
// K-meter: shift so that `reference` dBFS reads as 0 on the scale
|
|
74
|
+
return rmsDb - reference;
|
|
75
|
+
}
|
|
76
|
+
/**
|
|
77
|
+
* Calculate a VU meter value from raw samples.
|
|
78
|
+
*
|
|
79
|
+
* A traditional VU meter has a 300 ms integration time (ballistic).
|
|
80
|
+
* This method computes the RMS over the provided sample block, which
|
|
81
|
+
* should ideally represent ~300 ms of audio for authentic behaviour.
|
|
82
|
+
*
|
|
83
|
+
* @param samples Raw audio samples for a single channel.
|
|
84
|
+
* @returns VU level in dB (0 VU ~ -14 dBFS by convention, but we return
|
|
85
|
+
* raw dBFS here -- the UI layer can apply the VU offset).
|
|
86
|
+
*/
|
|
87
|
+
calculateVUMeter(samples) {
|
|
88
|
+
if (samples.length === 0)
|
|
89
|
+
return -Infinity;
|
|
90
|
+
let sumOfSquares = 0;
|
|
91
|
+
for (let i = 0; i < samples.length; i++) {
|
|
92
|
+
sumOfSquares += samples[i] * samples[i];
|
|
93
|
+
}
|
|
94
|
+
const rmsLinear = Math.sqrt(sumOfSquares / samples.length);
|
|
95
|
+
if (rmsLinear === 0)
|
|
96
|
+
return -Infinity;
|
|
97
|
+
return 20 * Math.log10(rmsLinear);
|
|
98
|
+
}
|
|
99
|
+
// ── State Update ─────────────────────────────────────────────────────────
|
|
100
|
+
/**
|
|
101
|
+
* Feed new sample data into the meter.
|
|
102
|
+
*
|
|
103
|
+
* Intended to be called by the audio backend once per process cycle.
|
|
104
|
+
* Updates peak, RMS, and peak-hold values for each channel.
|
|
105
|
+
*
|
|
106
|
+
* @param channelData Array of Float32Array, one per channel.
|
|
107
|
+
*/
|
|
108
|
+
process(channelData) {
|
|
109
|
+
for (let ch = 0; ch < Math.min(channelData.length, this.channelCount); ch++) {
|
|
110
|
+
const samples = channelData[ch];
|
|
111
|
+
// Peak
|
|
112
|
+
let peak = 0;
|
|
113
|
+
for (let i = 0; i < samples.length; i++) {
|
|
114
|
+
const abs = Math.abs(samples[i]);
|
|
115
|
+
if (abs > peak)
|
|
116
|
+
peak = abs;
|
|
117
|
+
}
|
|
118
|
+
const peakDb = peak > 0 ? 20 * Math.log10(peak) : -Infinity;
|
|
119
|
+
this.peakValues[ch] = peakDb;
|
|
120
|
+
// RMS
|
|
121
|
+
let sumOfSquares = 0;
|
|
122
|
+
for (let i = 0; i < samples.length; i++) {
|
|
123
|
+
sumOfSquares += samples[i] * samples[i];
|
|
124
|
+
}
|
|
125
|
+
const rmsLinear = Math.sqrt(sumOfSquares / samples.length);
|
|
126
|
+
const rmsDb = rmsLinear > 0 ? 20 * Math.log10(rmsLinear) : -Infinity;
|
|
127
|
+
this.rmsValues[ch] = rmsDb;
|
|
128
|
+
// Peak hold with decay
|
|
129
|
+
if (peakDb > this.peakHold[ch]) {
|
|
130
|
+
this.peakHold[ch] = peakDb;
|
|
131
|
+
}
|
|
132
|
+
else {
|
|
133
|
+
this.peakHold[ch] = Math.max(this.peakHold[ch] - this.decayRate, -Infinity);
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
this.meterUpdated.emit(this.getMeterData());
|
|
137
|
+
}
|
|
138
|
+
// ── Output ───────────────────────────────────────────────────────────────
|
|
139
|
+
/**
|
|
140
|
+
* Get the current aggregated meter data (stereo or mono).
|
|
141
|
+
*
|
|
142
|
+
* Returns the maximum peak/RMS across all channels, matching the
|
|
143
|
+
* existing {@link MeterData} interface used throughout the application.
|
|
144
|
+
*/
|
|
145
|
+
getMeterData() {
|
|
146
|
+
let maxPeak = -Infinity;
|
|
147
|
+
let maxRms = -Infinity;
|
|
148
|
+
let maxPeakHold = -Infinity;
|
|
149
|
+
for (let ch = 0; ch < this.channelCount; ch++) {
|
|
150
|
+
if (this.peakValues[ch] > maxPeak)
|
|
151
|
+
maxPeak = this.peakValues[ch];
|
|
152
|
+
if (this.rmsValues[ch] > maxRms)
|
|
153
|
+
maxRms = this.rmsValues[ch];
|
|
154
|
+
if (this.peakHold[ch] > maxPeakHold)
|
|
155
|
+
maxPeakHold = this.peakHold[ch];
|
|
156
|
+
}
|
|
157
|
+
return {
|
|
158
|
+
peak: maxPeak,
|
|
159
|
+
rms: maxRms,
|
|
160
|
+
peakHold: maxPeakHold,
|
|
161
|
+
clipping: maxPeak >= 0,
|
|
162
|
+
};
|
|
163
|
+
}
|
|
164
|
+
/**
|
|
165
|
+
* Get per-channel meter data.
|
|
166
|
+
*
|
|
167
|
+
* @returns An array of MeterData, one per channel.
|
|
168
|
+
*/
|
|
169
|
+
getChannelMeterData() {
|
|
170
|
+
const result = [];
|
|
171
|
+
for (let ch = 0; ch < this.channelCount; ch++) {
|
|
172
|
+
result.push({
|
|
173
|
+
peak: this.peakValues[ch],
|
|
174
|
+
rms: this.rmsValues[ch],
|
|
175
|
+
peakHold: this.peakHold[ch],
|
|
176
|
+
clipping: this.peakValues[ch] >= 0,
|
|
177
|
+
});
|
|
178
|
+
}
|
|
179
|
+
return result;
|
|
180
|
+
}
|
|
181
|
+
/**
|
|
182
|
+
* Reset all peak-hold values to -Infinity.
|
|
183
|
+
*/
|
|
184
|
+
resetPeakHold() {
|
|
185
|
+
this.peakHold.fill(-Infinity);
|
|
186
|
+
}
|
|
187
|
+
/**
|
|
188
|
+
* Set the peak-hold decay rate.
|
|
189
|
+
* @param rate Decay rate in dB per frame callback.
|
|
190
|
+
*/
|
|
191
|
+
setDecayRate(rate) {
|
|
192
|
+
this.decayRate = Math.max(0, rate);
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
//# sourceMappingURL=MeterProcessor.js.map
|