@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,88 @@
|
|
|
1
|
+
import { AudioEngine } from '../../audio/AudioEngine';
|
|
2
|
+
import { Session } from '../../domain/Session';
|
|
3
|
+
import { createFromTemplate } from '../../storage/SessionTemplate';
|
|
4
|
+
/**
|
|
5
|
+
* NewSessionCommand -- creates a new session, optionally from a template.
|
|
6
|
+
*
|
|
7
|
+
* Undo restores the previous session state.
|
|
8
|
+
*/
|
|
9
|
+
export class NewSessionCommand {
|
|
10
|
+
constructor(name, templateId) {
|
|
11
|
+
this.name = name;
|
|
12
|
+
this.templateId = templateId;
|
|
13
|
+
}
|
|
14
|
+
async execute() {
|
|
15
|
+
var _a;
|
|
16
|
+
const engine = AudioEngine.getInstance();
|
|
17
|
+
this._snapshotBeforeNew = engine.session.toJSON();
|
|
18
|
+
// Build the new session
|
|
19
|
+
let newSession;
|
|
20
|
+
if (this.templateId) {
|
|
21
|
+
newSession = createFromTemplate(this.templateId);
|
|
22
|
+
if (this.name) {
|
|
23
|
+
newSession.name = this.name;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
else {
|
|
27
|
+
newSession = new Session((_a = this.name) !== null && _a !== void 0 ? _a : 'Untitled Session');
|
|
28
|
+
}
|
|
29
|
+
// Apply the new session's snapshot onto the current engine session
|
|
30
|
+
await this.applySnapshot(newSession.toJSON(), engine);
|
|
31
|
+
console.log(`[NewSessionCommand] New session created: ${engine.session.name}`);
|
|
32
|
+
}
|
|
33
|
+
async undo() {
|
|
34
|
+
if (!this._snapshotBeforeNew)
|
|
35
|
+
return;
|
|
36
|
+
const engine = AudioEngine.getInstance();
|
|
37
|
+
await this.applySnapshot(this._snapshotBeforeNew, engine);
|
|
38
|
+
console.log(`[NewSessionCommand] Undo: restored previous session`);
|
|
39
|
+
}
|
|
40
|
+
async redo() {
|
|
41
|
+
await this.execute();
|
|
42
|
+
}
|
|
43
|
+
async applySnapshot(snapshot, engine) {
|
|
44
|
+
const session = engine.session;
|
|
45
|
+
// Clear existing tracks
|
|
46
|
+
const existingTrackIds = session.tracks.map(t => t.id);
|
|
47
|
+
for (const id of existingTrackIds) {
|
|
48
|
+
session.removeTrack(id);
|
|
49
|
+
}
|
|
50
|
+
// Clear existing send buses
|
|
51
|
+
const existingSendBusIds = session.sendBuses.map(sb => sb.id);
|
|
52
|
+
for (const id of existingSendBusIds) {
|
|
53
|
+
session.removeSendBus(id);
|
|
54
|
+
}
|
|
55
|
+
// Restore transport state
|
|
56
|
+
session.name = snapshot.name;
|
|
57
|
+
session.tempo = snapshot.tempo;
|
|
58
|
+
session.timeSignature = snapshot.timeSignature;
|
|
59
|
+
session.tempoChanged.emit(snapshot.tempo);
|
|
60
|
+
// Restore tracks and regions
|
|
61
|
+
for (const trackData of snapshot.tracks) {
|
|
62
|
+
const track = session.addTrack(trackData.name, trackData.type, trackData.id);
|
|
63
|
+
track.armed = trackData.armed;
|
|
64
|
+
track.mute = trackData.mute;
|
|
65
|
+
track.solo = trackData.solo;
|
|
66
|
+
if (trackData.color)
|
|
67
|
+
track.color = trackData.color;
|
|
68
|
+
for (const regionData of trackData.regions) {
|
|
69
|
+
const { Region } = await import('../../domain/Region');
|
|
70
|
+
const region = new Region(regionData.id, regionData.sourceId, regionData.start, regionData.length, regionData.sourceStart, regionData.name, regionData.layer);
|
|
71
|
+
region.gain = regionData.gain;
|
|
72
|
+
region.muted = regionData.muted;
|
|
73
|
+
region.fadeIn = regionData.fadeIn;
|
|
74
|
+
region.fadeOut = regionData.fadeOut;
|
|
75
|
+
region.playbackRate = regionData.playbackRate;
|
|
76
|
+
region.timeDomain = regionData.timeDomain;
|
|
77
|
+
if (regionData.locked)
|
|
78
|
+
region.locked = regionData.locked;
|
|
79
|
+
track.playlist.addRegion(region);
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
// Restore send buses
|
|
83
|
+
for (const sbData of snapshot.sendBuses) {
|
|
84
|
+
session.addSendBus(sbData.sourceTrackId, sbData.destId, sbData.level, sbData.preFader, sbData.id);
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
//# sourceMappingURL=NewSessionCommand.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NewSessionCommand.js","sourceRoot":"","sources":["../../../src/commands/impl/NewSessionCommand.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AACtD,OAAO,EAAE,OAAO,EAAmB,MAAM,sBAAsB,CAAC;AAChE,OAAO,EAAE,kBAAkB,EAAE,MAAM,+BAA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-0,0 +1,24 @@
|
|
|
1
|
+
import { UndoableCommand } from '../Command';
|
|
2
|
+
import { Session } from '../../domain/Session';
|
|
3
|
+
import { AudioEngine } from '../../audio/AudioEngine';
|
|
4
|
+
import { TrackId, RegionId } from '../../domain/types';
|
|
5
|
+
/**
|
|
6
|
+
* NormalizeRegionCommand
|
|
7
|
+
*
|
|
8
|
+
* Adjusts a region's gain so peak reaches target level.
|
|
9
|
+
*/
|
|
10
|
+
export declare class NormalizeRegionCommand implements UndoableCommand {
|
|
11
|
+
readonly id: string;
|
|
12
|
+
private session;
|
|
13
|
+
private audioEngine;
|
|
14
|
+
private trackId;
|
|
15
|
+
private regionId;
|
|
16
|
+
private targetDb;
|
|
17
|
+
private previousGain;
|
|
18
|
+
private newGain;
|
|
19
|
+
constructor(session: Session, audioEngine: AudioEngine, trackId: TrackId, regionId: RegionId, targetDb?: number);
|
|
20
|
+
execute(): Promise<void>;
|
|
21
|
+
undo(): Promise<void>;
|
|
22
|
+
redo(): Promise<void>;
|
|
23
|
+
}
|
|
24
|
+
//# sourceMappingURL=NormalizeRegionCommand.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NormalizeRegionCommand.d.ts","sourceRoot":"","sources":["../../../src/commands/impl/NormalizeRegionCommand.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAC7C,OAAO,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAC/C,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AACtD,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAEvD;;;;GAIG;AACH,qBAAa,sBAAuB,YAAW,eAAe;IAC1D,SAAgB,EAAE,EAAE,MAAM,CAAC;IAC3B,OAAO,CAAC,OAAO,CAAU;IACzB,OAAO,CAAC,WAAW,CAAc;IACjC,OAAO,CAAC,OAAO,CAAU;IACzB,OAAO,CAAC,QAAQ,CAAW;IAC3B,OAAO,CAAC,QAAQ,CAAS;IAGzB,OAAO,CAAC,YAAY,CAAuB;IAC3C,OAAO,CAAC,OAAO,CAAe;gBAG1B,OAAO,EAAE,OAAO,EAChB,WAAW,EAAE,WAAW,EACxB,OAAO,EAAE,OAAO,EAChB,QAAQ,EAAE,QAAQ,EAClB,QAAQ,GAAE,MAAU;IAUX,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC;IA6BxB,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;IAarB,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;CAUrC"}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* NormalizeRegionCommand
|
|
3
|
+
*
|
|
4
|
+
* Adjusts a region's gain so peak reaches target level.
|
|
5
|
+
*/
|
|
6
|
+
export class NormalizeRegionCommand {
|
|
7
|
+
constructor(session, audioEngine, trackId, regionId, targetDb = 0) {
|
|
8
|
+
// Saved state for undo
|
|
9
|
+
this.previousGain = null;
|
|
10
|
+
this.newGain = 1.0;
|
|
11
|
+
this.id = crypto.randomUUID();
|
|
12
|
+
this.session = session;
|
|
13
|
+
this.audioEngine = audioEngine;
|
|
14
|
+
this.trackId = trackId;
|
|
15
|
+
this.regionId = regionId;
|
|
16
|
+
this.targetDb = targetDb;
|
|
17
|
+
}
|
|
18
|
+
async execute() {
|
|
19
|
+
const track = this.session.getTrack(this.trackId);
|
|
20
|
+
if (!track) {
|
|
21
|
+
throw new Error(`Track ${this.trackId} not found`);
|
|
22
|
+
}
|
|
23
|
+
const region = track.playlist.getRegion(this.regionId);
|
|
24
|
+
if (!region) {
|
|
25
|
+
throw new Error(`Region ${this.regionId} not found`);
|
|
26
|
+
}
|
|
27
|
+
// Save old gain
|
|
28
|
+
this.previousGain = region.gain;
|
|
29
|
+
// Get the gain needed to normalize
|
|
30
|
+
const gainNeeded = await this.audioEngine.normalizeRegion(this.trackId, this.regionId, this.targetDb);
|
|
31
|
+
// Apply gain (multiply existing gain by normalization factor)
|
|
32
|
+
this.newGain = region.gain * gainNeeded;
|
|
33
|
+
region.gain = this.newGain;
|
|
34
|
+
// Notify backend
|
|
35
|
+
track.playlist.regionChanged.emit(region);
|
|
36
|
+
}
|
|
37
|
+
async undo() {
|
|
38
|
+
if (this.previousGain === null)
|
|
39
|
+
return;
|
|
40
|
+
const track = this.session.getTrack(this.trackId);
|
|
41
|
+
if (!track)
|
|
42
|
+
return;
|
|
43
|
+
const region = track.playlist.getRegion(this.regionId);
|
|
44
|
+
if (!region)
|
|
45
|
+
return;
|
|
46
|
+
region.gain = this.previousGain;
|
|
47
|
+
track.playlist.regionChanged.emit(region);
|
|
48
|
+
}
|
|
49
|
+
async redo() {
|
|
50
|
+
const track = this.session.getTrack(this.trackId);
|
|
51
|
+
if (!track)
|
|
52
|
+
return;
|
|
53
|
+
const region = track.playlist.getRegion(this.regionId);
|
|
54
|
+
if (!region)
|
|
55
|
+
return;
|
|
56
|
+
region.gain = this.newGain;
|
|
57
|
+
track.playlist.regionChanged.emit(region);
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
//# sourceMappingURL=NormalizeRegionCommand.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NormalizeRegionCommand.js","sourceRoot":"","sources":["../../../src/commands/impl/NormalizeRegionCommand.ts"],"names":[],"mappings":"AAKA;;;;GAIG;AACH,MAAM,OAAO,sBAAsB;IAY/B,YACI,OAAgB,EAChB,WAAwB,EACxB,OAAgB,EAChB,QAAkB,EAClB,WAAmB,CAAC;QATxB,uBAAuB;QACf,iBAAY,GAAkB,IAAI,CAAC;QACnC,YAAO,GAAW,GAAG,CAAC;QAS1B,IAAI,CAAC,EAAE,GAAG,MAAM,CAAC,UAAU,EAAE,CAAC;QAC9B,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;QAC/B,IAAI,CAAC,OAAO,GAAG,OAAO,CA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MAAM,MAAM,GAAG,KAAK,CAAC,QAAQ,CAAC,SAAS,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;QACvD,IAAI,CAAC,MAAM;YAAE,OAAO;QAEpB,MAAM,CAAC,IAAI,GAAG,IAAI,CAAC,YAAY,CAAC;QAChC,KAAK,CAAC,QAAQ,CAAC,aAAa,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;IAC9C,CAAC;IAEM,KAAK,CAAC,IAAI;QACb,MAAM,KAAK,GAAG,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAClD,IAAI,CAAC,KAAK;YAAE,OAAO;QAEnB,MAAM,MAAM,GAAG,KAAK,CAAC,QAAQ,CAAC,SAAS,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;QACvD,IAAI,CAAC,MAAM;YAAE,OAAO;QAEpB,MAAM,CAAC,IAAI,GAAG,IAAI,CAAC,OAAO,CAAC;QAC3B,KAAK,CAAC,QAAQ,CAAC,aAAa,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;IAC9C,CAAC;CACJ"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { UndoableCommand } from '../Command';
|
|
2
|
+
import { TrackId, FrameCount } from '../../domain/types';
|
|
3
|
+
/**
|
|
4
|
+
* Paste Region Command
|
|
5
|
+
*
|
|
6
|
+
* 클립보드의 Region들을 현재 playhead 위치에 붙여넣기합니다.
|
|
7
|
+
* Ardour 참조: gtk2_ardour/editor.cc (paste_regions)
|
|
8
|
+
*/
|
|
9
|
+
export declare class PasteRegionCommand implements UndoableCommand {
|
|
10
|
+
private targetTrackId?;
|
|
11
|
+
private pastePosition?;
|
|
12
|
+
private addedRegionCommands;
|
|
13
|
+
constructor(targetTrackId?: TrackId, pastePosition?: FrameCount);
|
|
14
|
+
execute(): Promise<void>;
|
|
15
|
+
undo(): Promise<void>;
|
|
16
|
+
redo(): Promise<void>;
|
|
17
|
+
}
|
|
18
|
+
//# sourceMappingURL=PasteRegionCommand.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PasteRegionCommand.d.ts","sourceRoot":"","sources":["../../../src/commands/impl/PasteRegionCommand.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAG7C,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAGzD;;;;;GAKG;AACH,qBAAa,kBAAmB,YAAW,eAAe;IACtD,OAAO,CAAC,aAAa,CAAC,CAAU;IAChC,OAAO,CAAC,aAAa,CAAC,CAAa;IACnC,OAAO,CAAC,mBAAmB,CAA0B;gBAEzC,aAAa,CAAC,EAAE,OAAO,EAAE,aAAa,CAAC,EAAE,UAAU;IAKlD,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC;IAuDxB,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;IASrB,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;CAGrC"}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { AudioEngine } from '../../audio/AudioEngine';
|
|
2
|
+
import { RegionClipboard } from '../../domain/RegionClipboard';
|
|
3
|
+
import { AddRegionCommand } from './AddRegionCommand';
|
|
4
|
+
/**
|
|
5
|
+
* Paste Region Command
|
|
6
|
+
*
|
|
7
|
+
* 클립보드의 Region들을 현재 playhead 위치에 붙여넣기합니다.
|
|
8
|
+
* Ardour 참조: gtk2_ardour/editor.cc (paste_regions)
|
|
9
|
+
*/
|
|
10
|
+
export class PasteRegionCommand {
|
|
11
|
+
constructor(targetTrackId, pastePosition) {
|
|
12
|
+
this.addedRegionCommands = [];
|
|
13
|
+
this.targetTrackId = targetTrackId;
|
|
14
|
+
this.pastePosition = pastePosition;
|
|
15
|
+
}
|
|
16
|
+
async execute() {
|
|
17
|
+
var _a;
|
|
18
|
+
const engine = AudioEngine.getInstance();
|
|
19
|
+
const session = engine.session;
|
|
20
|
+
const clipboard = RegionClipboard.getInstance();
|
|
21
|
+
if (clipboard.isEmpty()) {
|
|
22
|
+
console.log('[PasteRegionCommand] Clipboard is empty');
|
|
23
|
+
return;
|
|
24
|
+
}
|
|
25
|
+
const clipboardData = clipboard.getClipboardData();
|
|
26
|
+
// Paste 위치 결정 (기본: transportFrame)
|
|
27
|
+
const basePosition = (_a = this.pastePosition) !== null && _a !== void 0 ? _a : session.transportFrame;
|
|
28
|
+
// 각 region의 원래 시작 위치의 최솟값 계산
|
|
29
|
+
const minOriginalStart = Math.min(...clipboardData.map(data => data.start));
|
|
30
|
+
for (const data of clipboardData) {
|
|
31
|
+
// Target track 결정
|
|
32
|
+
let targetTrack = this.targetTrackId
|
|
33
|
+
? session.getTrack(this.targetTrackId)
|
|
34
|
+
: session.getTrack(data.originalTrackId);
|
|
35
|
+
// Track이 없으면 첫 번째 track 사용
|
|
36
|
+
if (!targetTrack && session.tracks.length > 0) {
|
|
37
|
+
targetTrack = session.tracks[0];
|
|
38
|
+
}
|
|
39
|
+
if (!targetTrack) {
|
|
40
|
+
console.warn('[PasteRegionCommand] No target track found');
|
|
41
|
+
continue;
|
|
42
|
+
}
|
|
43
|
+
// 상대적 위치 유지하며 paste
|
|
44
|
+
const relativeOffset = data.start - minOriginalStart;
|
|
45
|
+
const newStart = basePosition + relativeOffset;
|
|
46
|
+
// AddRegionCommand로 region 추가
|
|
47
|
+
const addCmd = new AddRegionCommand(session, targetTrack.id, data.sourceId, newStart, data.length, data.start // sourceStart
|
|
48
|
+
);
|
|
49
|
+
await addCmd.execute();
|
|
50
|
+
this.addedRegionCommands.push(addCmd);
|
|
51
|
+
}
|
|
52
|
+
console.log(`[PasteRegionCommand] Pasted ${clipboardData.length} region(s) at frame ${basePosition}`);
|
|
53
|
+
}
|
|
54
|
+
async undo() {
|
|
55
|
+
// Undo in reverse order
|
|
56
|
+
for (let i = this.addedRegionCommands.length - 1; i >= 0; i--) {
|
|
57
|
+
await this.addedRegionCommands[i].undo();
|
|
58
|
+
}
|
|
59
|
+
this.addedRegionCommands = [];
|
|
60
|
+
console.log('[PasteRegionCommand] Undo paste');
|
|
61
|
+
}
|
|
62
|
+
async redo() {
|
|
63
|
+
await this.execute();
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
//# sourceMappingURL=PasteRegionCommand.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PasteRegionCommand.js","sourceRoot":"","sources":["../../../src/commands/impl/PasteRegionCommand.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AACtD,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAE/D,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAEtD;;;;;GAKG;AACH,MAAM,OAAO,kBAAkB;IAK3B,YAAY,aAAuB,EAAE,aAA0B;QAFvD,wBAAmB,GAAuB,EAAE,CAAC;QAGjD,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;QACnC,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;IACvC,CAAC;IAEM,KAAK,CAAC,OAAO;;QAChB,MAAM,MAAM,GAAG,WAAW,CAAC,WAAW,EAAE,CAAC;QACzC,MAAM,OAAO,GAAG,MAAM,CAAC,OAAO,CAAC;QAC/B,MAAM,SAAS,GAAG,eAAe,CAAC,WAAW,EAAE,CAAC;QAEhD,IAAI,SAAS,CAAC,OAAO,EAAE,EAAE,CAAC;YACtB,OAAO,CAAC,GAAG,CAAC,yCAAyC,CAAC,CAAC;YACvD,OAAO;QACX,CAAC;QAED,MAAM,aAAa,GAAG,SAAS,CAAC,gBAAgB,EAAE,CAAC;QAEnD,mCAAmC;QACnC,MAAM,YAAY,GAAG,MAAA,IAAI,CAAC,aAAa,mCAAI,OAAO,CAAC,cAAc,CAAC;QAElE,6BAA6B;QAC7B,MAAM,gBAAgB,GAAG,IAAI,CAAC,GAAG,CAAC,GAAG,aAAa,CAAC,GAAG,CAA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AC,MAAM,GAAG,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC;YAC5D,MAAM,IAAI,CAAC,mBAAmB,CAAC,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC;QAC7C,CAAC;QACD,IAAI,CAAC,mBAAmB,GAAG,EAAE,CAAC;QAC9B,OAAO,CAAC,GAAG,CAAC,iCAAiC,CAAC,CAAC;IACnD,CAAC;IAEM,KAAK,CAAC,IAAI;QACb,MAAM,IAAI,CAAC,OAAO,EAAE,CAAC;IACzB,CAAC;CACJ"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { UndoableCommand } from '../Command';
|
|
2
|
+
import { Session } from '../../domain/Session';
|
|
3
|
+
import { ProcessorId } from '../../domain/types';
|
|
4
|
+
export declare class RemoveAutomationPointCommand implements UndoableCommand {
|
|
5
|
+
private session;
|
|
6
|
+
readonly trackId: string;
|
|
7
|
+
readonly processorId: ProcessorId;
|
|
8
|
+
readonly parameter: string;
|
|
9
|
+
readonly pointId: string;
|
|
10
|
+
readonly type = "RemoveAutomationPoint";
|
|
11
|
+
private deletedPoint;
|
|
12
|
+
constructor(session: Session, trackId: string, processorId: ProcessorId, parameter: string, pointId: string);
|
|
13
|
+
execute(): Promise<void>;
|
|
14
|
+
undo(): Promise<void>;
|
|
15
|
+
redo(): Promise<void>;
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=RemoveAutomationPointCommand.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RemoveAutomationPointCommand.d.ts","sourceRoot":"","sources":["../../../src/commands/impl/RemoveAutomationPointCommand.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAC7C,OAAO,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAC/C,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAIjD,qBAAa,4BAA6B,YAAW,eAAe;IAO5D,OAAO,CAAC,OAAO;aACC,OAAO,EAAE,MAAM;aACf,WAAW,EAAE,WAAW;aACxB,SAAS,EAAE,MAAM;aACjB,OAAO,EAAE,MAAM;IAVnC,SAAgB,IAAI,2BAA2B;IAG/C,OAAO,CAAC,YAAY,CAAgC;gBAGxC,OAAO,EAAE,OAAO,EACR,OAAO,EAAE,MAAM,EACf,WAAW,EAAE,WAAW,EACxB,SAAS,EAAE,MAAM,EACjB,OAAO,EAAE,MAAM;IAG7B,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC;IAwBxB,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;IAwBrB,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;CAY9B"}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
export class RemoveAutomationPointCommand {
|
|
2
|
+
constructor(session, trackId, processorId, parameter, pointId) {
|
|
3
|
+
this.session = session;
|
|
4
|
+
this.trackId = trackId;
|
|
5
|
+
this.processorId = processorId;
|
|
6
|
+
this.parameter = parameter;
|
|
7
|
+
this.pointId = pointId;
|
|
8
|
+
this.type = 'RemoveAutomationPoint';
|
|
9
|
+
// State to restore
|
|
10
|
+
this.deletedPoint = null;
|
|
11
|
+
}
|
|
12
|
+
async execute() {
|
|
13
|
+
const track = this.session.getTrack(this.trackId);
|
|
14
|
+
if (!track)
|
|
15
|
+
throw new Error(`Track ${this.trackId} not found`);
|
|
16
|
+
const processor = track.route.processors.find((p) => p.id === this.processorId);
|
|
17
|
+
if (!processor)
|
|
18
|
+
throw new Error(`Processor ${this.processorId} not found`);
|
|
19
|
+
const automationList = processor.automations.get(this.parameter);
|
|
20
|
+
if (!automationList)
|
|
21
|
+
throw new Error(`val parameter ${this.parameter} not found`);
|
|
22
|
+
// Store for undo
|
|
23
|
+
const points = automationList.getPoints();
|
|
24
|
+
const point = points.find((p) => p.id === this.pointId);
|
|
25
|
+
if (point) {
|
|
26
|
+
this.deletedPoint = Object.assign({}, point);
|
|
27
|
+
}
|
|
28
|
+
else {
|
|
29
|
+
// Already gone?
|
|
30
|
+
console.warn(`Point ${this.pointId} not found to remove`);
|
|
31
|
+
return;
|
|
32
|
+
}
|
|
33
|
+
automationList.removePoint(this.pointId);
|
|
34
|
+
}
|
|
35
|
+
async undo() {
|
|
36
|
+
if (!this.deletedPoint)
|
|
37
|
+
return;
|
|
38
|
+
const track = this.session.getTrack(this.trackId);
|
|
39
|
+
if (!track)
|
|
40
|
+
return;
|
|
41
|
+
const processor = track.route.processors.find((p) => p.id === this.processorId);
|
|
42
|
+
if (!processor)
|
|
43
|
+
return;
|
|
44
|
+
const automationList = processor.automations.get(this.parameter);
|
|
45
|
+
if (automationList) {
|
|
46
|
+
// Re-add with original ID
|
|
47
|
+
// AutomationList.addPoint generates new ID. We need a way to restore exact point or accept new ID.
|
|
48
|
+
// If we accept new ID, then redo might fail if it relies on ID.
|
|
49
|
+
// We should add method `restorePoint` or allow specifying ID in `addPoint`.
|
|
50
|
+
automationList.addPoint(this.deletedPoint.time, this.deletedPoint.value, this.deletedPoint.interpolation, this.deletedPoint.id // We need to update AutomationList to accept ID
|
|
51
|
+
);
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
async redo() {
|
|
55
|
+
// Redo is just execute again (removing by ID)
|
|
56
|
+
// If we restored with original ID, this works.
|
|
57
|
+
const track = this.session.getTrack(this.trackId);
|
|
58
|
+
if (!track)
|
|
59
|
+
return;
|
|
60
|
+
const processor = track.route.processors.find((p) => p.id === this.processorId);
|
|
61
|
+
if (!processor)
|
|
62
|
+
return;
|
|
63
|
+
const automationList = processor.automations.get(this.parameter);
|
|
64
|
+
if (automationList) {
|
|
65
|
+
automationList.removePoint(this.pointId);
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
//# sourceMappingURL=RemoveAutomationPointCommand.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RemoveAutomationPointCommand.js","sourceRoot":"","sources":["../../../src/commands/impl/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AClD,IAAI,CAAC,KAAK;YAAE,OAAO;QACnB,MAAM,SAAS,GAAG,KAAK,CAAC,KAAK,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,CAAY,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,KAAK,IAAI,CAAC,WAAW,CAAC,CAAC;QAC3F,IAAI,CAAC,SAAS;YAAE,OAAO;QACvB,MAAM,cAAc,GAAG,SAAS,CAAC,WAAW,CAAC,GAAG,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;QACjE,IAAI,cAAc,EAAE,CAAC;YACjB,cAAc,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC7C,CAAC;IACL,CAAC;CACJ"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { UndoableCommand } from '../Command';
|
|
2
|
+
import { MarkerId } from '../../domain/Marker';
|
|
3
|
+
export declare class RemoveMarkerCommand implements UndoableCommand {
|
|
4
|
+
private markerId;
|
|
5
|
+
private savedName?;
|
|
6
|
+
private savedPosition?;
|
|
7
|
+
private savedColor?;
|
|
8
|
+
private savedLocked?;
|
|
9
|
+
constructor(markerId: MarkerId);
|
|
10
|
+
execute(): Promise<void>;
|
|
11
|
+
undo(): Promise<void>;
|
|
12
|
+
redo(): Promise<void>;
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=RemoveMarkerCommand.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RemoveMarkerCommand.d.ts","sourceRoot":"","sources":["../../../src/commands/impl/RemoveMarkerCommand.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAE7C,OAAO,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAE/C,qBAAa,mBAAoB,YAAW,eAAe;IAM3C,OAAO,CAAC,QAAQ;IAL5B,OAAO,CAAC,SAAS,CAAC,CAAS;IAC3B,OAAO,CAAC,aAAa,CAAC,CAAS;IAC/B,OAAO,CAAC,UAAU,CAAC,CAAS;IAC5B,OAAO,CAAC,WAAW,CAAC,CAAU;gBAEV,QAAQ,EAAE,QAAQ;IAEhC,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC;IAexB,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;IAcrB,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;CAG9B"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { AudioEngine } from '../../audio/AudioEngine';
|
|
2
|
+
export class RemoveMarkerCommand {
|
|
3
|
+
constructor(markerId) {
|
|
4
|
+
this.markerId = markerId;
|
|
5
|
+
}
|
|
6
|
+
async execute() {
|
|
7
|
+
const session = AudioEngine.getInstance().session;
|
|
8
|
+
const marker = session.getMarker(this.markerId);
|
|
9
|
+
if (!marker)
|
|
10
|
+
throw new Error(`Marker not found: ${this.markerId}`);
|
|
11
|
+
// Save for undo
|
|
12
|
+
this.savedName = marker.name;
|
|
13
|
+
this.savedPosition = marker.position;
|
|
14
|
+
this.savedColor = marker.color;
|
|
15
|
+
this.savedLocked = marker.locked;
|
|
16
|
+
session.removeMarker(this.markerId);
|
|
17
|
+
console.log(`[RemoveMarkerCommand] Removed marker "${this.savedName}"`);
|
|
18
|
+
}
|
|
19
|
+
async undo() {
|
|
20
|
+
if (this.savedName !== undefined && this.savedPosition !== undefined) {
|
|
21
|
+
const session = AudioEngine.getInstance().session;
|
|
22
|
+
const marker = session.addMarker(this.savedName, this.savedPosition, this.savedColor, this.markerId);
|
|
23
|
+
if (this.savedLocked)
|
|
24
|
+
marker.locked = true;
|
|
25
|
+
console.log(`[RemoveMarkerCommand] Undo: restored marker "${this.savedName}"`);
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
async redo() {
|
|
29
|
+
await this.execute();
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
//# sourceMappingURL=RemoveMarkerCommand.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Rem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;gBAAE,MAAM,CAAC,MAAM,GAAG,IAAI,CAAC;YAC3C,OAAO,CAAC,GAAG,CAAC,gDAAgD,IAAI,CAAC,SAAS,GAAG,CAAC,CAAC;QACnF,CAAC;IACL,CAAC;IAED,KAAK,CAAC,IAAI;QACN,MAAM,IAAI,CAAC,OAAO,EAAE,CAAC;IACzB,CAAC;CACJ"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { UndoableCommand } from '../Command';
|
|
2
|
+
import { Session } from '../../domain/Session';
|
|
3
|
+
import { MidiNoteId } from '../../domain/MidiNote';
|
|
4
|
+
export declare class RemoveMidiNoteCommand implements UndoableCommand {
|
|
5
|
+
readonly id: string;
|
|
6
|
+
private session;
|
|
7
|
+
private trackId;
|
|
8
|
+
private regionId;
|
|
9
|
+
private noteId;
|
|
10
|
+
private removedNote;
|
|
11
|
+
constructor(session: Session, trackId: string, regionId: string, noteId: MidiNoteId);
|
|
12
|
+
execute(): Promise<void>;
|
|
13
|
+
undo(): Promise<void>;
|
|
14
|
+
redo(): Promise<void>;
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=RemoveMidiNoteCommand.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RemoveMidiNoteCommand.d.ts","sourceRoot":"","sources":["../../../src/commands/impl/RemoveMidiNoteCommand.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAC7C,OAAO,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAC/C,OAAO,EAAY,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAE7D,qBAAa,qBAAsB,YAAW,eAAe;IACzD,SAAgB,EAAE,EAAE,MAAM,CAAC;IAC3B,OAAO,CAAC,OAAO,CAAU;IACzB,OAAO,CAAC,OAAO,CAAS;IACxB,OAAO,CAAC,QAAQ,CAAS;IACzB,OAAO,CAAC,MAAM,CAAa;IAE3B,OAAO,CAAC,WAAW,CAAyB;gBAGxC,OAAO,EAAE,OAAO,EAChB,OAAO,EAAE,MAAM,EACf,QAAQ,EAAE,MAAM,EAChB,MAAM,EAAE,UAAU;IAST,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC;IAcxB,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;IAYrB,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;CAGrC"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
export class RemoveMidiNoteCommand {
|
|
2
|
+
constructor(session, trackId, regionId, noteId) {
|
|
3
|
+
this.removedNote = null;
|
|
4
|
+
this.id = crypto.randomUUID();
|
|
5
|
+
this.session = session;
|
|
6
|
+
this.trackId = trackId;
|
|
7
|
+
this.regionId = regionId;
|
|
8
|
+
this.noteId = noteId;
|
|
9
|
+
}
|
|
10
|
+
async execute() {
|
|
11
|
+
const track = this.session.getTrack(this.trackId);
|
|
12
|
+
if (!track)
|
|
13
|
+
throw new Error(`Track ${this.trackId} not found`);
|
|
14
|
+
const midiRegion = track.playlist.getMidiRegion(this.regionId);
|
|
15
|
+
if (!midiRegion)
|
|
16
|
+
throw new Error(`MIDI Region ${this.regionId} not found`);
|
|
17
|
+
const note = midiRegion.getNote(this.noteId);
|
|
18
|
+
if (!note)
|
|
19
|
+
throw new Error(`MIDI Note ${this.noteId} not found`);
|
|
20
|
+
this.removedNote = note;
|
|
21
|
+
midiRegion.removeNote(this.noteId);
|
|
22
|
+
}
|
|
23
|
+
async undo() {
|
|
24
|
+
if (!this.removedNote)
|
|
25
|
+
return;
|
|
26
|
+
const track = this.session.getTrack(this.trackId);
|
|
27
|
+
if (!track)
|
|
28
|
+
return;
|
|
29
|
+
const midiRegion = track.playlist.getMidiRegion(this.regionId);
|
|
30
|
+
if (midiRegion) {
|
|
31
|
+
midiRegion.addNote(this.removedNote);
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
async redo() {
|
|
35
|
+
await this.execute();
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
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AAK,CAAC,IAAI;QACb,IAAI,CAAC,IAAI,CAAC,WAAW;YAAE,OAAO;QAE9B,MAAM,KAAK,GAAG,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAClD,IAAI,CAAC,KAAK;YAAE,OAAO;QAEnB,MAAM,UAAU,GAAG,KAAK,CAAC,QAAQ,CAAC,aAAa,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;QAC/D,IAAI,UAAU,EAAE,CAAC;YACb,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;QACzC,CAAC;IACL,CAAC;IAEM,KAAK,CAAC,IAAI;QACb,MAAM,IAAI,CAAC,OAAO,EAAE,CAAC;IACzB,CAAC;CACJ"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { UndoableCommand } from '../Command';
|
|
2
|
+
import { Session } from '../../domain/Session';
|
|
3
|
+
import { ProcessorId } from '../../domain/types';
|
|
4
|
+
export declare class RemovePluginCommand implements UndoableCommand {
|
|
5
|
+
readonly type = "RemovePlugin";
|
|
6
|
+
private trackId;
|
|
7
|
+
private processorId;
|
|
8
|
+
private removedProcessor;
|
|
9
|
+
private removedPosition;
|
|
10
|
+
private removedIndex;
|
|
11
|
+
private session;
|
|
12
|
+
constructor(session: Session, trackId: string, processorId: ProcessorId);
|
|
13
|
+
execute(): Promise<void>;
|
|
14
|
+
undo(): Promise<void>;
|
|
15
|
+
redo(): Promise<void>;
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=RemovePluginCommand.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RemovePluginCommand.d.ts","sourceRoot":"","sources":["../../../src/commands/impl/RemovePluginCommand.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAC7C,OAAO,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAC/C,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAIjD,qBAAa,mBAAoB,YAAW,eAAe;IACvD,SAAgB,IAAI,kBAAkB;IACtC,OAAO,CAAC,OAAO,CAAS;IACxB,OAAO,CAAC,WAAW,CAAc;IACjC,OAAO,CAAC,gBAAgB,CAA6B;IACrD,OAAO,CAAC,eAAe,CAAyB;IAChD,OAAO,CAAC,YAAY,CAAc;IAClC,OAAO,CAAC,OAAO,CAAU;gBAEb,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,WAAW;IAMjE,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC;IAgCxB,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;IAUrB,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;CAG9B"}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { PluginInsert } from '../../processing/PluginInsert';
|
|
2
|
+
export class RemovePluginCommand {
|
|
3
|
+
constructor(session, trackId, processorId) {
|
|
4
|
+
this.type = 'RemovePlugin';
|
|
5
|
+
this.removedProcessor = null;
|
|
6
|
+
this.removedPosition = 'pre';
|
|
7
|
+
this.removedIndex = -1;
|
|
8
|
+
this.session = session;
|
|
9
|
+
this.trackId = trackId;
|
|
10
|
+
this.processorId = processorId;
|
|
11
|
+
}
|
|
12
|
+
async execute() {
|
|
13
|
+
const track = this.session.getTrack(this.trackId);
|
|
14
|
+
if (!track)
|
|
15
|
+
throw new Error(`Track ${this.trackId} not found`);
|
|
16
|
+
// Determine position
|
|
17
|
+
let index = -1;
|
|
18
|
+
let position = 'pre';
|
|
19
|
+
if (track.route.preFaderProcessors.find((p) => p.id === this.processorId)) {
|
|
20
|
+
index = track.route.preFaderProcessors.findIndex((p) => p.id === this.processorId);
|
|
21
|
+
position = 'pre';
|
|
22
|
+
}
|
|
23
|
+
else if (track.route.postFaderProcessors.find((p) => p.id === this.processorId)) {
|
|
24
|
+
index = track.route.postFaderProcessors.findIndex((p) => p.id === this.processorId);
|
|
25
|
+
position = 'post';
|
|
26
|
+
}
|
|
27
|
+
if (index === -1)
|
|
28
|
+
return;
|
|
29
|
+
// Get processor from correct list
|
|
30
|
+
const processor = position === 'pre' ? track.route.preFaderProcessors[index] : track.route.postFaderProcessors[index];
|
|
31
|
+
if (processor instanceof PluginInsert) {
|
|
32
|
+
this.removedProcessor = processor;
|
|
33
|
+
this.removedIndex = index;
|
|
34
|
+
this.removedPosition = position;
|
|
35
|
+
track.route.removeProcessor(this.processorId);
|
|
36
|
+
console.log(`[Command] Removed plugin ${processor.name} from track ${track.name}`);
|
|
37
|
+
}
|
|
38
|
+
else {
|
|
39
|
+
console.warn(`[Command] Target processor ${this.processorId} is not a plugin`);
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
async undo() {
|
|
43
|
+
if (!this.removedProcessor || this.removedIndex === -1)
|
|
44
|
+
return;
|
|
45
|
+
const track = this.session.getTrack(this.trackId);
|
|
46
|
+
if (!track)
|
|
47
|
+
return;
|
|
48
|
+
track.route.addProcessor(this.removedProcessor, this.removedPosition, this.removedIndex);
|
|
49
|
+
console.log(`[Command] Undid remove plugin for track ${track.name}`);
|
|
50
|
+
}
|
|
51
|
+
async redo() {
|
|
52
|
+
return this.execute();
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
//# sourceMappingURL=RemovePluginCommand.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RemovePluginCommand.js","sourceRoot":"","sources":["../../../src/commands/impl/RemovePluginCommand.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAG7D,MAAM,OAAO,mBAAmB;IAS5B,YAAY,OAAgB,EAAE,OAAe,EAAE,WAAwB;QARvD,SAAI,GAAG,cAAc,CAAC;QAG9B,qBAAgB,GAAwB,IAAI,CAAC;QAC7C,oBAAe,GAAmB,KAAK,CAAC;QACxC,iBAAY,GAAW,CAAC,CAAC,CAAC;QAI9B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{ RangeId } from '../../domain/types';
|
|
3
|
+
/**
|
|
4
|
+
* Remove Range Command
|
|
5
|
+
* Timeline에서 range를 제거합니다.
|
|
6
|
+
*/
|
|
7
|
+
export declare class RemoveRangeCommand implements Command {
|
|
8
|
+
private rangeId;
|
|
9
|
+
private removedRange?;
|
|
10
|
+
constructor(rangeId: RangeId);
|
|
11
|
+
execute(): Promise<void>;
|
|
12
|
+
undo(): Promise<void>;
|
|
13
|
+
redo(): Promise<void>;
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=RemoveRangeCommand.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RemoveRangeCommand.d.ts","sourceRoot":"","sources":["../../../src/commands/impl/RemoveRangeCommand.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAGrC,OAAO,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAE7C;;;GAGG;AACH,qBAAa,kBAAmB,YAAW,OAAO;IAC9C,OAAO,CAAC,OAAO,CAAU;IACzB,OAAO,CAAC,YAAY,CAAC,CAAQ;gBAEjB,OAAO,EAAE,OAAO;IAIf,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC;IAgBxB,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;IAiBrB,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;CAGrC"}
|