@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,292 @@
|
|
|
1
|
+
// ─── Types ────────────────────────────────────────────────────────────────────
|
|
2
|
+
// ─── PresetManager ────────────────────────────────────────────────────────────
|
|
3
|
+
const STORAGE_KEY = 'drop-ai-plugin-presets';
|
|
4
|
+
/**
|
|
5
|
+
* Singleton that manages built-in and custom plugin presets.
|
|
6
|
+
*/
|
|
7
|
+
export class PresetManager {
|
|
8
|
+
constructor() {
|
|
9
|
+
this.builtInPresets = [];
|
|
10
|
+
this.customPresets = [];
|
|
11
|
+
this.initBuiltInPresets();
|
|
12
|
+
this.loadCustomPresets();
|
|
13
|
+
}
|
|
14
|
+
static getInstance() {
|
|
15
|
+
if (!PresetManager.instance) {
|
|
16
|
+
PresetManager.instance = new PresetManager();
|
|
17
|
+
}
|
|
18
|
+
return PresetManager.instance;
|
|
19
|
+
}
|
|
20
|
+
/** For testing – reset singleton */
|
|
21
|
+
static resetInstance() {
|
|
22
|
+
PresetManager.instance = undefined;
|
|
23
|
+
}
|
|
24
|
+
// ─── Query ────────────────────────────────────────────────────────────────
|
|
25
|
+
/**
|
|
26
|
+
* Get all presets (built-in + custom) for a given plugin descriptor ID.
|
|
27
|
+
*/
|
|
28
|
+
getPresetsForPlugin(pluginId) {
|
|
29
|
+
return [
|
|
30
|
+
...this.builtInPresets.filter(p => p.pluginId === pluginId),
|
|
31
|
+
...this.customPresets.filter(p => p.pluginId === pluginId),
|
|
32
|
+
];
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* Get a single preset by ID.
|
|
36
|
+
*/
|
|
37
|
+
getPreset(presetId) {
|
|
38
|
+
var _a;
|
|
39
|
+
return ((_a = this.builtInPresets.find(p => p.id === presetId)) !== null && _a !== void 0 ? _a : this.customPresets.find(p => p.id === presetId));
|
|
40
|
+
}
|
|
41
|
+
// ─── Apply ────────────────────────────────────────────────────────────────
|
|
42
|
+
/**
|
|
43
|
+
* Apply a preset to a plugin processor on a track.
|
|
44
|
+
* The caller is responsible for looking up the correct track / processor.
|
|
45
|
+
* Returns the parameter map so the caller can propagate it.
|
|
46
|
+
*/
|
|
47
|
+
getPresetParameters(presetId) {
|
|
48
|
+
const preset = this.getPreset(presetId);
|
|
49
|
+
if (!preset)
|
|
50
|
+
return null;
|
|
51
|
+
return new Map(preset.parameters);
|
|
52
|
+
}
|
|
53
|
+
// ─── Save / Delete Custom ─────────────────────────────────────────────────
|
|
54
|
+
/**
|
|
55
|
+
* Save a custom preset. Returns the new preset ID.
|
|
56
|
+
*/
|
|
57
|
+
savePreset(name, pluginId, parameters) {
|
|
58
|
+
const id = `custom-${crypto.randomUUID()}`;
|
|
59
|
+
const preset = { id, name, pluginId, parameters };
|
|
60
|
+
this.customPresets.push(preset);
|
|
61
|
+
this.persistCustomPresets();
|
|
62
|
+
return id;
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* Delete a custom preset by ID.
|
|
66
|
+
*/
|
|
67
|
+
deletePreset(presetId) {
|
|
68
|
+
const idx = this.customPresets.findIndex(p => p.id === presetId);
|
|
69
|
+
if (idx === -1)
|
|
70
|
+
return false;
|
|
71
|
+
this.customPresets.splice(idx, 1);
|
|
72
|
+
this.persistCustomPresets();
|
|
73
|
+
return true;
|
|
74
|
+
}
|
|
75
|
+
// ─── Built-In Presets ─────────────────────────────────────────────────────
|
|
76
|
+
initBuiltInPresets() {
|
|
77
|
+
// Reverb presets
|
|
78
|
+
this.builtInPresets.push(makePreset('preset-reverb-small-room', 'Small Room', 'internal-reverb', {
|
|
79
|
+
decay: 0.8, preDelay: 0.005, wet: 0.3,
|
|
80
|
+
}), makePreset('preset-reverb-large-hall', 'Large Hall', 'internal-reverb', {
|
|
81
|
+
decay: 4.0, preDelay: 0.03, wet: 0.5,
|
|
82
|
+
}), makePreset('preset-reverb-plate', 'Plate', 'internal-reverb', {
|
|
83
|
+
decay: 2.0, preDelay: 0.01, wet: 0.45,
|
|
84
|
+
}));
|
|
85
|
+
// Delay presets
|
|
86
|
+
this.builtInPresets.push(makePreset('preset-delay-slapback', 'Slapback', 'internal-delay', {
|
|
87
|
+
delayTime: 0.08, feedback: 0.1, wet: 0.4,
|
|
88
|
+
}), makePreset('preset-delay-quarter', 'Quarter Note', 'internal-delay', {
|
|
89
|
+
delayTime: 0.5, feedback: 0.35, wet: 0.35,
|
|
90
|
+
}), makePreset('preset-delay-long', 'Long Echo', 'internal-delay', {
|
|
91
|
+
delayTime: 1.0, feedback: 0.6, wet: 0.3,
|
|
92
|
+
}));
|
|
93
|
+
// EQ presets
|
|
94
|
+
this.builtInPresets.push(makePreset('preset-eq3-vocal', 'Vocal Presence', 'internal-eq3', {
|
|
95
|
+
lowFreq: 150, lowGain: -3, midFreq: 2500, midGain: 4, midQ: 1.5,
|
|
96
|
+
highFreq: 8000, highGain: 2,
|
|
97
|
+
}), makePreset('preset-eq3-bass-cut', 'Bass Cut', 'internal-eq3', {
|
|
98
|
+
lowFreq: 200, lowGain: -12, midFreq: 1000, midGain: 0, midQ: 1,
|
|
99
|
+
highFreq: 5000, highGain: 0,
|
|
100
|
+
}));
|
|
101
|
+
// Compressor presets
|
|
102
|
+
this.builtInPresets.push(makePreset('preset-comp-gentle', 'Gentle', 'internal-compressor', {
|
|
103
|
+
threshold: -18, ratio: 2, attack: 0.01, release: 0.2, knee: 30, makeupGain: 3,
|
|
104
|
+
}), makePreset('preset-comp-aggressive', 'Aggressive', 'internal-compressor', {
|
|
105
|
+
threshold: -30, ratio: 8, attack: 0.001, release: 0.1, knee: 10, makeupGain: 8,
|
|
106
|
+
}), makePreset('preset-comp-limiter', 'Limiter', 'internal-compressor', {
|
|
107
|
+
threshold: -6, ratio: 20, attack: 0.0005, release: 0.05, knee: 0, makeupGain: 0,
|
|
108
|
+
}));
|
|
109
|
+
// Chorus presets
|
|
110
|
+
this.builtInPresets.push(makePreset('preset-chorus-subtle', 'Subtle', 'internal-chorus', {
|
|
111
|
+
frequency: 0.5, delayTime: 3, depth: 0.3, wet: 0.3,
|
|
112
|
+
}), makePreset('preset-chorus-wide', 'Wide', 'internal-chorus', {
|
|
113
|
+
frequency: 1.2, delayTime: 5, depth: 0.8, wet: 0.5,
|
|
114
|
+
}));
|
|
115
|
+
// Distortion presets
|
|
116
|
+
this.builtInPresets.push(makePreset('preset-distortion-light', 'Light Overdrive', 'internal-distortion', {
|
|
117
|
+
distortion: 0.15, wet: 0.8,
|
|
118
|
+
}), makePreset('preset-distortion-heavy', 'Heavy', 'internal-distortion', {
|
|
119
|
+
distortion: 0.7, wet: 1,
|
|
120
|
+
}));
|
|
121
|
+
// Filter presets
|
|
122
|
+
this.builtInPresets.push(makePreset('preset-filter-lowpass', 'Warm Lowpass', 'internal-filter', {
|
|
123
|
+
frequency: 800, Q: 0.7, type: 0,
|
|
124
|
+
}), makePreset('preset-filter-highpass', 'High Pass', 'internal-filter', {
|
|
125
|
+
frequency: 300, Q: 0.7, type: 1,
|
|
126
|
+
}));
|
|
127
|
+
// 6-Band EQ presets
|
|
128
|
+
this.builtInPresets.push(makePreset('preset-eq6-vocal', 'Vocal Clarity', 'internal-eq6', {
|
|
129
|
+
band1Freq: 100, band1Gain: -3,
|
|
130
|
+
band2Freq: 300, band2Gain: -2, band2Q: 1.5,
|
|
131
|
+
band3Freq: 2000, band3Gain: 3, band3Q: 1.2,
|
|
132
|
+
band4Freq: 4000, band4Gain: 2, band4Q: 1,
|
|
133
|
+
band5Freq: 8000, band5Gain: 1, band5Q: 0.8,
|
|
134
|
+
band6Freq: 12000, band6Gain: 2,
|
|
135
|
+
}), makePreset('preset-eq6-bass-boost', 'Bass Boost', 'internal-eq6', {
|
|
136
|
+
band1Freq: 80, band1Gain: 6,
|
|
137
|
+
band2Freq: 200, band2Gain: 3, band2Q: 1,
|
|
138
|
+
band3Freq: 1000, band3Gain: 0, band3Q: 1,
|
|
139
|
+
band4Freq: 2500, band4Gain: 0, band4Q: 1,
|
|
140
|
+
band5Freq: 6300, band5Gain: 0, band5Q: 1,
|
|
141
|
+
band6Freq: 9000, band6Gain: -2,
|
|
142
|
+
}), makePreset('preset-eq6-bright', 'Bright', 'internal-eq6', {
|
|
143
|
+
band1Freq: 160, band1Gain: -2,
|
|
144
|
+
band2Freq: 397, band2Gain: 0, band2Q: 1,
|
|
145
|
+
band3Freq: 1000, band3Gain: 0, band3Q: 1,
|
|
146
|
+
band4Freq: 3000, band4Gain: 2, band4Q: 1,
|
|
147
|
+
band5Freq: 8000, band5Gain: 4, band5Q: 0.7,
|
|
148
|
+
band6Freq: 12000, band6Gain: 5,
|
|
149
|
+
}));
|
|
150
|
+
// Gate presets
|
|
151
|
+
this.builtInPresets.push(makePreset('preset-gate-gentle', 'Gentle', 'internal-gate', {
|
|
152
|
+
threshold: -50, smoothing: 0.1,
|
|
153
|
+
}), makePreset('preset-gate-tight', 'Tight', 'internal-gate', {
|
|
154
|
+
threshold: -30, smoothing: 0.01,
|
|
155
|
+
}), makePreset('preset-gate-drum', 'Drum Gate', 'internal-gate', {
|
|
156
|
+
threshold: -25, smoothing: 0.005,
|
|
157
|
+
}));
|
|
158
|
+
// Multiband Compressor presets
|
|
159
|
+
this.builtInPresets.push(makePreset('preset-mbc-master', 'Mastering', 'internal-multiband-comp', {
|
|
160
|
+
lowThreshold: -18, lowRatio: 2, lowAttack: 0.01, lowRelease: 0.2,
|
|
161
|
+
midThreshold: -20, midRatio: 3, midAttack: 0.005, midRelease: 0.15,
|
|
162
|
+
highThreshold: -22, highRatio: 3, highAttack: 0.003, highRelease: 0.1,
|
|
163
|
+
lowFrequency: 200, highFrequency: 4000,
|
|
164
|
+
}), makePreset('preset-mbc-balanced', 'Balanced', 'internal-multiband-comp', {
|
|
165
|
+
lowThreshold: -24, lowRatio: 4, lowAttack: 0.003, lowRelease: 0.25,
|
|
166
|
+
midThreshold: -24, midRatio: 4, midAttack: 0.003, midRelease: 0.25,
|
|
167
|
+
highThreshold: -24, highRatio: 4, highAttack: 0.003, highRelease: 0.25,
|
|
168
|
+
lowFrequency: 250, highFrequency: 4000,
|
|
169
|
+
}));
|
|
170
|
+
// Phaser presets
|
|
171
|
+
this.builtInPresets.push(makePreset('preset-phaser-slow', 'Slow Sweep', 'internal-phaser', {
|
|
172
|
+
frequency: 0.3, octaves: 3, baseFrequency: 350, wet: 0.5,
|
|
173
|
+
}), makePreset('preset-phaser-fast', 'Fast Phase', 'internal-phaser', {
|
|
174
|
+
frequency: 2, octaves: 2, baseFrequency: 500, wet: 0.6,
|
|
175
|
+
}));
|
|
176
|
+
// Tremolo presets
|
|
177
|
+
this.builtInPresets.push(makePreset('preset-tremolo-gentle', 'Gentle', 'internal-tremolo', {
|
|
178
|
+
frequency: 3, depth: 0.3, type: 0, wet: 1,
|
|
179
|
+
}), makePreset('preset-tremolo-choppy', 'Choppy', 'internal-tremolo', {
|
|
180
|
+
frequency: 8, depth: 0.8, type: 1, wet: 1,
|
|
181
|
+
}));
|
|
182
|
+
// Vibrato presets
|
|
183
|
+
this.builtInPresets.push(makePreset('preset-vibrato-subtle', 'Subtle', 'internal-vibrato', {
|
|
184
|
+
frequency: 5, depth: 0.05, wet: 1,
|
|
185
|
+
}), makePreset('preset-vibrato-wide', 'Wide', 'internal-vibrato', {
|
|
186
|
+
frequency: 6, depth: 0.2, wet: 0.8,
|
|
187
|
+
}));
|
|
188
|
+
// Auto-Pan presets
|
|
189
|
+
this.builtInPresets.push(makePreset('preset-autopan-slow', 'Slow Pan', 'internal-autopan', {
|
|
190
|
+
frequency: 0.5, depth: 0.8, wet: 1,
|
|
191
|
+
}), makePreset('preset-autopan-fast', 'Fast Pan', 'internal-autopan', {
|
|
192
|
+
frequency: 4, depth: 1, wet: 1,
|
|
193
|
+
}));
|
|
194
|
+
// Tape Saturation presets
|
|
195
|
+
this.builtInPresets.push(makePreset('preset-tape-warm', 'Warm', 'internal-tape-sat', {
|
|
196
|
+
order: 2, wet: 0.3,
|
|
197
|
+
}), makePreset('preset-tape-hot', 'Hot', 'internal-tape-sat', {
|
|
198
|
+
order: 4, wet: 0.5,
|
|
199
|
+
}), makePreset('preset-tape-saturated', 'Saturated', 'internal-tape-sat', {
|
|
200
|
+
drive: 0.9, warmth: 0.8, saturation: 0.85, wet: 0.7,
|
|
201
|
+
}));
|
|
202
|
+
// 6-Band Parametric EQ presets (G-1)
|
|
203
|
+
this.builtInPresets.push(makePreset('preset-eq6-flat', 'Flat', 'internal-eq6', {
|
|
204
|
+
band1Freq: 160, band1Gain: 0, band2Freq: 397, band2Gain: 0, band2Q: 1,
|
|
205
|
+
band3Freq: 1000, band3Gain: 0, band3Q: 1, band4Freq: 2500, band4Gain: 0, band4Q: 1,
|
|
206
|
+
band5Freq: 6300, band5Gain: 0, band5Q: 1, band6Freq: 9000, band6Gain: 0,
|
|
207
|
+
}), makePreset('preset-eq6-vocal', 'Vocal Presence', 'internal-eq6', {
|
|
208
|
+
band1Freq: 120, band1Gain: -4, band2Freq: 300, band2Gain: -2, band2Q: 1.5,
|
|
209
|
+
band3Freq: 2000, band3Gain: 3, band3Q: 1.2, band4Freq: 3500, band4Gain: 4, band4Q: 1.5,
|
|
210
|
+
band5Freq: 8000, band5Gain: 2, band5Q: 1, band6Freq: 12000, band6Gain: 1.5,
|
|
211
|
+
}), makePreset('preset-eq6-bass-boost', 'Bass Boost', 'internal-eq6', {
|
|
212
|
+
band1Freq: 80, band1Gain: 6, band2Freq: 250, band2Gain: 3, band2Q: 0.8,
|
|
213
|
+
band3Freq: 1000, band3Gain: 0, band3Q: 1, band4Freq: 2500, band4Gain: 0, band4Q: 1,
|
|
214
|
+
band5Freq: 6300, band5Gain: 0, band5Q: 1, band6Freq: 9000, band6Gain: -2,
|
|
215
|
+
}));
|
|
216
|
+
// Expander / Gate presets (G-3)
|
|
217
|
+
this.builtInPresets.push(makePreset('preset-exp-gentle', 'Gentle Expansion', 'internal-expander', { threshold: -30, ratio: 2, attack: 10, release: 100, knee: 6, range: -20 }), makePreset('preset-gate-noise', 'Noise Gate', 'internal-gate', { threshold: -40, ratio: 20, attack: 0.5, release: 50, knee: 0, range: -90 }), makePreset('preset-gate-drum', 'Drum Gate', 'internal-gate', { threshold: -20, ratio: 20, attack: 0.1, release: 50, knee: 0, range: -90 }));
|
|
218
|
+
// Phaser presets (G-6)
|
|
219
|
+
this.builtInPresets.push(makePreset('preset-phaser-subtle', 'Subtle Sweep', 'internal-phaser', { rate: 0.4, depth: 0.3, baseFrequency: 800, wet: 0.35 }), makePreset('preset-phaser-deep', 'Deep Phase', 'internal-phaser', { rate: 1.2, depth: 0.8, baseFrequency: 1200, wet: 0.6 }));
|
|
220
|
+
// Tremolo presets (G-6)
|
|
221
|
+
this.builtInPresets.push(makePreset('preset-tremolo-gentle', 'Gentle Tremolo', 'internal-tremolo', { rate: 3.0, depth: 0.3, type: 0, wet: 1.0 }), makePreset('preset-tremolo-fast', 'Fast Chop', 'internal-tremolo', { rate: 12.0, depth: 0.9, type: 1, wet: 1.0 }));
|
|
222
|
+
// Vibrato presets (G-6)
|
|
223
|
+
this.builtInPresets.push(makePreset('preset-vibrato-light', 'Light Vibrato', 'internal-vibrato', { rate: 4.0, depth: 0.05, wet: 1.0 }), makePreset('preset-vibrato-heavy', 'Heavy Vibrato', 'internal-vibrato', { rate: 6.0, depth: 0.2, wet: 1.0 }));
|
|
224
|
+
// Auto-Pan presets (G-6)
|
|
225
|
+
this.builtInPresets.push(makePreset('preset-autopan-slow', 'Slow Pan', 'internal-autopan', { rate: 0.5, depth: 0.8, type: 0 }), makePreset('preset-autopan-fast', 'Fast Pan', 'internal-autopan', { rate: 4.0, depth: 1.0, type: 0 }));
|
|
226
|
+
// Sync Delay presets (G-7)
|
|
227
|
+
this.builtInPresets.push(makePreset('preset-syncdelay-quarter', 'Quarter Note', 'internal-sync-delay', { sync: 1, divisor: 0, feedback: 0.3, lpf: 8000, wet: 0.4 }), makePreset('preset-syncdelay-eighth', 'Eighth Note', 'internal-sync-delay', { sync: 1, divisor: 1, feedback: 0.35, lpf: 6000, wet: 0.35 }), makePreset('preset-syncdelay-dotted', 'Dotted Eighth', 'internal-sync-delay', { sync: 1, divisor: 3, feedback: 0.4, lpf: 5000, wet: 0.3 }));
|
|
228
|
+
// Convolution Reverb presets (G-8)
|
|
229
|
+
this.builtInPresets.push(makePreset('preset-conv-room', 'Small Room', 'internal-convolver', { wet: 0.3, preDelay: 5, irType: 0 }), makePreset('preset-conv-hall', 'Concert Hall', 'internal-convolver', { wet: 0.4, preDelay: 20, irType: 1 }), makePreset('preset-conv-plate', 'Plate Reverb', 'internal-convolver', { wet: 0.35, preDelay: 0, irType: 2 }));
|
|
230
|
+
// De-Esser presets (I-1)
|
|
231
|
+
this.builtInPresets.push(makePreset('preset-deesser-subtle', 'Subtle', 'internal-deesser', { frequency: 6000, threshold: -15, reduction: 4, listenMode: 0 }), makePreset('preset-deesser-moderate', 'Moderate', 'internal-deesser', { frequency: 6500, threshold: -20, reduction: 8, listenMode: 0 }), makePreset('preset-deesser-aggressive', 'Aggressive', 'internal-deesser', { frequency: 7000, threshold: -28, reduction: 14, listenMode: 0 }));
|
|
232
|
+
// Multiband Compressor presets (I-2)
|
|
233
|
+
this.builtInPresets.push(makePreset('preset-mbcomp-mastering', 'Mastering', 'internal-multiband-comp', {
|
|
234
|
+
lowFrequency: 200, highFrequency: 4000,
|
|
235
|
+
lowThreshold: -18, lowRatio: 2, lowAttack: 0.02, lowRelease: 0.3,
|
|
236
|
+
midThreshold: -16, midRatio: 2, midAttack: 0.008, midRelease: 0.2,
|
|
237
|
+
highThreshold: -14, highRatio: 1.5, highAttack: 0.005, highRelease: 0.15,
|
|
238
|
+
}), makePreset('preset-mbcomp-gentle', 'Gentle', 'internal-multiband-comp', {
|
|
239
|
+
lowFrequency: 250, highFrequency: 3500,
|
|
240
|
+
lowThreshold: -24, lowRatio: 1.5, lowAttack: 0.03, lowRelease: 0.4,
|
|
241
|
+
midThreshold: -22, midRatio: 1.5, midAttack: 0.015, midRelease: 0.3,
|
|
242
|
+
highThreshold: -20, highRatio: 1.5, highAttack: 0.008, highRelease: 0.2,
|
|
243
|
+
}));
|
|
244
|
+
}
|
|
245
|
+
// ─── Persistence (localStorage) ───────────────────────────────────────────
|
|
246
|
+
persistCustomPresets() {
|
|
247
|
+
try {
|
|
248
|
+
if (typeof localStorage === 'undefined')
|
|
249
|
+
return;
|
|
250
|
+
const snapshots = this.customPresets.map(p => ({
|
|
251
|
+
id: p.id,
|
|
252
|
+
name: p.name,
|
|
253
|
+
pluginId: p.pluginId,
|
|
254
|
+
parameters: Object.fromEntries(p.parameters),
|
|
255
|
+
}));
|
|
256
|
+
localStorage.setItem(STORAGE_KEY, JSON.stringify(snapshots));
|
|
257
|
+
}
|
|
258
|
+
catch (_a) {
|
|
259
|
+
// localStorage unavailable or quota exceeded – silently ignore
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
loadCustomPresets() {
|
|
263
|
+
try {
|
|
264
|
+
if (typeof localStorage === 'undefined')
|
|
265
|
+
return;
|
|
266
|
+
const raw = localStorage.getItem(STORAGE_KEY);
|
|
267
|
+
if (!raw)
|
|
268
|
+
return;
|
|
269
|
+
const snapshots = JSON.parse(raw);
|
|
270
|
+
this.customPresets = snapshots.map(s => ({
|
|
271
|
+
id: s.id,
|
|
272
|
+
name: s.name,
|
|
273
|
+
pluginId: s.pluginId,
|
|
274
|
+
parameters: new Map(Object.entries(s.parameters)),
|
|
275
|
+
}));
|
|
276
|
+
}
|
|
277
|
+
catch (_a) {
|
|
278
|
+
// Corrupted data – start fresh
|
|
279
|
+
this.customPresets = [];
|
|
280
|
+
}
|
|
281
|
+
}
|
|
282
|
+
}
|
|
283
|
+
// ─── Helper ───────────────────────────────────────────────────────────────────
|
|
284
|
+
function makePreset(id, name, pluginId, params) {
|
|
285
|
+
return {
|
|
286
|
+
id,
|
|
287
|
+
name,
|
|
288
|
+
pluginId,
|
|
289
|
+
parameters: new Map(Object.entries(params)),
|
|
290
|
+
};
|
|
291
|
+
}
|
|
292
|
+
//# sourceMappingURL=PluginPreset.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PluginPreset.js","sourceRoot":"","sources":["../../src/plugins/PluginPreset.ts"],"names":[],"mappings":"AAAA,iFAAiF;AAgBjF,iFAAiF;AAEjF,MAAM,WAAW,GAAG,wBAAwB,CAAC;AAE7C;;GAEG;AACH,MAAM,OAAO,aAAa;IAKtB;QAHQ,mBAAc,GAAmB,EAAE,CAAC;QACpC,kBAAa,GAAmB,EAAE,CAAC;QAGvC,IAAI,CAAC,kBAAkB,EAAE,CAAC;QAC1B,IAAI,CAAC,iBAAiB,EAAE,CAAC;IAC7B,CAAC;IAEM,MAAM,CAA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,EAAE,CAAC,CAAC,IAAI;gBACZ,QAAQ,EAAE,CAAC,CAAC,QAAQ;gBACpB,UAAU,EAAE,IAAI,GAAG,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC;aACpD,CAAC,CAAC,CAAC;QACR,CAAC;QAAC,WAAM,CAAC;YACL,+BAA+B;YAC/B,IAAI,CAAC,aAAa,GAAG,EAAE,CAAC;QAC5B,CAAC;IACL,CAAC;CACJ;AAED,iFAAiF;AAEjF,SAAS,UAAU,CACf,EAAU,EACV,IAAY,EACZ,QAAgB,EAChB,MAA8B;IAE9B,OAAO;QACH,EAAE;QACF,IAAI;QACJ,QAAQ;QACR,UAAU,EAAE,IAAI,GAAG,CAAC,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC;KAC9C,CAAC;AACN,CAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { Plugin, PluginId, PluginType, PluginParameter, ParameterId } from '../Plugin';
|
|
2
|
+
import { Signal } from '../../lib/Signal';
|
|
3
|
+
/**
|
|
4
|
+
* Auto-Pan modulation effect plugin.
|
|
5
|
+
*
|
|
6
|
+
* Parameters:
|
|
7
|
+
* - rate: LFO speed (0.1 – 10 Hz)
|
|
8
|
+
* - depth: modulation depth (0 – 1)
|
|
9
|
+
* - type: LFO waveform (0 = sine, 1 = square, 2 = triangle)
|
|
10
|
+
*/
|
|
11
|
+
export declare class AutoPanPlugin implements Plugin {
|
|
12
|
+
readonly id: PluginId;
|
|
13
|
+
name: string;
|
|
14
|
+
readonly type: PluginType;
|
|
15
|
+
readonly parameterChanged: Signal<{
|
|
16
|
+
id: ParameterId;
|
|
17
|
+
value: number;
|
|
18
|
+
}>;
|
|
19
|
+
private parameters;
|
|
20
|
+
constructor(id: PluginId, name: string, type: PluginType);
|
|
21
|
+
addParameter(param: PluginParameter): void;
|
|
22
|
+
getParameters(): ReadonlyArray<PluginParameter>;
|
|
23
|
+
getParameter(id: ParameterId): PluginParameter | undefined;
|
|
24
|
+
setParameter(id: ParameterId, value: number): void;
|
|
25
|
+
getState(): Record<string, number>;
|
|
26
|
+
setState(state: Record<string, number>): void;
|
|
27
|
+
}
|
|
28
|
+
//# sourceMappingURL=AutoPanPlugin.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AutoPanPlugin.d.ts","sourceRoot":"","sources":["../../../src/plugins/impl/AutoPanPlugin.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,UAAU,EAAE,eAAe,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AACvF,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAE1C;;;;;;;GAOG;AACH,qBAAa,aAAc,YAAW,MAAM;IACxC,SAAgB,EAAE,EAAE,QAAQ,CAAC;IACtB,IAAI,EAAE,MAAM,CAAC;IACpB,SAAgB,IAAI,EAAE,UAAU,CAAC;IAEjC,SAAgB,gBAAgB;YAAoB,WAAW;eAAS,MAAM;OAAM;IAEpF,OAAO,CAAC,UAAU,CAAgD;gBAEtD,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,UAAU;IAUjD,YAAY,CAAC,KAAK,EAAE,eAAe,GAAG,IAAI;IAI1C,aAAa,IAAI,aAAa,CAAC,eAAe,CAAC;IAI/C,YAAY,CAAC,EAAE,EAAE,WAAW,GAAG,eAAe,GAAG,SAAS;IAI1D,YAAY,CAAC,EAAE,EAAE,WAAW,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI;IAQlD,QAAQ,IAAI,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC;IAMlC,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,IAAI;CAKvD"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { Signal } from '../../lib/Signal';
|
|
2
|
+
/**
|
|
3
|
+
* Auto-Pan modulation effect plugin.
|
|
4
|
+
*
|
|
5
|
+
* Parameters:
|
|
6
|
+
* - rate: LFO speed (0.1 – 10 Hz)
|
|
7
|
+
* - depth: modulation depth (0 – 1)
|
|
8
|
+
* - type: LFO waveform (0 = sine, 1 = square, 2 = triangle)
|
|
9
|
+
*/
|
|
10
|
+
export class AutoPanPlugin {
|
|
11
|
+
constructor(id, name, type) {
|
|
12
|
+
this.parameterChanged = new Signal();
|
|
13
|
+
this.parameters = new Map();
|
|
14
|
+
this.id = id;
|
|
15
|
+
this.name = name;
|
|
16
|
+
this.type = type;
|
|
17
|
+
this.addParameter({ id: 'rate', name: 'Rate', value: 1.0, min: 0.1, max: 10, step: 0.1 });
|
|
18
|
+
this.addParameter({ id: 'depth', name: 'Depth', value: 0.8, min: 0, max: 1, step: 0.01 });
|
|
19
|
+
this.addParameter({ id: 'type', name: 'Type', value: 0, min: 0, max: 2, step: 1 });
|
|
20
|
+
}
|
|
21
|
+
addParameter(param) {
|
|
22
|
+
this.parameters.set(param.id, param);
|
|
23
|
+
}
|
|
24
|
+
getParameters() {
|
|
25
|
+
return Array.from(this.parameters.values());
|
|
26
|
+
}
|
|
27
|
+
getParameter(id) {
|
|
28
|
+
return this.parameters.get(id);
|
|
29
|
+
}
|
|
30
|
+
setParameter(id, value) {
|
|
31
|
+
const param = this.parameters.get(id);
|
|
32
|
+
if (param) {
|
|
33
|
+
param.value = Math.max(param.min, Math.min(param.max, value));
|
|
34
|
+
this.parameterChanged.emit({ id, value: param.value });
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
getState() {
|
|
38
|
+
const state = {};
|
|
39
|
+
this.parameters.forEach((p, k) => (state[k] = p.value));
|
|
40
|
+
return state;
|
|
41
|
+
}
|
|
42
|
+
setState(state) {
|
|
43
|
+
for (const key in state) {
|
|
44
|
+
this.setParameter(key, state[key]);
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
//# sourceMappingURL=AutoPanPlugin.js.map
|
|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AC,IAAI,CAAC,UAAU,CAAC,MAAM,EAAE,CAAC,CAAC;IAChD,CAAC;IAEM,YAAY,CAAC,EAAe;QAC/B,OAAO,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;IACnC,CAAC;IAEM,YAAY,CAAC,EAAe,EAAE,KAAa;QAC9C,MAAM,KAAK,GAAG,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;QACtC,IAAI,KAAK,EAAE,CAAC;YACR,KAAK,CAAC,KAAK,GAAG,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,GAAG,EAAE,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC,CAAC;YAC9D,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC,EAAE,EAAE,EAAE,KAAK,EAAE,KAAK,CAAC,KAAK,EAAE,CAAC,CAAC;QAC3D,CAAC;IACL,CAAC;IAEM,QAAQ;QACX,MAAM,KAAK,GAA2B,EAAE,CAAC;QACzC,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC;QACxD,OAAO,KAAK,CAAC;IACjB,CAAC;IAEM,QAAQ,CAAC,KAA6B;QACzC,KAAK,MAAM,GAAG,IAAI,KAAK,EAAE,CAAC;YACtB,IAAI,CAAC,YAAY,CAAC,GAAG,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC;QACvC,CAAC;IACL,CAAC;CACJ"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { Plugin, PluginId, PluginType, PluginParameter, ParameterId } from '../Plugin';
|
|
2
|
+
import { Signal } from '../../lib/Signal';
|
|
3
|
+
/**
|
|
4
|
+
* Convolution Reverb plugin (metadata-only).
|
|
5
|
+
*
|
|
6
|
+
* Actual convolution processing requires impulse-response (IR) buffer loading
|
|
7
|
+
* in the audio backend. This plugin exposes the parameter model so the UI and
|
|
8
|
+
* preset system can drive the backend.
|
|
9
|
+
*
|
|
10
|
+
* Parameters:
|
|
11
|
+
* - wet: dry/wet mix (0 – 1)
|
|
12
|
+
* - preDelay: pre-delay in milliseconds (0 – 100)
|
|
13
|
+
* - irType: impulse response type selector
|
|
14
|
+
* 0 = small_room, 1 = hall, 2 = plate, 3 = chamber
|
|
15
|
+
*/
|
|
16
|
+
export declare class ConvolutionReverbPlugin implements Plugin {
|
|
17
|
+
readonly id: PluginId;
|
|
18
|
+
name: string;
|
|
19
|
+
readonly type: PluginType;
|
|
20
|
+
readonly parameterChanged: Signal<{
|
|
21
|
+
id: ParameterId;
|
|
22
|
+
value: number;
|
|
23
|
+
}>;
|
|
24
|
+
private parameters;
|
|
25
|
+
constructor(id: PluginId, name: string, type: PluginType);
|
|
26
|
+
/** Human-readable label for the current IR type. */
|
|
27
|
+
static irTypeLabel(irType: number): string;
|
|
28
|
+
addParameter(param: PluginParameter): void;
|
|
29
|
+
getParameters(): ReadonlyArray<PluginParameter>;
|
|
30
|
+
getParameter(id: ParameterId): PluginParameter | undefined;
|
|
31
|
+
setParameter(id: ParameterId, value: number): void;
|
|
32
|
+
getState(): Record<string, number>;
|
|
33
|
+
setState(state: Record<string, number>): void;
|
|
34
|
+
}
|
|
35
|
+
//# sourceMappingURL=ConvolutionReverbPlugin.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ConvolutionReverbPlugin.d.ts","sourceRoot":"","sources":["../../../src/plugins/impl/ConvolutionReverbPlugin.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,UAAU,EAAE,eAAe,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AACvF,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAE1C;;;;;;;;;;;;GAYG;AACH,qBAAa,uBAAwB,YAAW,MAAM;IAClD,SAAgB,EAAE,EAAE,QAAQ,CAAC;IACtB,IAAI,EAAE,MAAM,CAAC;IACpB,SAAgB,IAAI,EAAE,UAAU,CAAC;IAEjC,SAAgB,gBAAgB;YAAoB,WAAW;eAAS,MAAM;OAAM;IAEpF,OAAO,CAAC,UAAU,CAAgD;gBAEtD,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,UAAU;IAYxD,oDAAoD;WACtC,WAAW,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM;IAY1C,YAAY,CAAC,KAAK,EAAE,eAAe,GAAG,IAAI;IAI1C,aAAa,IAAI,aAAa,CAAC,eAAe,CAAC;IAI/C,YAAY,CAAC,EAAE,EAAE,WAAW,GAAG,eAAe,GAAG,SAAS;IAI1D,YAAY,CAAC,EAAE,EAAE,WAAW,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI;IAQlD,QAAQ,IAAI,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC;IAMlC,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,IAAI;CAKvD"}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { Signal } from '../../lib/Signal';
|
|
2
|
+
/**
|
|
3
|
+
* Convolution Reverb plugin (metadata-only).
|
|
4
|
+
*
|
|
5
|
+
* Actual convolution processing requires impulse-response (IR) buffer loading
|
|
6
|
+
* in the audio backend. This plugin exposes the parameter model so the UI and
|
|
7
|
+
* preset system can drive the backend.
|
|
8
|
+
*
|
|
9
|
+
* Parameters:
|
|
10
|
+
* - wet: dry/wet mix (0 – 1)
|
|
11
|
+
* - preDelay: pre-delay in milliseconds (0 – 100)
|
|
12
|
+
* - irType: impulse response type selector
|
|
13
|
+
* 0 = small_room, 1 = hall, 2 = plate, 3 = chamber
|
|
14
|
+
*/
|
|
15
|
+
export class ConvolutionReverbPlugin {
|
|
16
|
+
constructor(id, name, type) {
|
|
17
|
+
this.parameterChanged = new Signal();
|
|
18
|
+
this.parameters = new Map();
|
|
19
|
+
this.id = id;
|
|
20
|
+
this.name = name;
|
|
21
|
+
this.type = type;
|
|
22
|
+
this.addParameter({ id: 'wet', name: 'Wet', value: 0.4, min: 0, max: 1, step: 0.01 });
|
|
23
|
+
this.addParameter({ id: 'preDelay', name: 'Pre-Delay', value: 10, min: 0, max: 100, step: 1 });
|
|
24
|
+
this.addParameter({ id: 'irType', name: 'IR Type', value: 0, min: 0, max: 3, step: 1 });
|
|
25
|
+
}
|
|
26
|
+
// ── Convenience ────────────────────────────────────────────────────────────
|
|
27
|
+
/** Human-readable label for the current IR type. */
|
|
28
|
+
static irTypeLabel(irType) {
|
|
29
|
+
switch (Math.round(irType)) {
|
|
30
|
+
case 0: return 'Small Room';
|
|
31
|
+
case 1: return 'Hall';
|
|
32
|
+
case 2: return 'Plate';
|
|
33
|
+
case 3: return 'Chamber';
|
|
34
|
+
default: return 'Unknown';
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
// ── Plugin interface ───────────────────────────────────────────────────────
|
|
38
|
+
addParameter(param) {
|
|
39
|
+
this.parameters.set(param.id, param);
|
|
40
|
+
}
|
|
41
|
+
getParameters() {
|
|
42
|
+
return Array.from(this.parameters.values());
|
|
43
|
+
}
|
|
44
|
+
getParameter(id) {
|
|
45
|
+
return this.parameters.get(id);
|
|
46
|
+
}
|
|
47
|
+
setParameter(id, value) {
|
|
48
|
+
const param = this.parameters.get(id);
|
|
49
|
+
if (param) {
|
|
50
|
+
param.value = Math.max(param.min, Math.min(param.max, value));
|
|
51
|
+
this.parameterChanged.emit({ id, value: param.value });
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
getState() {
|
|
55
|
+
const state = {};
|
|
56
|
+
this.parameters.forEach((p, k) => (state[k] = p.value));
|
|
57
|
+
return state;
|
|
58
|
+
}
|
|
59
|
+
setState(state) {
|
|
60
|
+
for (const key in state) {
|
|
61
|
+
this.setParameter(key, state[key]);
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
//# sourceMappingURL=ConvolutionReverbPlugin.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ConvolutionReverbPlugin.js","sourceRoot":"","sources":["../../../src/plugins/impl/ConvolutionReverbPlugin.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAE1C;;;;;;;;;;;;GAYG;AACH,MAAM,OAAO,uBAAuB;IAShC,YAAY,EAAY,EAAE,IAAY,EAAE,IAAgB;QAJxC,qBAAgB,GAAG,IAAI,MAAM,EAAsC,CAAC;QAE5E,eAAU,GAAsC,IAAI,GAAG,EAAE,CAAC;QAG9D,IAAI,CAAC,EAAE,GAAG,EAAE,CAAC;QACb,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QAEjB,IAAI,CAAC,YAAY,CAAC,EAAE,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,CAAC;QACtF,IAAI,CAAC,YAAY,CAAC,EAAE,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,WAAW,EAAE,KAAK,EAAE,EAAE,EAAE,GAAG,EAAE,CAAC,EAAE,GAAG,EAAE,GAAG,EAAE,IAAI,EAAE,CAAC,EAAE,CAAC,CAAC;QAC/F,IAAI,CAAC,YAAY,CAAC,EAAE,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,SAAS,EAAE,KAAK,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,CAAC,CAAC;IAC5F,CAAC;IAED,8EAA8E;IAE9E,oDAAoD;IAC7C,MAAM,CAAC,WAAW,C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EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC;QACxD,OAAO,KAAK,CAAC;IACjB,CAAC;IAEM,QAAQ,CAAC,KAA6B;QACzC,KAAK,MAAM,GAAG,IAAI,KAAK,EAAE,CAAC;YACtB,IAAI,CAAC,YAAY,CAAC,GAAG,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC;QACvC,CAAC;IACL,CAAC;CACJ"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { Plugin, PluginId, PluginType, PluginParameter, ParameterId } from '../Plugin';
|
|
2
|
+
import { Signal } from '../../lib/Signal';
|
|
3
|
+
/**
|
|
4
|
+
* De-Esser Plugin (I-1)
|
|
5
|
+
*
|
|
6
|
+
* Reduces sibilance in vocal recordings by applying dynamic gain reduction
|
|
7
|
+
* to a narrow frequency band (typically 2-12 kHz).
|
|
8
|
+
*
|
|
9
|
+
* Parameters:
|
|
10
|
+
* - frequency: Center frequency of the sibilance band (2000-12000 Hz)
|
|
11
|
+
* - threshold: Level above which reduction is applied (-40 to 0 dB)
|
|
12
|
+
* - reduction: Amount of gain reduction to apply (0-20 dB)
|
|
13
|
+
* - listenMode: Solo the sibilance band for monitoring (0=off, 1=on)
|
|
14
|
+
*
|
|
15
|
+
* Registered as: internal-deesser
|
|
16
|
+
*/
|
|
17
|
+
export declare class DeEsserPlugin implements Plugin {
|
|
18
|
+
readonly id: PluginId;
|
|
19
|
+
name: string;
|
|
20
|
+
readonly type: PluginType;
|
|
21
|
+
readonly parameterChanged: Signal<{
|
|
22
|
+
id: ParameterId;
|
|
23
|
+
value: number;
|
|
24
|
+
}>;
|
|
25
|
+
private parameters;
|
|
26
|
+
constructor(id: PluginId, name?: string, type?: PluginType);
|
|
27
|
+
private initParameters;
|
|
28
|
+
addParameter(param: PluginParameter): void;
|
|
29
|
+
getParameters(): ReadonlyArray<PluginParameter>;
|
|
30
|
+
getParameter(id: ParameterId): PluginParameter | undefined;
|
|
31
|
+
setParameter(id: ParameterId, value: number): void;
|
|
32
|
+
getState(): Record<string, number>;
|
|
33
|
+
setState(state: Record<string, number>): void;
|
|
34
|
+
}
|
|
35
|
+
//# sourceMappingURL=DeEsserPlugin.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DeEsserPlugin.d.ts","sourceRoot":"","sources":["../../../src/plugins/impl/DeEsserPlugin.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,UAAU,EAAE,eAAe,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AACvF,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAE1C;;;;;;;;;;;;;GAaG;AACH,qBAAa,aAAc,YAAW,MAAM;IACxC,SAAgB,EAAE,EAAE,QAAQ,CAAC;IACtB,IAAI,EAAE,MAAM,CAAC;IACpB,SAAgB,IAAI,EAAE,UAAU,CAAC;IAEjC,SAAgB,gBAAgB;YAAoB,WAAW;eAAS,MAAM;OAAM;IAEpF,OAAO,CAAC,UAAU,CAAgD;gBAEtD,EAAE,EAAE,QAAQ,EAAE,IAAI,GAAE,MAAmB,EAAE,IAAI,GAAE,UAA8B;IAQzF,OAAO,CAAC,cAAc;IAmCf,YAAY,CAAC,KAAK,EAAE,eAAe,GAAG,IAAI;IAI1C,aAAa,IAAI,aAAa,CAAC,eAAe,CAAC;IAI/C,YAAY,CAAC,EAAE,EAAE,WAAW,GAAG,eAAe,GAAG,SAAS;IAI1D,YAAY,CAAC,EAAE,EAAE,WAAW,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI;IAQlD,QAAQ,IAAI,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC;IAMlC,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,IAAI;CAKvD"}
|