@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 @@
|
|
|
1
|
+
{"version":3,"file":"MeterProcessor.js","sourceRoot":"","sources":["../../src/processing/MeterProcessor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAe,MAAM,aAAa,CAAC;AACrD,OAAO,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAEvC,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAEjD;;;;;;;;;GASG;AACH,MAAM,OAAO,cAAe,SAAQ,SAAS;IAoBzC;;;;OAIG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tB,MAAM,MAAM,GAAgB,EAAE,CAAC;QAC/B,KAAK,IAAI,EAAE,GAAG,CAAC,EAAE,EAAE,GAAG,IAAI,CAAC,YAAY,EAAE,EAAE,EAAE,EAAE,CAAC;YAC5C,MAAM,CAAC,IAAI,CAAC;gBACR,IAAI,EAAE,IAAI,CAAC,UAAU,CAAC,EAAE,CAAC;gBACzB,GAAG,EAAE,IAAI,CAAC,SAAS,CAAC,EAAE,CAAC;gBACvB,QAAQ,EAAE,IAAI,CAAC,QAAQ,CAAC,EAAE,CAAC;gBAC3B,QAAQ,EAAE,IAAI,CAAC,UAAU,CAAC,EAAE,CAAC,IAAI,CAAC;aACrC,CAAC,CAAC;QACP,CAAC;QACD,OAAO,MAAM,CAAC;IAClB,CAAC;IAED;;OAEG;IACI,aAAa;QAChB,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC;IAClC,CAAC;IAED;;;OAGG;IACI,YAAY,CAAC,IAAY;QAC5B,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC;IACvC,CAAC;CACJ"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Processor, ProcessorId } from './Processor';
|
|
2
|
+
import { Signal } from '../lib/Signal';
|
|
3
|
+
export declare class PanProcessor extends Processor {
|
|
4
|
+
private _pan;
|
|
5
|
+
private _width;
|
|
6
|
+
readonly panChanged: Signal<number>;
|
|
7
|
+
readonly widthChanged: Signal<number>;
|
|
8
|
+
constructor(id: ProcessorId);
|
|
9
|
+
get pan(): number;
|
|
10
|
+
set pan(value: number);
|
|
11
|
+
/** Stereo width: 0 = mono, 1 = normal, 2 = wide */
|
|
12
|
+
get width(): number;
|
|
13
|
+
set width(value: number);
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=PanProcessor.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PanProcessor.d.ts","sourceRoot":"","sources":["../../src/processing/PanProcessor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AACrD,OAAO,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAEvC,qBAAa,YAAa,SAAQ,SAAS;IACvC,OAAO,CAAC,IAAI,CAAa;IACzB,OAAO,CAAC,MAAM,CAAa;IAE3B,SAAgB,UAAU,iBAAwB;IAClD,SAAgB,YAAY,iBAAwB;gBAExC,EAAE,EAAE,WAAW;IAI3B,IAAW,GAAG,IAAI,MAAM,CAEvB;IAED,IAAW,GAAG,CAAC,KAAK,EAAE,MAAM,EAO3B;IAED,mDAAmD;IACnD,IAAW,KAAK,IAAI,MAAM,CAEzB;IAED,IAAW,KAAK,CAAC,KAAK,EAAE,MAAM,EAO7B;CACJ"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { Processor } from './Processor';
|
|
2
|
+
import { Signal } from '../lib/Signal';
|
|
3
|
+
export class PanProcessor extends Processor {
|
|
4
|
+
constructor(id) {
|
|
5
|
+
super(id, 'Panner');
|
|
6
|
+
this._pan = 0; // -1 (Left) to 1 (Right)
|
|
7
|
+
this._width = 1; // 0 (mono) to 2 (wide stereo), 1 = normal
|
|
8
|
+
this.panChanged = new Signal();
|
|
9
|
+
this.widthChanged = new Signal();
|
|
10
|
+
}
|
|
11
|
+
get pan() {
|
|
12
|
+
return this._pan;
|
|
13
|
+
}
|
|
14
|
+
set pan(value) {
|
|
15
|
+
const clamped = Math.max(-1, Math.min(1, value));
|
|
16
|
+
if (this._pan !== clamped) {
|
|
17
|
+
this._pan = clamped;
|
|
18
|
+
this.panChanged.emit(clamped);
|
|
19
|
+
this.stateChanged.emit();
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
/** Stereo width: 0 = mono, 1 = normal, 2 = wide */
|
|
23
|
+
get width() {
|
|
24
|
+
return this._width;
|
|
25
|
+
}
|
|
26
|
+
set width(value) {
|
|
27
|
+
const clamped = Math.max(0, Math.min(2, value));
|
|
28
|
+
if (this._width !== clamped) {
|
|
29
|
+
this._width = clamped;
|
|
30
|
+
this.widthChanged.emit(clamped);
|
|
31
|
+
this.stateChanged.emit();
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
//# sourceMappingURL=PanProcessor.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PanProcessor.js","sourceRoot":"","sources":["../../src/processing/PanProcessor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAe,MAAM,aAAa,CAAC;AACrD,OAAO,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAEvC,MAAM,OAAO,YAAa,SAAQ,SAAS;IAOvC,YAAY,EAAe;QACvB,KAAK,CAAC,EAAE,EAAE,QAAQ,CAAC,CAAC;QAPhB,SAAI,GAAW,CAAC,CAAC,CAAC,yBAAyB;QAC3C,WAAM,GAAW,CAAC,CAAC,CAAC,0CAA0C;QAEtD,eAAU,GAAG,IAAI,MAAM,EAAU,CAAC;QAClC,iBAAY,GAAG,IAAI,MAAM,EAAU,CAAC;IAIpD,CAAC;IAED,IAAW,GAAG;QACV,OAAO,IAAI,CAAC,IAAI,CAAC;IACrB,CAAC;IAED,IAAW,GAAG,CAAC,KAAa;QACxB,MAAM,OAAO,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,KAAK,CAAC,CAAC,CAAC;QACjD,IAAI,IAAI,CAAC,IAAI,KAAK,OAAO,EAAE,CAAC;YACxB,IAAI,CAAC,IAAI,GAAG,OAAO,CAAC;YACpB,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;YAC9B,IAAI,CAAC,YAAY,CAAC,IAAI,EAAE,CAAC;QAC7B,CAAC;IACL,CAAC;IAED,mDAAmD;IACnD,IAAW,KAAK;QACZ,OAAO,IAAI,CAAC,MAAM,CAAC;IACvB,CAAC;IAED,IAAW,KAAK,CAAC,KAAa;QAC1B,MAAM,OAAO,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,KAAK,CAAC,CAAC,CAAC;QAChD,IAAI,IAAI,CAAC,MAAM,KAAK,OAAO,EAAE,CAAC;YAC1B,IAAI,CAAC,MAAM,GAAG,OAAO,CAAC;YACtB,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;YAChC,IAAI,CAAC,YAAY,CAAC,IAAI,EAAE,CAAC;QAC7B,CAAC;IACL,CAAC;CACJ"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Processor, ProcessorId } from './Processor';
|
|
2
|
+
import { Plugin } from '../plugins/Plugin';
|
|
3
|
+
export declare class PluginInsert extends Processor {
|
|
4
|
+
private _plugin;
|
|
5
|
+
constructor(id: ProcessorId, plugin: Plugin);
|
|
6
|
+
get plugin(): Plugin;
|
|
7
|
+
set active(value: boolean);
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=PluginInsert.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PluginInsert.d.ts","sourceRoot":"","sources":["../../src/processing/PluginInsert.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AACrD,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAE3C,qBAAa,YAAa,SAAQ,SAAS;IACvC,OAAO,CAAC,OAAO,CAAS;gBAEZ,EAAE,EAAE,WAAW,EAAE,MAAM,EAAE,MAAM;IAK3C,IAAW,MAAM,IAAI,MAAM,CAE1B;IAGD,IAAW,MAAM,CAAC,KAAK,EAAE,OAAO,EAG/B;CACJ"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Processor } from './Processor';
|
|
2
|
+
export class PluginInsert extends Processor {
|
|
3
|
+
constructor(id, plugin) {
|
|
4
|
+
super(id, `Insert: ${plugin.name}`);
|
|
5
|
+
this._plugin = plugin;
|
|
6
|
+
}
|
|
7
|
+
get plugin() {
|
|
8
|
+
return this._plugin;
|
|
9
|
+
}
|
|
10
|
+
// Proxy active state to plugin bypass if supported
|
|
11
|
+
set active(value) {
|
|
12
|
+
super.active = value;
|
|
13
|
+
// Logic to bypass plugin in backend
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=PluginInsert.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PluginInsert.js","sourceRoot":"","sources":["../../src/processing/PluginInsert.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAe,MAAM,aAAa,CAAC;AAGrD,MAAM,OAAO,YAAa,SAAQ,SAAS;IAGvC,YAAY,EAAe,EAAE,MAAc;QACvC,KAAK,CAAC,EAAE,EAAE,WAAW,MAAM,CAAC,IAAI,EAAE,CAAC,CAAC;QACpC,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC;IAC1B,CAAC;IAED,IAAW,MAAM;QACb,OAAO,IAAI,CAAC,OAAO,CAAC;IACxB,CAAC;IAED,mDAAmD;IACnD,IAAW,MAAM,CAAC,KAAc;QAC5B,KAAK,CAAC,MAAM,GAAG,KAAK,CAAC;QACrB,oCAAoC;IACxC,CAAC;CACJ"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { Processor, ProcessorId } from './Processor';
|
|
2
|
+
import { Signal } from '../lib/Signal';
|
|
3
|
+
/**
|
|
4
|
+
* Phase inversion (polarity) processor.
|
|
5
|
+
*
|
|
6
|
+
* When inverted, all samples are multiplied by -1. This is the standard
|
|
7
|
+
* "phase flip" found on every DAW channel strip (Ardour: libs/ardour/polarity.cc).
|
|
8
|
+
*
|
|
9
|
+
* Placed in the signal chain after the main fader and before post-fader plugins:
|
|
10
|
+
* Input -> Trim -> [Pre-fader] -> Fader -> Polarity -> [Post-fader] -> Panner -> Output
|
|
11
|
+
*/
|
|
12
|
+
export declare class PolarityProcessor extends Processor {
|
|
13
|
+
private _inverted;
|
|
14
|
+
/** Emitted whenever the polarity state changes. */
|
|
15
|
+
readonly polarityChanged: Signal<boolean>;
|
|
16
|
+
constructor(id: ProcessorId, name?: string);
|
|
17
|
+
/** Whether the signal is phase-inverted. */
|
|
18
|
+
get inverted(): boolean;
|
|
19
|
+
/**
|
|
20
|
+
* Set the polarity inversion state.
|
|
21
|
+
* @param inverted `true` to invert (multiply samples by -1), `false` for normal.
|
|
22
|
+
*/
|
|
23
|
+
setInverted(inverted: boolean): void;
|
|
24
|
+
}
|
|
25
|
+
//# sourceMappingURL=PolarityProcessor.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PolarityProcessor.d.ts","sourceRoot":"","sources":["../../src/processing/PolarityProcessor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AACrD,OAAO,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAEvC;;;;;;;;GAQG;AACH,qBAAa,iBAAkB,SAAQ,SAAS;IAC5C,OAAO,CAAC,SAAS,CAAkB;IAEnC,mDAAmD;IACnD,SAAgB,eAAe,kBAAyB;gBAE5C,EAAE,EAAE,WAAW,EAAE,IAAI,GAAE,MAAmB;IAItD,4CAA4C;IAC5C,IAAW,QAAQ,IAAI,OAAO,CAE7B;IAED;;;OAGG;IACI,WAAW,CAAC,QAAQ,EAAE,OAAO,GAAG,IAAI;CAO9C"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { Processor } from './Processor';
|
|
2
|
+
import { Signal } from '../lib/Signal';
|
|
3
|
+
/**
|
|
4
|
+
* Phase inversion (polarity) processor.
|
|
5
|
+
*
|
|
6
|
+
* When inverted, all samples are multiplied by -1. This is the standard
|
|
7
|
+
* "phase flip" found on every DAW channel strip (Ardour: libs/ardour/polarity.cc).
|
|
8
|
+
*
|
|
9
|
+
* Placed in the signal chain after the main fader and before post-fader plugins:
|
|
10
|
+
* Input -> Trim -> [Pre-fader] -> Fader -> Polarity -> [Post-fader] -> Panner -> Output
|
|
11
|
+
*/
|
|
12
|
+
export class PolarityProcessor extends Processor {
|
|
13
|
+
constructor(id, name = 'Polarity') {
|
|
14
|
+
super(id, name);
|
|
15
|
+
this._inverted = false;
|
|
16
|
+
/** Emitted whenever the polarity state changes. */
|
|
17
|
+
this.polarityChanged = new Signal();
|
|
18
|
+
}
|
|
19
|
+
/** Whether the signal is phase-inverted. */
|
|
20
|
+
get inverted() {
|
|
21
|
+
return this._inverted;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Set the polarity inversion state.
|
|
25
|
+
* @param inverted `true` to invert (multiply samples by -1), `false` for normal.
|
|
26
|
+
*/
|
|
27
|
+
setInverted(inverted) {
|
|
28
|
+
if (this._inverted !== inverted) {
|
|
29
|
+
this._inverted = inverted;
|
|
30
|
+
this.polarityChanged.emit(inverted);
|
|
31
|
+
this.stateChanged.emit();
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
//# sourceMappingURL=PolarityProcessor.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PolarityProcessor.js","sourceRoot":"","sources":["../../src/processing/PolarityProcessor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAe,MAAM,aAAa,CAAC;AACrD,OAAO,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAEvC;;;;;;;;GAQG;AACH,MAAM,OAAO,iBAAkB,SAAQ,SAAS;IAM5C,YAAY,EAAe,EAAE,OAAe,UAAU;QAClD,KAAK,CAAC,EAAE,EAAE,IAAI,CAAC,CAAC;QANZ,cAAS,GAAY,KAAK,CAAC;QAEnC,mDAAmD;QACnC,oBAAe,GAAG,IAAI,MAAM,EAAW,CAAC;IAIxD,CAAC;IAED,4CAA4C;IAC5C,IAAW,QAAQ;QACf,OAAO,IAAI,CAAC,SAAS,CAAC;IAC1B,CAAC;IAED;;;OAGG;IACI,WAAW,CAAC,QAAiB;QAChC,IAAI,IAAI,CAAC,SAAS,KAAK,QAAQ,EAAE,CAAC;YAC9B,IAAI,CAAC,SAAS,GAAG,QAAQ,CAAC;YAC1B,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;YACpC,IAAI,CAAC,YAAY,CAAC,IAAI,EAAE,CAAC;QAC7B,CAAC;IACL,CAAC;CACJ"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { Signal } from '../lib/Signal';
|
|
2
|
+
import { AutomationList } from '../automation/AutomationList';
|
|
3
|
+
export type ProcessorId = string;
|
|
4
|
+
export declare abstract class Processor {
|
|
5
|
+
readonly id: ProcessorId;
|
|
6
|
+
name: string;
|
|
7
|
+
automations: Map<string, AutomationList>;
|
|
8
|
+
protected _active: boolean;
|
|
9
|
+
readonly activeChanged: Signal<boolean>;
|
|
10
|
+
readonly stateChanged: Signal<void>;
|
|
11
|
+
readonly automationAdded: Signal<{
|
|
12
|
+
paramName: string;
|
|
13
|
+
list: AutomationList;
|
|
14
|
+
}>;
|
|
15
|
+
constructor(id: ProcessorId, name: string);
|
|
16
|
+
getAutomation(paramName: string): AutomationList;
|
|
17
|
+
get active(): boolean;
|
|
18
|
+
set active(value: boolean);
|
|
19
|
+
/**
|
|
20
|
+
* Returns the processing latency introduced by this processor, in samples.
|
|
21
|
+
*
|
|
22
|
+
* Subclasses that introduce latency (e.g. look-ahead limiters, linear-phase
|
|
23
|
+
* EQs) should override this method. The route uses the aggregate latency
|
|
24
|
+
* of all its processors to compute automatic delay compensation
|
|
25
|
+
* (see {@link Route.getProcessorLatency}).
|
|
26
|
+
*
|
|
27
|
+
* @returns Latency in samples (default 0).
|
|
28
|
+
*/
|
|
29
|
+
getLatency(): number;
|
|
30
|
+
}
|
|
31
|
+
//# sourceMappingURL=Processor.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Processor.d.ts","sourceRoot":"","sources":["../../src/processing/Processor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AACvC,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAE9D,MAAM,MAAM,WAAW,GAAG,MAAM,CAAC;AAEjC,8BAAsB,SAAS;IAC3B,SAAgB,EAAE,EAAE,WAAW,CAAC;IACzB,IAAI,EAAE,MAAM,CAAC;IAGb,WAAW,EAAE,GAAG,CAAC,MAAM,EAAE,cAAc,CAAC,CAAa;IAE5D,SAAS,CAAC,OAAO,EAAE,OAAO,CAAQ;IAClC,SAAgB,aAAa,kBAAyB;IACtD,SAAgB,YAAY,eAAsB;IAClD,SAAgB,eAAe;mBAA2B,MAAM;cAAQ,cAAc;OAAM;gBAEhF,EAAE,EAAE,WAAW,EAAE,IAAI,EAAE,MAAM;IAKlC,aAAa,CAAC,SAAS,EAAE,MAAM,GAAG,cAAc;IASvD,IAAW,MAAM,IAAI,OAAO,CAE3B;IAED,IAAW,MAAM,CAAC,KAAK,EAAE,OAAO,EAK/B;IAED;;;;;;;;;OASG;IACI,UAAU,IAAI,MAAM;CAG9B"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { Signal } from '../lib/Signal';
|
|
2
|
+
import { AutomationList } from '../automation/AutomationList';
|
|
3
|
+
export class Processor {
|
|
4
|
+
constructor(id, name) {
|
|
5
|
+
// Parameter name -> AutomationList
|
|
6
|
+
this.automations = new Map();
|
|
7
|
+
this._active = true;
|
|
8
|
+
this.activeChanged = new Signal();
|
|
9
|
+
this.stateChanged = new Signal();
|
|
10
|
+
this.automationAdded = new Signal();
|
|
11
|
+
this.id = id;
|
|
12
|
+
this.name = name;
|
|
13
|
+
}
|
|
14
|
+
getAutomation(paramName) {
|
|
15
|
+
if (!this.automations.has(paramName)) {
|
|
16
|
+
const list = new AutomationList();
|
|
17
|
+
this.automations.set(paramName, list);
|
|
18
|
+
this.automationAdded.emit({ paramName, list });
|
|
19
|
+
}
|
|
20
|
+
return this.automations.get(paramName);
|
|
21
|
+
}
|
|
22
|
+
get active() {
|
|
23
|
+
return this._active;
|
|
24
|
+
}
|
|
25
|
+
set active(value) {
|
|
26
|
+
if (this._active !== value) {
|
|
27
|
+
this._active = value;
|
|
28
|
+
this.activeChanged.emit(value);
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Returns the processing latency introduced by this processor, in samples.
|
|
33
|
+
*
|
|
34
|
+
* Subclasses that introduce latency (e.g. look-ahead limiters, linear-phase
|
|
35
|
+
* EQs) should override this method. The route uses the aggregate latency
|
|
36
|
+
* of all its processors to compute automatic delay compensation
|
|
37
|
+
* (see {@link Route.getProcessorLatency}).
|
|
38
|
+
*
|
|
39
|
+
* @returns Latency in samples (default 0).
|
|
40
|
+
*/
|
|
41
|
+
getLatency() {
|
|
42
|
+
return 0;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
//# sourceMappingURL=Processor.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Processor.js","sourceRoot":"","sources":["../../src/processing/Processor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AACvC,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAI9D,MAAM,OAAgB,SAAS;IAY3B,YAAY,EAAe,EAAE,IAAY;QARzC,mCAAmC;QAC5B,gBAAW,GAAgC,IAAI,GAAG,EAAE,CAAC;QAElD,YAAO,GAAY,IAAI,CAAC;QAClB,kBAAa,GAAG,IAAI,MAAM,EAAW,CAAC;QACtC,iBAAY,GAAG,IAAI,MAAM,EAAQ,CAAC;QAClC,oBAAe,GAAG,IAAI,MAAM,EAA+C,CAAC;QAGxF,IAAI,CAAC,EAAE,GAAG,EAAE,CAAC;QACb,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;IACrB,CAAC;IAEM,aAAa,CAAC,SAAiB;QAClC,IAAI,CAAC,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,SAAS,CAAC,EAAE,CAAC;YACnC,MAAM,IAAI,GAAG,IAAI,cAAc,EAAE,CAAC;YAClC,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,SAAS,EAAE,IAAI,CAAC,CAAC;YACtC,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,CAAC;QACnD,CAAC;QACD,OAAO,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,SAAS,CAAE,CAAC;IAC5C,CAAC;IAED,IAAW,MAAM;QACb,OAAO,IAAI,CAAC,OAAO,CAAC;IACxB,CAAC;IAED,IAAW,MAAM,CAAC,KAAc;QAC5B,IAAI,IAAI,CAAC,OAAO,KAAK,KAAK,EAAE,CAAC;YACzB,IAAI,CAAC,OAAO,GAAG,KAAK,CAAC;YACrB,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QACnC,CAAC;IACL,CAAC;IAED;;;;;;;;;OASG;IACI,UAAU;QACb,OAAO,CAAC,CAAC;IACb,CAAC;CACJ"}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { Processor, ProcessorId } from './Processor';
|
|
2
|
+
import { Signal } from '../lib/Signal';
|
|
3
|
+
import { MeterData } from '../domain/MeterData';
|
|
4
|
+
/**
|
|
5
|
+
* Send processor -- routes a copy of the signal to a destination track or bus.
|
|
6
|
+
*
|
|
7
|
+
* Modelled after Ardour's InternalSend / Send (libs/ardour/send.cc).
|
|
8
|
+
* A send can be placed either pre-fader or post-fader in the processor chain.
|
|
9
|
+
* It has its own independent level (in dB) and mute state.
|
|
10
|
+
*
|
|
11
|
+
* The actual DSP work (copying / mixing buffers) is performed by the audio
|
|
12
|
+
* backend; this processor holds the domain state and emits signals for the
|
|
13
|
+
* engine to react to.
|
|
14
|
+
*/
|
|
15
|
+
export declare class SendProcessor extends Processor {
|
|
16
|
+
private _level;
|
|
17
|
+
private _preFader;
|
|
18
|
+
private _pannable;
|
|
19
|
+
private _targetId;
|
|
20
|
+
private _muted;
|
|
21
|
+
/** Emitted when the send level changes. */
|
|
22
|
+
readonly levelChanged: Signal<number>;
|
|
23
|
+
/** Emitted when the pre/post-fader placement changes. */
|
|
24
|
+
readonly preFaderChanged: Signal<boolean>;
|
|
25
|
+
/** Emitted when the mute state changes. */
|
|
26
|
+
readonly muteChanged: Signal<boolean>;
|
|
27
|
+
/**
|
|
28
|
+
* @param id Unique processor identifier.
|
|
29
|
+
* @param targetId The ID of the destination track or bus.
|
|
30
|
+
* @param level Initial send level in dB (default 0 dB -- unity).
|
|
31
|
+
* @param preFader Whether this send taps the signal before the fader.
|
|
32
|
+
* @param pannable Whether the send has its own pan control.
|
|
33
|
+
*/
|
|
34
|
+
constructor(id: ProcessorId, targetId: string, level?: number, preFader?: boolean, pannable?: boolean);
|
|
35
|
+
/** Send level in dB. */
|
|
36
|
+
get level(): number;
|
|
37
|
+
set level(value: number);
|
|
38
|
+
/** Whether this send taps the signal before the channel fader. */
|
|
39
|
+
get preFader(): boolean;
|
|
40
|
+
set preFader(value: boolean);
|
|
41
|
+
/** The destination track or bus ID. */
|
|
42
|
+
get targetId(): string;
|
|
43
|
+
/** Whether this send has its own panning control. */
|
|
44
|
+
get pannable(): boolean;
|
|
45
|
+
/** Whether this send is muted. */
|
|
46
|
+
get muted(): boolean;
|
|
47
|
+
set muted(value: boolean);
|
|
48
|
+
/**
|
|
49
|
+
* Returns the current meter data for this send.
|
|
50
|
+
* In a full implementation the audio backend would feed real values;
|
|
51
|
+
* here we return sensible defaults so consumers always get a valid object.
|
|
52
|
+
*/
|
|
53
|
+
getMeterData(): MeterData;
|
|
54
|
+
}
|
|
55
|
+
//# sourceMappingURL=SendProcessor.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SendProcessor.d.ts","sourceRoot":"","sources":["../../src/processing/SendProcessor.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;AAEhD;;;;;;;;;;GAUG;AACH,qBAAa,aAAc,SAAQ,SAAS;IACxC,OAAO,CAAC,MAAM,CAAS;IACvB,OAAO,CAAC,SAAS,CAAU;IAC3B,OAAO,CAAC,SAAS,CAAU;IAC3B,OAAO,CAAC,SAAS,CAAS;IAC1B,OAAO,CAAC,MAAM,CAAkB;IAEhC,2CAA2C;IAC3C,SAAgB,YAAY,iBAAwB;IACpD,yDAAyD;IACzD,SAAgB,eAAe,kBAAyB;IACxD,2CAA2C;IAC3C,SAAgB,WAAW,kBAAyB;IAEpD;;;;;;OAMG;gBAEC,EAAE,EAAE,WAAW,EACf,QAAQ,EAAE,MAAM,EAChB,KAAK,GAAE,MAAU,EACjB,QAAQ,GAAE,OAAe,EACzB,QAAQ,GAAE,OAAe;IAW7B,wBAAwB;IACxB,IAAW,KAAK,IAAI,MAAM,CAEzB;IAED,IAAW,KAAK,CAAC,KAAK,EAAE,MAAM,EAM7B;IAID,kEAAkE;IAClE,IAAW,QAAQ,IAAI,OAAO,CAE7B;IAED,IAAW,QAAQ,CAAC,KAAK,EAAE,OAAO,EAMjC;IAID,uCAAuC;IACvC,IAAW,QAAQ,IAAI,MAAM,CAE5B;IAID,qDAAqD;IACrD,IAAW,QAAQ,IAAI,OAAO,CAE7B;IAID,kCAAkC;IAClC,IAAW,KAAK,IAAI,OAAO,CAE1B;IAED,IAAW,KAAK,CAAC,KAAK,EAAE,OAAO,EAM9B;IAID;;;;OAIG;IACI,YAAY,IAAI,SAAS;CAQnC"}
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
import { Processor } from './Processor';
|
|
2
|
+
import { Signal } from '../lib/Signal';
|
|
3
|
+
/**
|
|
4
|
+
* Send processor -- routes a copy of the signal to a destination track or bus.
|
|
5
|
+
*
|
|
6
|
+
* Modelled after Ardour's InternalSend / Send (libs/ardour/send.cc).
|
|
7
|
+
* A send can be placed either pre-fader or post-fader in the processor chain.
|
|
8
|
+
* It has its own independent level (in dB) and mute state.
|
|
9
|
+
*
|
|
10
|
+
* The actual DSP work (copying / mixing buffers) is performed by the audio
|
|
11
|
+
* backend; this processor holds the domain state and emits signals for the
|
|
12
|
+
* engine to react to.
|
|
13
|
+
*/
|
|
14
|
+
export class SendProcessor extends Processor {
|
|
15
|
+
/**
|
|
16
|
+
* @param id Unique processor identifier.
|
|
17
|
+
* @param targetId The ID of the destination track or bus.
|
|
18
|
+
* @param level Initial send level in dB (default 0 dB -- unity).
|
|
19
|
+
* @param preFader Whether this send taps the signal before the fader.
|
|
20
|
+
* @param pannable Whether the send has its own pan control.
|
|
21
|
+
*/
|
|
22
|
+
constructor(id, targetId, level = 0, preFader = false, pannable = false) {
|
|
23
|
+
super(id, 'Send');
|
|
24
|
+
this._muted = false;
|
|
25
|
+
/** Emitted when the send level changes. */
|
|
26
|
+
this.levelChanged = new Signal();
|
|
27
|
+
/** Emitted when the pre/post-fader placement changes. */
|
|
28
|
+
this.preFaderChanged = new Signal();
|
|
29
|
+
/** Emitted when the mute state changes. */
|
|
30
|
+
this.muteChanged = new Signal();
|
|
31
|
+
this._targetId = targetId;
|
|
32
|
+
this._level = level;
|
|
33
|
+
this._preFader = preFader;
|
|
34
|
+
this._pannable = pannable;
|
|
35
|
+
}
|
|
36
|
+
// ── Level ────────────────────────────────────────────────────────────────
|
|
37
|
+
/** Send level in dB. */
|
|
38
|
+
get level() {
|
|
39
|
+
return this._level;
|
|
40
|
+
}
|
|
41
|
+
set level(value) {
|
|
42
|
+
if (this._level !== value) {
|
|
43
|
+
this._level = value;
|
|
44
|
+
this.levelChanged.emit(value);
|
|
45
|
+
this.stateChanged.emit();
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
// ── Pre/Post Fader ───────────────────────────────────────────────────────
|
|
49
|
+
/** Whether this send taps the signal before the channel fader. */
|
|
50
|
+
get preFader() {
|
|
51
|
+
return this._preFader;
|
|
52
|
+
}
|
|
53
|
+
set preFader(value) {
|
|
54
|
+
if (this._preFader !== value) {
|
|
55
|
+
this._preFader = value;
|
|
56
|
+
this.preFaderChanged.emit(value);
|
|
57
|
+
this.stateChanged.emit();
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
// ── Target ───────────────────────────────────────────────────────────────
|
|
61
|
+
/** The destination track or bus ID. */
|
|
62
|
+
get targetId() {
|
|
63
|
+
return this._targetId;
|
|
64
|
+
}
|
|
65
|
+
// ── Pannable ─────────────────────────────────────────────────────────────
|
|
66
|
+
/** Whether this send has its own panning control. */
|
|
67
|
+
get pannable() {
|
|
68
|
+
return this._pannable;
|
|
69
|
+
}
|
|
70
|
+
// ── Mute ─────────────────────────────────────────────────────────────────
|
|
71
|
+
/** Whether this send is muted. */
|
|
72
|
+
get muted() {
|
|
73
|
+
return this._muted;
|
|
74
|
+
}
|
|
75
|
+
set muted(value) {
|
|
76
|
+
if (this._muted !== value) {
|
|
77
|
+
this._muted = value;
|
|
78
|
+
this.muteChanged.emit(value);
|
|
79
|
+
this.stateChanged.emit();
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
// ── Metering ─────────────────────────────────────────────────────────────
|
|
83
|
+
/**
|
|
84
|
+
* Returns the current meter data for this send.
|
|
85
|
+
* In a full implementation the audio backend would feed real values;
|
|
86
|
+
* here we return sensible defaults so consumers always get a valid object.
|
|
87
|
+
*/
|
|
88
|
+
getMeterData() {
|
|
89
|
+
return {
|
|
90
|
+
peak: -Infinity,
|
|
91
|
+
rms: -Infinity,
|
|
92
|
+
peakHold: -Infinity,
|
|
93
|
+
clipping: false,
|
|
94
|
+
};
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
//# sourceMappingURL=SendProcessor.js.map
|
|
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,CAAC,SAAS,CAAC;IAC1B,CAAC;IAED,IAAW,QAAQ,CAAC,KAAc;QAC9B,IAAI,IAAI,CAAC,SAAS,KAAK,KAAK,EAAE,CAAC;YAC3B,IAAI,CAAC,SAAS,GAAG,KAAK,CAAC;YACvB,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;YACjC,IAAI,CAAC,YAAY,CAAC,IAAI,EAAE,CAAC;QAC7B,CAAC;IACL,CAAC;IAED,4EAA4E;IAE5E,uCAAuC;IACvC,IAAW,QAAQ;QACf,OAAO,IAAI,CAAC,SAAS,CAAC;IAC1B,CAAC;IAED,4EAA4E;IAE5E,qDAAqD;IACrD,IAAW,QAAQ;QACf,OAAO,IAAI,CAAC,SAAS,CAAC;IAC1B,CAAC;IAED,4EAA4E;IAE5E,kCAAkC;IAClC,IAAW,KAAK;QACZ,OAAO,IAAI,CAAC,MAAM,CAAC;IACvB,CAAC;IAED,IAAW,KAAK,CAAC,KAAc;QAC3B,IAAI,IAAI,CAAC,MAAM,KAAK,KAAK,EAAE,CAAC;YACxB,IAAI,CAAC,MAAM,GAAG,KAAK,CAAC;YACpB,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;YAC7B,IAAI,CAAC,YAAY,CAAC,IAAI,EAAE,CAAC;QAC7B,CAAC;IACL,CAAC;IAED,4EAA4E;IAE5E;;;;OAIG;IACI,YAAY;QACf,OAAO;YACH,IAAI,EAAE,CAAC,QAAQ;YACf,GAAG,EAAE,CAAC,QAAQ;YACd,QAAQ,EAAE,CAAC,QAAQ;YACnB,QAAQ,EAAE,KAAK;SAClB,CAAC;IACN,CAAC;CACJ"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { Session } from '../domain/Session';
|
|
2
|
+
import { Signal } from '../lib/Signal';
|
|
3
|
+
/**
|
|
4
|
+
* Auto-save manager.
|
|
5
|
+
*
|
|
6
|
+
* Periodically saves the current session to IndexedDB when the
|
|
7
|
+
* dirty flag is set. The dirty flag is set automatically whenever
|
|
8
|
+
* session signals fire, and cleared after a successful save.
|
|
9
|
+
*/
|
|
10
|
+
export declare class AutoSave {
|
|
11
|
+
private static instance;
|
|
12
|
+
private _dirty;
|
|
13
|
+
private _lastModified;
|
|
14
|
+
private _timerId;
|
|
15
|
+
private _session;
|
|
16
|
+
private _subscriptions;
|
|
17
|
+
/** Emitted after each successful auto-save. */
|
|
18
|
+
readonly saved: Signal<Date>;
|
|
19
|
+
private constructor();
|
|
20
|
+
static getInstance(): AutoSave;
|
|
21
|
+
get dirty(): boolean;
|
|
22
|
+
get lastModified(): Date;
|
|
23
|
+
/**
|
|
24
|
+
* Start monitoring the given session for changes and auto-saving.
|
|
25
|
+
*/
|
|
26
|
+
start(session: Session): void;
|
|
27
|
+
/**
|
|
28
|
+
* Stop auto-saving and clean up subscriptions.
|
|
29
|
+
*/
|
|
30
|
+
stop(): void;
|
|
31
|
+
/**
|
|
32
|
+
* Mark the session as dirty (has unsaved changes).
|
|
33
|
+
*/
|
|
34
|
+
markDirty(): void;
|
|
35
|
+
/**
|
|
36
|
+
* Force an immediate save (e.g. on window beforeunload).
|
|
37
|
+
*/
|
|
38
|
+
saveNow(): Promise<void>;
|
|
39
|
+
private startTimer;
|
|
40
|
+
private stopTimer;
|
|
41
|
+
private disposeSubscriptions;
|
|
42
|
+
/**
|
|
43
|
+
* Subscribe to relevant session signals so that any structural or
|
|
44
|
+
* transport change automatically marks the session as dirty.
|
|
45
|
+
*/
|
|
46
|
+
private subscribeToSessionSignals;
|
|
47
|
+
}
|
|
48
|
+
//# sourceMappingURL=AutoSave.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AutoSave.d.ts","sourceRoot":"","sources":["../../src/storage/AutoSave.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAIvC;;;;;;GAMG;AACH,qBAAa,QAAQ;IACjB,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAW;IAElC,OAAO,CAAC,MAAM,CAAS;IACvB,OAAO,CAAC,aAAa,CAAoB;IACzC,OAAO,CAAC,QAAQ,CAA+C;IAC/D,OAAO,CAAC,QAAQ,CAAwB;IACxC,OAAO,CAAC,cAAc,CAAsC;IAE5D,+CAA+C;IAC/C,SAAgB,KAAK,eAAsB;IAE3C,OAAO;WAEO,WAAW,IAAI,QAAQ;IASrC,IAAW,KAAK,IAAI,OAAO,CAE1B;IAED,IAAW,YAAY,IAAI,IAAI,CAE9B;IAED;;OAEG;IACI,KAAK,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI;IAapC;;OAEG;IACI,IAAI,IAAI,IAAI;IAOnB;;OAEG;IACI,SAAS,IAAI,IAAI;IAKxB;;OAEG;IACU,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC;IAiBrC,OAAO,CAAC,UAAU;IAMlB,OAAO,CAAC,SAAS;IAOjB,OAAO,CAAC,oBAAoB;IAO5B;;;OAGG;IACH,OAAO,CAAC,yBAAyB;CAwBpC"}
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
import { SessionStorage } from './SessionStorage';
|
|
2
|
+
import { Signal } from '../lib/Signal';
|
|
3
|
+
const AUTO_SAVE_INTERVAL_MS = 60000; // 60 seconds
|
|
4
|
+
/**
|
|
5
|
+
* Auto-save manager.
|
|
6
|
+
*
|
|
7
|
+
* Periodically saves the current session to IndexedDB when the
|
|
8
|
+
* dirty flag is set. The dirty flag is set automatically whenever
|
|
9
|
+
* session signals fire, and cleared after a successful save.
|
|
10
|
+
*/
|
|
11
|
+
export class AutoSave {
|
|
12
|
+
constructor() {
|
|
13
|
+
this._dirty = false;
|
|
14
|
+
this._lastModified = new Date();
|
|
15
|
+
this._timerId = null;
|
|
16
|
+
this._session = null;
|
|
17
|
+
this._subscriptions = [];
|
|
18
|
+
/** Emitted after each successful auto-save. */
|
|
19
|
+
this.saved = new Signal();
|
|
20
|
+
}
|
|
21
|
+
static getInstance() {
|
|
22
|
+
if (!AutoSave.instance) {
|
|
23
|
+
AutoSave.instance = new AutoSave();
|
|
24
|
+
}
|
|
25
|
+
return AutoSave.instance;
|
|
26
|
+
}
|
|
27
|
+
// ─── Public API ──────────────────────────────────────────────────────────
|
|
28
|
+
get dirty() {
|
|
29
|
+
return this._dirty;
|
|
30
|
+
}
|
|
31
|
+
get lastModified() {
|
|
32
|
+
return this._lastModified;
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* Start monitoring the given session for changes and auto-saving.
|
|
36
|
+
*/
|
|
37
|
+
start(session) {
|
|
38
|
+
this.stop(); // clean up any previous session
|
|
39
|
+
this._session = session;
|
|
40
|
+
this._dirty = false;
|
|
41
|
+
this._lastModified = new Date();
|
|
42
|
+
this.subscribeToSessionSignals(session);
|
|
43
|
+
this.startTimer();
|
|
44
|
+
console.log(`[AutoSave] Started for session: ${session.name}`);
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* Stop auto-saving and clean up subscriptions.
|
|
48
|
+
*/
|
|
49
|
+
stop() {
|
|
50
|
+
this.stopTimer();
|
|
51
|
+
this.disposeSubscriptions();
|
|
52
|
+
this._session = null;
|
|
53
|
+
this._dirty = false;
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* Mark the session as dirty (has unsaved changes).
|
|
57
|
+
*/
|
|
58
|
+
markDirty() {
|
|
59
|
+
this._dirty = true;
|
|
60
|
+
this._lastModified = new Date();
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* Force an immediate save (e.g. on window beforeunload).
|
|
64
|
+
*/
|
|
65
|
+
async saveNow() {
|
|
66
|
+
if (!this._session)
|
|
67
|
+
return;
|
|
68
|
+
if (!this._dirty)
|
|
69
|
+
return;
|
|
70
|
+
try {
|
|
71
|
+
const storage = SessionStorage.getInstance();
|
|
72
|
+
await storage.saveSession(this._session);
|
|
73
|
+
this._dirty = false;
|
|
74
|
+
this.saved.emit(new Date());
|
|
75
|
+
console.log(`[AutoSave] Session saved: ${this._session.name}`);
|
|
76
|
+
}
|
|
77
|
+
catch (err) {
|
|
78
|
+
console.error('[AutoSave] Failed to save session:', err);
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
// ─── Internals ───────────────────────────────────────────────────────────
|
|
82
|
+
startTimer() {
|
|
83
|
+
this._timerId = setInterval(() => {
|
|
84
|
+
this.saveNow();
|
|
85
|
+
}, AUTO_SAVE_INTERVAL_MS);
|
|
86
|
+
}
|
|
87
|
+
stopTimer() {
|
|
88
|
+
if (this._timerId !== null) {
|
|
89
|
+
clearInterval(this._timerId);
|
|
90
|
+
this._timerId = null;
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
disposeSubscriptions() {
|
|
94
|
+
for (const sub of this._subscriptions) {
|
|
95
|
+
sub.dispose();
|
|
96
|
+
}
|
|
97
|
+
this._subscriptions = [];
|
|
98
|
+
}
|
|
99
|
+
/**
|
|
100
|
+
* Subscribe to relevant session signals so that any structural or
|
|
101
|
+
* transport change automatically marks the session as dirty.
|
|
102
|
+
*/
|
|
103
|
+
subscribeToSessionSignals(session) {
|
|
104
|
+
const markDirty = () => this.markDirty();
|
|
105
|
+
this._subscriptions.push(session.trackAdded.connect(markDirty), session.trackRemoved.connect(markDirty), session.rangeAdded.connect(markDirty), session.rangeRemoved.connect(markDirty), session.tempoChanged.connect(markDirty), session.timeSignatureChanged.connect(markDirty), session.sendBusAdded.connect(markDirty), session.sendBusRemoved.connect(markDirty), session.markerAdded.connect(markDirty), session.markerRemoved.connect(markDirty), session.markerChanged.connect(markDirty), session.loopRangeChanged.connect(markDirty), session.loopEnabledChanged.connect(markDirty), session.punchRangeChanged.connect(markDirty), session.punchEnabledChanged.connect(markDirty), session.rippleEditChanged.connect(markDirty), session.regionGroupAdded.connect(markDirty), session.regionGroupRemoved.connect(markDirty));
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
//#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