@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.
Files changed (747) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +316 -0
  3. package/dist/actions/ActionRegistry.d.ts +33 -0
  4. package/dist/actions/ActionRegistry.d.ts.map +1 -0
  5. package/dist/actions/ActionRegistry.js +96 -0
  6. package/dist/actions/ActionRegistry.js.map +1 -0
  7. package/dist/actions/types.d.ts +31 -0
  8. package/dist/actions/types.d.ts.map +1 -0
  9. package/dist/actions/types.js +11 -0
  10. package/dist/actions/types.js.map +1 -0
  11. package/dist/analysis/TransientDetector.d.ts +28 -0
  12. package/dist/analysis/TransientDetector.d.ts.map +1 -0
  13. package/dist/analysis/TransientDetector.js +109 -0
  14. package/dist/analysis/TransientDetector.js.map +1 -0
  15. package/dist/audio/AudioEngine.d.ts +107 -0
  16. package/dist/audio/AudioEngine.d.ts.map +1 -0
  17. package/dist/audio/AudioEngine.js +798 -0
  18. package/dist/audio/AudioEngine.js.map +1 -0
  19. package/dist/audio/AudioProvider.d.ts +96 -0
  20. package/dist/audio/AudioProvider.d.ts.map +1 -0
  21. package/dist/audio/AudioProvider.js +2 -0
  22. package/dist/audio/AudioProvider.js.map +1 -0
  23. package/dist/audio/BufferPool.d.ts +92 -0
  24. package/dist/audio/BufferPool.d.ts.map +1 -0
  25. package/dist/audio/BufferPool.js +172 -0
  26. package/dist/audio/BufferPool.js.map +1 -0
  27. package/dist/audio/LoudnessUtils.d.ts +18 -0
  28. package/dist/audio/LoudnessUtils.d.ts.map +1 -0
  29. package/dist/audio/LoudnessUtils.js +91 -0
  30. package/dist/audio/LoudnessUtils.js.map +1 -0
  31. package/dist/audio/MeterUtils.d.ts +37 -0
  32. package/dist/audio/MeterUtils.d.ts.map +1 -0
  33. package/dist/audio/MeterUtils.js +71 -0
  34. package/dist/audio/MeterUtils.js.map +1 -0
  35. package/dist/audio/OfflineExporter.d.ts +48 -0
  36. package/dist/audio/OfflineExporter.d.ts.map +1 -0
  37. package/dist/audio/OfflineExporter.js +202 -0
  38. package/dist/audio/OfflineExporter.js.map +1 -0
  39. package/dist/audio/ProcessingGraph.d.ts +152 -0
  40. package/dist/audio/ProcessingGraph.d.ts.map +1 -0
  41. package/dist/audio/ProcessingGraph.js +360 -0
  42. package/dist/audio/ProcessingGraph.js.map +1 -0
  43. package/dist/audio/SourceCache.d.ts +124 -0
  44. package/dist/audio/SourceCache.d.ts.map +1 -0
  45. package/dist/audio/SourceCache.js +205 -0
  46. package/dist/audio/SourceCache.js.map +1 -0
  47. package/dist/audio/dto.d.ts +50 -0
  48. package/dist/audio/dto.d.ts.map +1 -0
  49. package/dist/audio/dto.js +2 -0
  50. package/dist/audio/dto.js.map +1 -0
  51. package/dist/audio/engine/PlaylistEngine.d.ts +19 -0
  52. package/dist/audio/engine/PlaylistEngine.d.ts.map +1 -0
  53. package/dist/audio/engine/PlaylistEngine.js +83 -0
  54. package/dist/audio/engine/PlaylistEngine.js.map +1 -0
  55. package/dist/automation/AutomationCurve.d.ts +61 -0
  56. package/dist/automation/AutomationCurve.d.ts.map +1 -0
  57. package/dist/automation/AutomationCurve.js +198 -0
  58. package/dist/automation/AutomationCurve.js.map +1 -0
  59. package/dist/automation/AutomationList.d.ts +185 -0
  60. package/dist/automation/AutomationList.d.ts.map +1 -0
  61. package/dist/automation/AutomationList.js +459 -0
  62. package/dist/automation/AutomationList.js.map +1 -0
  63. package/dist/automation/AutomationMode.d.ts +17 -0
  64. package/dist/automation/AutomationMode.d.ts.map +1 -0
  65. package/dist/automation/AutomationMode.js +18 -0
  66. package/dist/automation/AutomationMode.js.map +1 -0
  67. package/dist/automation/ParameterDescriptor.d.ts +65 -0
  68. package/dist/automation/ParameterDescriptor.d.ts.map +1 -0
  69. package/dist/automation/ParameterDescriptor.js +113 -0
  70. package/dist/automation/ParameterDescriptor.js.map +1 -0
  71. package/dist/automation/PointThinning.d.ts +14 -0
  72. package/dist/automation/PointThinning.d.ts.map +1 -0
  73. package/dist/automation/PointThinning.js +52 -0
  74. package/dist/automation/PointThinning.js.map +1 -0
  75. package/dist/automation/types.d.ts +14 -0
  76. package/dist/automation/types.d.ts.map +1 -0
  77. package/dist/automation/types.js +9 -0
  78. package/dist/automation/types.js.map +1 -0
  79. package/dist/commands/Command.d.ts +8 -0
  80. package/dist/commands/Command.d.ts.map +1 -0
  81. package/dist/commands/Command.js +2 -0
  82. package/dist/commands/Command.js.map +1 -0
  83. package/dist/commands/CommandExecutor.d.ts +36 -0
  84. package/dist/commands/CommandExecutor.d.ts.map +1 -0
  85. package/dist/commands/CommandExecutor.js +108 -0
  86. package/dist/commands/CommandExecutor.js.map +1 -0
  87. package/dist/commands/CommandHistory.d.ts +155 -0
  88. package/dist/commands/CommandHistory.d.ts.map +1 -0
  89. package/dist/commands/CommandHistory.js +316 -0
  90. package/dist/commands/CommandHistory.js.map +1 -0
  91. package/dist/commands/CommandRegistry.d.ts +110 -0
  92. package/dist/commands/CommandRegistry.d.ts.map +1 -0
  93. package/dist/commands/CommandRegistry.js +91 -0
  94. package/dist/commands/CommandRegistry.js.map +1 -0
  95. package/dist/commands/UndoTransaction.d.ts +54 -0
  96. package/dist/commands/UndoTransaction.d.ts.map +1 -0
  97. package/dist/commands/UndoTransaction.js +77 -0
  98. package/dist/commands/UndoTransaction.js.map +1 -0
  99. package/dist/commands/handlers/AutomationHandler.d.ts +14 -0
  100. package/dist/commands/handlers/AutomationHandler.d.ts.map +1 -0
  101. package/dist/commands/handlers/AutomationHandler.js +84 -0
  102. package/dist/commands/handlers/AutomationHandler.js.map +1 -0
  103. package/dist/commands/handlers/CommandHandler.d.ts +57 -0
  104. package/dist/commands/handlers/CommandHandler.d.ts.map +1 -0
  105. package/dist/commands/handlers/CommandHandler.js +22 -0
  106. package/dist/commands/handlers/CommandHandler.js.map +1 -0
  107. package/dist/commands/handlers/ExportHandler.d.ts +14 -0
  108. package/dist/commands/handlers/ExportHandler.d.ts.map +1 -0
  109. package/dist/commands/handlers/ExportHandler.js +166 -0
  110. package/dist/commands/handlers/ExportHandler.js.map +1 -0
  111. package/dist/commands/handlers/HistoryHandler.d.ts +29 -0
  112. package/dist/commands/handlers/HistoryHandler.d.ts.map +1 -0
  113. package/dist/commands/handlers/HistoryHandler.js +124 -0
  114. package/dist/commands/handlers/HistoryHandler.js.map +1 -0
  115. package/dist/commands/handlers/IOHandler.d.ts +14 -0
  116. package/dist/commands/handlers/IOHandler.d.ts.map +1 -0
  117. package/dist/commands/handlers/IOHandler.js +59 -0
  118. package/dist/commands/handlers/IOHandler.js.map +1 -0
  119. package/dist/commands/handlers/MarkerHandler.d.ts +13 -0
  120. package/dist/commands/handlers/MarkerHandler.d.ts.map +1 -0
  121. package/dist/commands/handlers/MarkerHandler.js +95 -0
  122. package/dist/commands/handlers/MarkerHandler.js.map +1 -0
  123. package/dist/commands/handlers/MidiHandler.d.ts +14 -0
  124. package/dist/commands/handlers/MidiHandler.d.ts.map +1 -0
  125. package/dist/commands/handlers/MidiHandler.js +153 -0
  126. package/dist/commands/handlers/MidiHandler.js.map +1 -0
  127. package/dist/commands/handlers/MixerSceneHandler.d.ts +12 -0
  128. package/dist/commands/handlers/MixerSceneHandler.d.ts.map +1 -0
  129. package/dist/commands/handlers/MixerSceneHandler.js +113 -0
  130. package/dist/commands/handlers/MixerSceneHandler.js.map +1 -0
  131. package/dist/commands/handlers/RangeHandler.d.ts +14 -0
  132. package/dist/commands/handlers/RangeHandler.d.ts.map +1 -0
  133. package/dist/commands/handlers/RangeHandler.js +108 -0
  134. package/dist/commands/handlers/RangeHandler.js.map +1 -0
  135. package/dist/commands/handlers/RegionHandler.d.ts +14 -0
  136. package/dist/commands/handlers/RegionHandler.d.ts.map +1 -0
  137. package/dist/commands/handlers/RegionHandler.js +313 -0
  138. package/dist/commands/handlers/RegionHandler.js.map +1 -0
  139. package/dist/commands/handlers/SendBusHandler.d.ts +14 -0
  140. package/dist/commands/handlers/SendBusHandler.d.ts.map +1 -0
  141. package/dist/commands/handlers/SendBusHandler.js +55 -0
  142. package/dist/commands/handlers/SendBusHandler.js.map +1 -0
  143. package/dist/commands/handlers/SessionHandler.d.ts +14 -0
  144. package/dist/commands/handlers/SessionHandler.d.ts.map +1 -0
  145. package/dist/commands/handlers/SessionHandler.js +80 -0
  146. package/dist/commands/handlers/SessionHandler.js.map +1 -0
  147. package/dist/commands/handlers/TrackGroupHandler.d.ts +18 -0
  148. package/dist/commands/handlers/TrackGroupHandler.d.ts.map +1 -0
  149. package/dist/commands/handlers/TrackGroupHandler.js +210 -0
  150. package/dist/commands/handlers/TrackGroupHandler.js.map +1 -0
  151. package/dist/commands/handlers/TrackHandler.d.ts +14 -0
  152. package/dist/commands/handlers/TrackHandler.d.ts.map +1 -0
  153. package/dist/commands/handlers/TrackHandler.js +241 -0
  154. package/dist/commands/handlers/TrackHandler.js.map +1 -0
  155. package/dist/commands/handlers/TransportHandler.d.ts +14 -0
  156. package/dist/commands/handlers/TransportHandler.d.ts.map +1 -0
  157. package/dist/commands/handlers/TransportHandler.js +117 -0
  158. package/dist/commands/handlers/TransportHandler.js.map +1 -0
  159. package/dist/commands/handlers/index.d.ts +18 -0
  160. package/dist/commands/handlers/index.d.ts.map +1 -0
  161. package/dist/commands/handlers/index.js +17 -0
  162. package/dist/commands/handlers/index.js.map +1 -0
  163. package/dist/commands/impl/AddAutomationPointCommand.d.ts +20 -0
  164. package/dist/commands/impl/AddAutomationPointCommand.d.ts.map +1 -0
  165. package/dist/commands/impl/AddAutomationPointCommand.js +45 -0
  166. package/dist/commands/impl/AddAutomationPointCommand.js.map +1 -0
  167. package/dist/commands/impl/AddAuxTrackCommand.d.ts +11 -0
  168. package/dist/commands/impl/AddAuxTrackCommand.d.ts.map +1 -0
  169. package/dist/commands/impl/AddAuxTrackCommand.js +23 -0
  170. package/dist/commands/impl/AddAuxTrackCommand.js.map +1 -0
  171. package/dist/commands/impl/AddBusTrackCommand.d.ts +11 -0
  172. package/dist/commands/impl/AddBusTrackCommand.d.ts.map +1 -0
  173. package/dist/commands/impl/AddBusTrackCommand.js +23 -0
  174. package/dist/commands/impl/AddBusTrackCommand.js.map +1 -0
  175. package/dist/commands/impl/AddMarkerCommand.d.ts +13 -0
  176. package/dist/commands/impl/AddMarkerCommand.d.ts.map +1 -0
  177. package/dist/commands/impl/AddMarkerCommand.js +25 -0
  178. package/dist/commands/impl/AddMarkerCommand.js.map +1 -0
  179. package/dist/commands/impl/AddMidiNoteCommand.d.ts +22 -0
  180. package/dist/commands/impl/AddMidiNoteCommand.d.ts.map +1 -0
  181. package/dist/commands/impl/AddMidiNoteCommand.js +45 -0
  182. package/dist/commands/impl/AddMidiNoteCommand.js.map +1 -0
  183. package/dist/commands/impl/AddPluginCommand.d.ts +19 -0
  184. package/dist/commands/impl/AddPluginCommand.d.ts.map +1 -0
  185. package/dist/commands/impl/AddPluginCommand.js +43 -0
  186. package/dist/commands/impl/AddPluginCommand.js.map +1 -0
  187. package/dist/commands/impl/AddRangeCommand.d.ts +19 -0
  188. package/dist/commands/impl/AddRangeCommand.d.ts.map +1 -0
  189. package/dist/commands/impl/AddRangeCommand.js +32 -0
  190. package/dist/commands/impl/AddRangeCommand.js.map +1 -0
  191. package/dist/commands/impl/AddRegionCommand.d.ts +19 -0
  192. package/dist/commands/impl/AddRegionCommand.d.ts.map +1 -0
  193. package/dist/commands/impl/AddRegionCommand.js +58 -0
  194. package/dist/commands/impl/AddRegionCommand.js.map +1 -0
  195. package/dist/commands/impl/AddSendBusCommand.d.ts +23 -0
  196. package/dist/commands/impl/AddSendBusCommand.d.ts.map +1 -0
  197. package/dist/commands/impl/AddSendBusCommand.js +30 -0
  198. package/dist/commands/impl/AddSendBusCommand.js.map +1 -0
  199. package/dist/commands/impl/AddSourceCommand.d.ts +12 -0
  200. package/dist/commands/impl/AddSourceCommand.d.ts.map +1 -0
  201. package/dist/commands/impl/AddSourceCommand.js +16 -0
  202. package/dist/commands/impl/AddSourceCommand.js.map +1 -0
  203. package/dist/commands/impl/AddTempoChangeCommand.d.ts +15 -0
  204. package/dist/commands/impl/AddTempoChangeCommand.d.ts.map +1 -0
  205. package/dist/commands/impl/AddTempoChangeCommand.js +45 -0
  206. package/dist/commands/impl/AddTempoChangeCommand.js.map +1 -0
  207. package/dist/commands/impl/AddTrackCommand.d.ts +13 -0
  208. package/dist/commands/impl/AddTrackCommand.d.ts.map +1 -0
  209. package/dist/commands/impl/AddTrackCommand.js +26 -0
  210. package/dist/commands/impl/AddTrackCommand.js.map +1 -0
  211. package/dist/commands/impl/ConnectIOCommand.d.ts +13 -0
  212. package/dist/commands/impl/ConnectIOCommand.d.ts.map +1 -0
  213. package/dist/commands/impl/ConnectIOCommand.js +31 -0
  214. package/dist/commands/impl/ConnectIOCommand.js.map +1 -0
  215. package/dist/commands/impl/CopyRegionCommand.d.ts +12 -0
  216. package/dist/commands/impl/CopyRegionCommand.d.ts.map +1 -0
  217. package/dist/commands/impl/CopyRegionCommand.js +42 -0
  218. package/dist/commands/impl/CopyRegionCommand.js.map +1 -0
  219. package/dist/commands/impl/DisconnectIOCommand.d.ts +13 -0
  220. package/dist/commands/impl/DisconnectIOCommand.d.ts.map +1 -0
  221. package/dist/commands/impl/DisconnectIOCommand.js +24 -0
  222. package/dist/commands/impl/DisconnectIOCommand.js.map +1 -0
  223. package/dist/commands/impl/DuplicateRegionCommand.d.ts +15 -0
  224. package/dist/commands/impl/DuplicateRegionCommand.d.ts.map +1 -0
  225. package/dist/commands/impl/DuplicateRegionCommand.js +49 -0
  226. package/dist/commands/impl/DuplicateRegionCommand.js.map +1 -0
  227. package/dist/commands/impl/ExportCommand.d.ts +17 -0
  228. package/dist/commands/impl/ExportCommand.d.ts.map +1 -0
  229. package/dist/commands/impl/ExportCommand.js +92 -0
  230. package/dist/commands/impl/ExportCommand.js.map +1 -0
  231. package/dist/commands/impl/FreezeTrackCommand.d.ts +25 -0
  232. package/dist/commands/impl/FreezeTrackCommand.d.ts.map +1 -0
  233. package/dist/commands/impl/FreezeTrackCommand.js +94 -0
  234. package/dist/commands/impl/FreezeTrackCommand.js.map +1 -0
  235. package/dist/commands/impl/GroupRegionsCommand.d.ts +15 -0
  236. package/dist/commands/impl/GroupRegionsCommand.d.ts.map +1 -0
  237. package/dist/commands/impl/GroupRegionsCommand.js +28 -0
  238. package/dist/commands/impl/GroupRegionsCommand.js.map +1 -0
  239. package/dist/commands/impl/LoadSessionCommand.d.ts +24 -0
  240. package/dist/commands/impl/LoadSessionCommand.d.ts.map +1 -0
  241. package/dist/commands/impl/LoadSessionCommand.js +77 -0
  242. package/dist/commands/impl/LoadSessionCommand.js.map +1 -0
  243. package/dist/commands/impl/LockRegionCommand.d.ts +16 -0
  244. package/dist/commands/impl/LockRegionCommand.d.ts.map +1 -0
  245. package/dist/commands/impl/LockRegionCommand.js +37 -0
  246. package/dist/commands/impl/LockRegionCommand.js.map +1 -0
  247. package/dist/commands/impl/MergeRegionsCommand.d.ts +19 -0
  248. package/dist/commands/impl/MergeRegionsCommand.d.ts.map +1 -0
  249. package/dist/commands/impl/MergeRegionsCommand.js +85 -0
  250. package/dist/commands/impl/MergeRegionsCommand.js.map +1 -0
  251. package/dist/commands/impl/MoveAutomationPointCommand.d.ts +20 -0
  252. package/dist/commands/impl/MoveAutomationPointCommand.d.ts.map +1 -0
  253. package/dist/commands/impl/MoveAutomationPointCommand.js +73 -0
  254. package/dist/commands/impl/MoveAutomationPointCommand.js.map +1 -0
  255. package/dist/commands/impl/MoveMarkerCommand.d.ts +13 -0
  256. package/dist/commands/impl/MoveMarkerCommand.d.ts.map +1 -0
  257. package/dist/commands/impl/MoveMarkerCommand.js +29 -0
  258. package/dist/commands/impl/MoveMarkerCommand.js.map +1 -0
  259. package/dist/commands/impl/MoveMidiNoteCommand.d.ts +20 -0
  260. package/dist/commands/impl/MoveMidiNoteCommand.d.ts.map +1 -0
  261. package/dist/commands/impl/MoveMidiNoteCommand.js +55 -0
  262. package/dist/commands/impl/MoveMidiNoteCommand.js.map +1 -0
  263. package/dist/commands/impl/MoveRegionCommand.d.ts +22 -0
  264. package/dist/commands/impl/MoveRegionCommand.d.ts.map +1 -0
  265. package/dist/commands/impl/MoveRegionCommand.js +148 -0
  266. package/dist/commands/impl/MoveRegionCommand.js.map +1 -0
  267. package/dist/commands/impl/NewSessionCommand.d.ts +17 -0
  268. package/dist/commands/impl/NewSessionCommand.d.ts.map +1 -0
  269. package/dist/commands/impl/NewSessionCommand.js +88 -0
  270. package/dist/commands/impl/NewSessionCommand.js.map +1 -0
  271. package/dist/commands/impl/NormalizeRegionCommand.d.ts +24 -0
  272. package/dist/commands/impl/NormalizeRegionCommand.d.ts.map +1 -0
  273. package/dist/commands/impl/NormalizeRegionCommand.js +60 -0
  274. package/dist/commands/impl/NormalizeRegionCommand.js.map +1 -0
  275. package/dist/commands/impl/PasteRegionCommand.d.ts +18 -0
  276. package/dist/commands/impl/PasteRegionCommand.d.ts.map +1 -0
  277. package/dist/commands/impl/PasteRegionCommand.js +66 -0
  278. package/dist/commands/impl/PasteRegionCommand.js.map +1 -0
  279. package/dist/commands/impl/RemoveAutomationPointCommand.d.ts +17 -0
  280. package/dist/commands/impl/RemoveAutomationPointCommand.d.ts.map +1 -0
  281. package/dist/commands/impl/RemoveAutomationPointCommand.js +69 -0
  282. package/dist/commands/impl/RemoveAutomationPointCommand.js.map +1 -0
  283. package/dist/commands/impl/RemoveMarkerCommand.d.ts +14 -0
  284. package/dist/commands/impl/RemoveMarkerCommand.d.ts.map +1 -0
  285. package/dist/commands/impl/RemoveMarkerCommand.js +32 -0
  286. package/dist/commands/impl/RemoveMarkerCommand.js.map +1 -0
  287. package/dist/commands/impl/RemoveMidiNoteCommand.d.ts +16 -0
  288. package/dist/commands/impl/RemoveMidiNoteCommand.d.ts.map +1 -0
  289. package/dist/commands/impl/RemoveMidiNoteCommand.js +38 -0
  290. package/dist/commands/impl/RemoveMidiNoteCommand.js.map +1 -0
  291. package/dist/commands/impl/RemovePluginCommand.d.ts +17 -0
  292. package/dist/commands/impl/RemovePluginCommand.d.ts.map +1 -0
  293. package/dist/commands/impl/RemovePluginCommand.js +55 -0
  294. package/dist/commands/impl/RemovePluginCommand.js.map +1 -0
  295. package/dist/commands/impl/RemoveRangeCommand.d.ts +15 -0
  296. package/dist/commands/impl/RemoveRangeCommand.d.ts.map +1 -0
  297. package/dist/commands/impl/RemoveRangeCommand.js +34 -0
  298. package/dist/commands/impl/RemoveRangeCommand.js.map +1 -0
  299. package/dist/commands/impl/RemoveRegionCommand.d.ts +17 -0
  300. package/dist/commands/impl/RemoveRegionCommand.d.ts.map +1 -0
  301. package/dist/commands/impl/RemoveRegionCommand.js +58 -0
  302. package/dist/commands/impl/RemoveRegionCommand.js.map +1 -0
  303. package/dist/commands/impl/RemoveSendBusCommand.d.ts +17 -0
  304. package/dist/commands/impl/RemoveSendBusCommand.d.ts.map +1 -0
  305. package/dist/commands/impl/RemoveSendBusCommand.js +34 -0
  306. package/dist/commands/impl/RemoveSendBusCommand.js.map +1 -0
  307. package/dist/commands/impl/RemoveTempoChangeCommand.d.ts +11 -0
  308. package/dist/commands/impl/RemoveTempoChangeCommand.d.ts.map +1 -0
  309. package/dist/commands/impl/RemoveTempoChangeCommand.js +32 -0
  310. package/dist/commands/impl/RemoveTempoChangeCommand.js.map +1 -0
  311. package/dist/commands/impl/RemoveTrackCommand.d.ts +11 -0
  312. package/dist/commands/impl/RemoveTrackCommand.d.ts.map +1 -0
  313. package/dist/commands/impl/RemoveTrackCommand.js +28 -0
  314. package/dist/commands/impl/RemoveTrackCommand.js.map +1 -0
  315. package/dist/commands/impl/ReorderTrackCommand.d.ts +15 -0
  316. package/dist/commands/impl/ReorderTrackCommand.d.ts.map +1 -0
  317. package/dist/commands/impl/ReorderTrackCommand.js +25 -0
  318. package/dist/commands/impl/ReorderTrackCommand.js.map +1 -0
  319. package/dist/commands/impl/ResizeRegionCommand.d.ts +18 -0
  320. package/dist/commands/impl/ResizeRegionCommand.d.ts.map +1 -0
  321. package/dist/commands/impl/ResizeRegionCommand.js +65 -0
  322. package/dist/commands/impl/ResizeRegionCommand.js.map +1 -0
  323. package/dist/commands/impl/ReverseRegionCommand.d.ts +22 -0
  324. package/dist/commands/impl/ReverseRegionCommand.d.ts.map +1 -0
  325. package/dist/commands/impl/ReverseRegionCommand.js +50 -0
  326. package/dist/commands/impl/ReverseRegionCommand.js.map +1 -0
  327. package/dist/commands/impl/SaveSessionCommand.d.ts +11 -0
  328. package/dist/commands/impl/SaveSessionCommand.d.ts.map +1 -0
  329. package/dist/commands/impl/SaveSessionCommand.js +33 -0
  330. package/dist/commands/impl/SaveSessionCommand.js.map +1 -0
  331. package/dist/commands/impl/SaveSnapshotCommand.d.ts +15 -0
  332. package/dist/commands/impl/SaveSnapshotCommand.d.ts.map +1 -0
  333. package/dist/commands/impl/SaveSnapshotCommand.js +34 -0
  334. package/dist/commands/impl/SaveSnapshotCommand.js.map +1 -0
  335. package/dist/commands/impl/SetGridCommand.d.ts +20 -0
  336. package/dist/commands/impl/SetGridCommand.d.ts.map +1 -0
  337. package/dist/commands/impl/SetGridCommand.js +35 -0
  338. package/dist/commands/impl/SetGridCommand.js.map +1 -0
  339. package/dist/commands/impl/SetLoopRangeCommand.d.ts +18 -0
  340. package/dist/commands/impl/SetLoopRangeCommand.d.ts.map +1 -0
  341. package/dist/commands/impl/SetLoopRangeCommand.js +44 -0
  342. package/dist/commands/impl/SetLoopRangeCommand.js.map +1 -0
  343. package/dist/commands/impl/SetPluginParameterCommand.d.ts +16 -0
  344. package/dist/commands/impl/SetPluginParameterCommand.d.ts.map +1 -0
  345. package/dist/commands/impl/SetPluginParameterCommand.js +49 -0
  346. package/dist/commands/impl/SetPluginParameterCommand.js.map +1 -0
  347. package/dist/commands/impl/SetPunchRangeCommand.d.ts +18 -0
  348. package/dist/commands/impl/SetPunchRangeCommand.d.ts.map +1 -0
  349. package/dist/commands/impl/SetPunchRangeCommand.js +42 -0
  350. package/dist/commands/impl/SetPunchRangeCommand.js.map +1 -0
  351. package/dist/commands/impl/SetRangeCommand.d.ts +27 -0
  352. package/dist/commands/impl/SetRangeCommand.d.ts.map +1 -0
  353. package/dist/commands/impl/SetRangeCommand.js +66 -0
  354. package/dist/commands/impl/SetRangeCommand.js.map +1 -0
  355. package/dist/commands/impl/SetRegionFadesCommand.d.ts +16 -0
  356. package/dist/commands/impl/SetRegionFadesCommand.d.ts.map +1 -0
  357. package/dist/commands/impl/SetRegionFadesCommand.js +46 -0
  358. package/dist/commands/impl/SetRegionFadesCommand.js.map +1 -0
  359. package/dist/commands/impl/SetRegionPlaybackRateCommand.d.ts +23 -0
  360. package/dist/commands/impl/SetRegionPlaybackRateCommand.d.ts.map +1 -0
  361. package/dist/commands/impl/SetRegionPlaybackRateCommand.js +46 -0
  362. package/dist/commands/impl/SetRegionPlaybackRateCommand.js.map +1 -0
  363. package/dist/commands/impl/SetRegionTimeDomainCommand.d.ts +16 -0
  364. package/dist/commands/impl/SetRegionTimeDomainCommand.d.ts.map +1 -0
  365. package/dist/commands/impl/SetRegionTimeDomainCommand.js +42 -0
  366. package/dist/commands/impl/SetRegionTimeDomainCommand.js.map +1 -0
  367. package/dist/commands/impl/SetSendLevelCommand.d.ts +18 -0
  368. package/dist/commands/impl/SetSendLevelCommand.d.ts.map +1 -0
  369. package/dist/commands/impl/SetSendLevelCommand.js +35 -0
  370. package/dist/commands/impl/SetSendLevelCommand.js.map +1 -0
  371. package/dist/commands/impl/SetTrackMuteCommand.d.ts +15 -0
  372. package/dist/commands/impl/SetTrackMuteCommand.d.ts.map +1 -0
  373. package/dist/commands/impl/SetTrackMuteCommand.js +29 -0
  374. package/dist/commands/impl/SetTrackMuteCommand.js.map +1 -0
  375. package/dist/commands/impl/SetTrackPanCommand.d.ts +15 -0
  376. package/dist/commands/impl/SetTrackPanCommand.d.ts.map +1 -0
  377. package/dist/commands/impl/SetTrackPanCommand.js +29 -0
  378. package/dist/commands/impl/SetTrackPanCommand.js.map +1 -0
  379. package/dist/commands/impl/SetTrackSoloCommand.d.ts +15 -0
  380. package/dist/commands/impl/SetTrackSoloCommand.d.ts.map +1 -0
  381. package/dist/commands/impl/SetTrackSoloCommand.js +29 -0
  382. package/dist/commands/impl/SetTrackSoloCommand.js.map +1 -0
  383. package/dist/commands/impl/SetTrackVolumeCommand.d.ts +15 -0
  384. package/dist/commands/impl/SetTrackVolumeCommand.d.ts.map +1 -0
  385. package/dist/commands/impl/SetTrackVolumeCommand.js +29 -0
  386. package/dist/commands/impl/SetTrackVolumeCommand.js.map +1 -0
  387. package/dist/commands/impl/SplitAtPlayheadCommand.d.ts +32 -0
  388. package/dist/commands/impl/SplitAtPlayheadCommand.d.ts.map +1 -0
  389. package/dist/commands/impl/SplitAtPlayheadCommand.js +100 -0
  390. package/dist/commands/impl/SplitAtPlayheadCommand.js.map +1 -0
  391. package/dist/commands/impl/SplitRegionCommand.d.ts +22 -0
  392. package/dist/commands/impl/SplitRegionCommand.d.ts.map +1 -0
  393. package/dist/commands/impl/SplitRegionCommand.js +69 -0
  394. package/dist/commands/impl/SplitRegionCommand.js.map +1 -0
  395. package/dist/commands/impl/StripSilenceCommand.d.ts +26 -0
  396. package/dist/commands/impl/StripSilenceCommand.d.ts.map +1 -0
  397. package/dist/commands/impl/StripSilenceCommand.js +83 -0
  398. package/dist/commands/impl/StripSilenceCommand.js.map +1 -0
  399. package/dist/commands/impl/TimeStretchRegionCommand.d.ts +28 -0
  400. package/dist/commands/impl/TimeStretchRegionCommand.d.ts.map +1 -0
  401. package/dist/commands/impl/TimeStretchRegionCommand.js +55 -0
  402. package/dist/commands/impl/TimeStretchRegionCommand.js.map +1 -0
  403. package/dist/commands/impl/ToggleLoopCommand.d.ts +12 -0
  404. package/dist/commands/impl/ToggleLoopCommand.d.ts.map +1 -0
  405. package/dist/commands/impl/ToggleLoopCommand.js +27 -0
  406. package/dist/commands/impl/ToggleLoopCommand.js.map +1 -0
  407. package/dist/commands/impl/TrimRegionCommand.d.ts +22 -0
  408. package/dist/commands/impl/TrimRegionCommand.d.ts.map +1 -0
  409. package/dist/commands/impl/TrimRegionCommand.js +92 -0
  410. package/dist/commands/impl/TrimRegionCommand.js.map +1 -0
  411. package/dist/commands/impl/UngroupRegionsCommand.d.ts +14 -0
  412. package/dist/commands/impl/UngroupRegionsCommand.d.ts.map +1 -0
  413. package/dist/commands/impl/UngroupRegionsCommand.js +28 -0
  414. package/dist/commands/impl/UngroupRegionsCommand.js.map +1 -0
  415. package/dist/commands/types.d.ts +1895 -0
  416. package/dist/commands/types.d.ts.map +1 -0
  417. package/dist/commands/types.js +1338 -0
  418. package/dist/commands/types.js.map +1 -0
  419. package/dist/domain/ABComparison.d.ts +33 -0
  420. package/dist/domain/ABComparison.d.ts.map +1 -0
  421. package/dist/domain/ABComparison.js +78 -0
  422. package/dist/domain/ABComparison.js.map +1 -0
  423. package/dist/domain/CDMarker.d.ts +36 -0
  424. package/dist/domain/CDMarker.d.ts.map +1 -0
  425. package/dist/domain/CDMarker.js +78 -0
  426. package/dist/domain/CDMarker.js.map +1 -0
  427. package/dist/domain/ClockMode.d.ts +19 -0
  428. package/dist/domain/ClockMode.d.ts.map +1 -0
  429. package/dist/domain/ClockMode.js +65 -0
  430. package/dist/domain/ClockMode.js.map +1 -0
  431. package/dist/domain/CrossfadeEngine.d.ts +27 -0
  432. package/dist/domain/CrossfadeEngine.d.ts.map +1 -0
  433. package/dist/domain/CrossfadeEngine.js +47 -0
  434. package/dist/domain/CrossfadeEngine.js.map +1 -0
  435. package/dist/domain/DragManager.d.ts +21 -0
  436. package/dist/domain/DragManager.d.ts.map +1 -0
  437. package/dist/domain/DragManager.js +37 -0
  438. package/dist/domain/DragManager.js.map +1 -0
  439. package/dist/domain/EditMode.d.ts +15 -0
  440. package/dist/domain/EditMode.d.ts.map +1 -0
  441. package/dist/domain/EditMode.js +16 -0
  442. package/dist/domain/EditMode.js.map +1 -0
  443. package/dist/domain/ExportConfig.d.ts +55 -0
  444. package/dist/domain/ExportConfig.d.ts.map +1 -0
  445. package/dist/domain/ExportConfig.js +115 -0
  446. package/dist/domain/ExportConfig.js.map +1 -0
  447. package/dist/domain/ExportStatus.d.ts +46 -0
  448. package/dist/domain/ExportStatus.d.ts.map +1 -0
  449. package/dist/domain/ExportStatus.js +113 -0
  450. package/dist/domain/ExportStatus.js.map +1 -0
  451. package/dist/domain/FadeEnvelope.d.ts +31 -0
  452. package/dist/domain/FadeEnvelope.d.ts.map +1 -0
  453. package/dist/domain/FadeEnvelope.js +44 -0
  454. package/dist/domain/FadeEnvelope.js.map +1 -0
  455. package/dist/domain/GridSettings.d.ts +99 -0
  456. package/dist/domain/GridSettings.d.ts.map +1 -0
  457. package/dist/domain/GridSettings.js +213 -0
  458. package/dist/domain/GridSettings.js.map +1 -0
  459. package/dist/domain/Marker.d.ts +31 -0
  460. package/dist/domain/Marker.d.ts.map +1 -0
  461. package/dist/domain/Marker.js +56 -0
  462. package/dist/domain/Marker.js.map +1 -0
  463. package/dist/domain/MeterData.d.ts +26 -0
  464. package/dist/domain/MeterData.d.ts.map +1 -0
  465. package/dist/domain/MeterData.js +2 -0
  466. package/dist/domain/MeterData.js.map +1 -0
  467. package/dist/domain/MeterType.d.ts +22 -0
  468. package/dist/domain/MeterType.d.ts.map +1 -0
  469. package/dist/domain/MeterType.js +24 -0
  470. package/dist/domain/MeterType.js.map +1 -0
  471. package/dist/domain/MidiClip.d.ts +56 -0
  472. package/dist/domain/MidiClip.d.ts.map +1 -0
  473. package/dist/domain/MidiClip.js +119 -0
  474. package/dist/domain/MidiClip.js.map +1 -0
  475. package/dist/domain/MidiNote.d.ts +38 -0
  476. package/dist/domain/MidiNote.d.ts.map +1 -0
  477. package/dist/domain/MidiNote.js +82 -0
  478. package/dist/domain/MidiNote.js.map +1 -0
  479. package/dist/domain/MidiRegion.d.ts +65 -0
  480. package/dist/domain/MidiRegion.d.ts.map +1 -0
  481. package/dist/domain/MidiRegion.js +123 -0
  482. package/dist/domain/MidiRegion.js.map +1 -0
  483. package/dist/domain/MixerScene.d.ts +62 -0
  484. package/dist/domain/MixerScene.d.ts.map +1 -0
  485. package/dist/domain/MixerScene.js +131 -0
  486. package/dist/domain/MixerScene.js.map +1 -0
  487. package/dist/domain/MonitorMode.d.ts +15 -0
  488. package/dist/domain/MonitorMode.d.ts.map +1 -0
  489. package/dist/domain/MonitorMode.js +16 -0
  490. package/dist/domain/MonitorMode.js.map +1 -0
  491. package/dist/domain/MouseMode.d.ts +25 -0
  492. package/dist/domain/MouseMode.d.ts.map +1 -0
  493. package/dist/domain/MouseMode.js +26 -0
  494. package/dist/domain/MouseMode.js.map +1 -0
  495. package/dist/domain/OverlapType.d.ts +18 -0
  496. package/dist/domain/OverlapType.d.ts.map +1 -0
  497. package/dist/domain/OverlapType.js +19 -0
  498. package/dist/domain/OverlapType.js.map +1 -0
  499. package/dist/domain/Playlist.d.ts +83 -0
  500. package/dist/domain/Playlist.d.ts.map +1 -0
  501. package/dist/domain/Playlist.js +205 -0
  502. package/dist/domain/Playlist.js.map +1 -0
  503. package/dist/domain/Range.d.ts +35 -0
  504. package/dist/domain/Range.d.ts.map +1 -0
  505. package/dist/domain/Range.js +59 -0
  506. package/dist/domain/Range.js.map +1 -0
  507. package/dist/domain/RecordMode.d.ts +13 -0
  508. package/dist/domain/RecordMode.d.ts.map +1 -0
  509. package/dist/domain/RecordMode.js +14 -0
  510. package/dist/domain/RecordMode.js.map +1 -0
  511. package/dist/domain/Region.d.ts +96 -0
  512. package/dist/domain/Region.d.ts.map +1 -0
  513. package/dist/domain/Region.js +219 -0
  514. package/dist/domain/Region.js.map +1 -0
  515. package/dist/domain/RegionClipboard.d.ts +56 -0
  516. package/dist/domain/RegionClipboard.d.ts.map +1 -0
  517. package/dist/domain/RegionClipboard.js +70 -0
  518. package/dist/domain/RegionClipboard.js.map +1 -0
  519. package/dist/domain/RegionGroup.d.ts +16 -0
  520. package/dist/domain/RegionGroup.d.ts.map +1 -0
  521. package/dist/domain/RegionGroup.js +36 -0
  522. package/dist/domain/RegionGroup.js.map +1 -0
  523. package/dist/domain/Route.d.ts +104 -0
  524. package/dist/domain/Route.d.ts.map +1 -0
  525. package/dist/domain/Route.js +192 -0
  526. package/dist/domain/Route.js.map +1 -0
  527. package/dist/domain/RulerType.d.ts +21 -0
  528. package/dist/domain/RulerType.d.ts.map +1 -0
  529. package/dist/domain/RulerType.js +22 -0
  530. package/dist/domain/RulerType.js.map +1 -0
  531. package/dist/domain/SelectionHistory.d.ts +38 -0
  532. package/dist/domain/SelectionHistory.d.ts.map +1 -0
  533. package/dist/domain/SelectionHistory.js +70 -0
  534. package/dist/domain/SelectionHistory.js.map +1 -0
  535. package/dist/domain/SendBus.d.ts +28 -0
  536. package/dist/domain/SendBus.d.ts.map +1 -0
  537. package/dist/domain/SendBus.js +43 -0
  538. package/dist/domain/SendBus.js.map +1 -0
  539. package/dist/domain/Session.d.ts +347 -0
  540. package/dist/domain/Session.d.ts.map +1 -0
  541. package/dist/domain/Session.js +965 -0
  542. package/dist/domain/Session.js.map +1 -0
  543. package/dist/domain/SidechainConfig.d.ts +51 -0
  544. package/dist/domain/SidechainConfig.d.ts.map +1 -0
  545. package/dist/domain/SidechainConfig.js +84 -0
  546. package/dist/domain/SidechainConfig.js.map +1 -0
  547. package/dist/domain/Source.d.ts +11 -0
  548. package/dist/domain/Source.d.ts.map +1 -0
  549. package/dist/domain/Source.js +11 -0
  550. package/dist/domain/Source.js.map +1 -0
  551. package/dist/domain/Take.d.ts +66 -0
  552. package/dist/domain/Take.d.ts.map +1 -0
  553. package/dist/domain/Take.js +106 -0
  554. package/dist/domain/Take.js.map +1 -0
  555. package/dist/domain/Track.d.ts +58 -0
  556. package/dist/domain/Track.d.ts.map +1 -0
  557. package/dist/domain/Track.js +124 -0
  558. package/dist/domain/Track.js.map +1 -0
  559. package/dist/domain/TrackGroup.d.ts +39 -0
  560. package/dist/domain/TrackGroup.d.ts.map +1 -0
  561. package/dist/domain/TrackGroup.js +86 -0
  562. package/dist/domain/TrackGroup.js.map +1 -0
  563. package/dist/domain/TransportFSM.d.ts +188 -0
  564. package/dist/domain/TransportFSM.d.ts.map +1 -0
  565. package/dist/domain/TransportFSM.js +412 -0
  566. package/dist/domain/TransportFSM.js.map +1 -0
  567. package/dist/domain/TransportMode.d.ts +23 -0
  568. package/dist/domain/TransportMode.d.ts.map +1 -0
  569. package/dist/domain/TransportMode.js +38 -0
  570. package/dist/domain/TransportMode.js.map +1 -0
  571. package/dist/domain/VCATrack.d.ts +48 -0
  572. package/dist/domain/VCATrack.d.ts.map +1 -0
  573. package/dist/domain/VCATrack.js +85 -0
  574. package/dist/domain/VCATrack.js.map +1 -0
  575. package/dist/domain/ZoomFocus.d.ts +21 -0
  576. package/dist/domain/ZoomFocus.d.ts.map +1 -0
  577. package/dist/domain/ZoomFocus.js +22 -0
  578. package/dist/domain/ZoomFocus.js.map +1 -0
  579. package/dist/domain/index.d.ts +11 -0
  580. package/dist/domain/index.d.ts.map +1 -0
  581. package/dist/domain/index.js +12 -0
  582. package/dist/domain/index.js.map +1 -0
  583. package/dist/domain/temporal/TempoMap.d.ts +68 -0
  584. package/dist/domain/temporal/TempoMap.d.ts.map +1 -0
  585. package/dist/domain/temporal/TempoMap.js +151 -0
  586. package/dist/domain/temporal/TempoMap.js.map +1 -0
  587. package/dist/domain/temporal/types.d.ts +34 -0
  588. package/dist/domain/temporal/types.d.ts.map +1 -0
  589. package/dist/domain/temporal/types.js +54 -0
  590. package/dist/domain/temporal/types.js.map +1 -0
  591. package/dist/domain/types.d.ts +26 -0
  592. package/dist/domain/types.d.ts.map +1 -0
  593. package/dist/domain/types.js +11 -0
  594. package/dist/domain/types.js.map +1 -0
  595. package/dist/errors/DAWErrors.d.ts +107 -0
  596. package/dist/errors/DAWErrors.d.ts.map +1 -0
  597. package/dist/errors/DAWErrors.js +159 -0
  598. package/dist/errors/DAWErrors.js.map +1 -0
  599. package/dist/index.d.ts +56 -0
  600. package/dist/index.d.ts.map +1 -0
  601. package/dist/index.js +59 -0
  602. package/dist/index.js.map +1 -0
  603. package/dist/lib/Signal.d.ts +28 -0
  604. package/dist/lib/Signal.d.ts.map +1 -0
  605. package/dist/lib/Signal.js +34 -0
  606. package/dist/lib/Signal.js.map +1 -0
  607. package/dist/midi/MidiInput.d.ts +61 -0
  608. package/dist/midi/MidiInput.d.ts.map +1 -0
  609. package/dist/midi/MidiInput.js +153 -0
  610. package/dist/midi/MidiInput.js.map +1 -0
  611. package/dist/plugins/AutomatableParameter.d.ts +28 -0
  612. package/dist/plugins/AutomatableParameter.d.ts.map +1 -0
  613. package/dist/plugins/AutomatableParameter.js +89 -0
  614. package/dist/plugins/AutomatableParameter.js.map +1 -0
  615. package/dist/plugins/Plugin.d.ts +31 -0
  616. package/dist/plugins/Plugin.d.ts.map +1 -0
  617. package/dist/plugins/Plugin.js +7 -0
  618. package/dist/plugins/Plugin.js.map +1 -0
  619. package/dist/plugins/PluginManager.d.ts +15 -0
  620. package/dist/plugins/PluginManager.d.ts.map +1 -0
  621. package/dist/plugins/PluginManager.js +199 -0
  622. package/dist/plugins/PluginManager.js.map +1 -0
  623. package/dist/plugins/PluginPreset.d.ts +50 -0
  624. package/dist/plugins/PluginPreset.d.ts.map +1 -0
  625. package/dist/plugins/PluginPreset.js +292 -0
  626. package/dist/plugins/PluginPreset.js.map +1 -0
  627. package/dist/plugins/impl/AutoPanPlugin.d.ts +28 -0
  628. package/dist/plugins/impl/AutoPanPlugin.d.ts.map +1 -0
  629. package/dist/plugins/impl/AutoPanPlugin.js +48 -0
  630. package/dist/plugins/impl/AutoPanPlugin.js.map +1 -0
  631. package/dist/plugins/impl/ConvolutionReverbPlugin.d.ts +35 -0
  632. package/dist/plugins/impl/ConvolutionReverbPlugin.d.ts.map +1 -0
  633. package/dist/plugins/impl/ConvolutionReverbPlugin.js +65 -0
  634. package/dist/plugins/impl/ConvolutionReverbPlugin.js.map +1 -0
  635. package/dist/plugins/impl/DeEsserPlugin.d.ts +35 -0
  636. package/dist/plugins/impl/DeEsserPlugin.d.ts.map +1 -0
  637. package/dist/plugins/impl/DeEsserPlugin.js +87 -0
  638. package/dist/plugins/impl/DeEsserPlugin.js.map +1 -0
  639. package/dist/plugins/impl/ExpanderPlugin.d.ts +42 -0
  640. package/dist/plugins/impl/ExpanderPlugin.d.ts.map +1 -0
  641. package/dist/plugins/impl/ExpanderPlugin.js +105 -0
  642. package/dist/plugins/impl/ExpanderPlugin.js.map +1 -0
  643. package/dist/plugins/impl/GenericPlugin.d.ts +20 -0
  644. package/dist/plugins/impl/GenericPlugin.d.ts.map +1 -0
  645. package/dist/plugins/impl/GenericPlugin.js +37 -0
  646. package/dist/plugins/impl/GenericPlugin.js.map +1 -0
  647. package/dist/plugins/impl/MultibandCompressorPlugin.d.ts +33 -0
  648. package/dist/plugins/impl/MultibandCompressorPlugin.d.ts.map +1 -0
  649. package/dist/plugins/impl/MultibandCompressorPlugin.js +169 -0
  650. package/dist/plugins/impl/MultibandCompressorPlugin.js.map +1 -0
  651. package/dist/plugins/impl/ParametricEQPlugin.d.ts +25 -0
  652. package/dist/plugins/impl/ParametricEQPlugin.d.ts.map +1 -0
  653. package/dist/plugins/impl/ParametricEQPlugin.js +79 -0
  654. package/dist/plugins/impl/ParametricEQPlugin.js.map +1 -0
  655. package/dist/plugins/impl/PhaserPlugin.d.ts +29 -0
  656. package/dist/plugins/impl/PhaserPlugin.d.ts.map +1 -0
  657. package/dist/plugins/impl/PhaserPlugin.js +50 -0
  658. package/dist/plugins/impl/PhaserPlugin.js.map +1 -0
  659. package/dist/plugins/impl/SyncDelayPlugin.d.ts +52 -0
  660. package/dist/plugins/impl/SyncDelayPlugin.d.ts.map +1 -0
  661. package/dist/plugins/impl/SyncDelayPlugin.js +95 -0
  662. package/dist/plugins/impl/SyncDelayPlugin.js.map +1 -0
  663. package/dist/plugins/impl/TapeSaturationPlugin.d.ts +35 -0
  664. package/dist/plugins/impl/TapeSaturationPlugin.d.ts.map +1 -0
  665. package/dist/plugins/impl/TapeSaturationPlugin.js +87 -0
  666. package/dist/plugins/impl/TapeSaturationPlugin.js.map +1 -0
  667. package/dist/plugins/impl/TremoloPlugin.d.ts +29 -0
  668. package/dist/plugins/impl/TremoloPlugin.d.ts.map +1 -0
  669. package/dist/plugins/impl/TremoloPlugin.js +50 -0
  670. package/dist/plugins/impl/TremoloPlugin.js.map +1 -0
  671. package/dist/plugins/impl/VibratoPlugin.d.ts +28 -0
  672. package/dist/plugins/impl/VibratoPlugin.d.ts.map +1 -0
  673. package/dist/plugins/impl/VibratoPlugin.js +48 -0
  674. package/dist/plugins/impl/VibratoPlugin.js.map +1 -0
  675. package/dist/preferences/KeyBindings.d.ts +38 -0
  676. package/dist/preferences/KeyBindings.d.ts.map +1 -0
  677. package/dist/preferences/KeyBindings.js +83 -0
  678. package/dist/preferences/KeyBindings.js.map +1 -0
  679. package/dist/preferences/Preferences.d.ts +49 -0
  680. package/dist/preferences/Preferences.d.ts.map +1 -0
  681. package/dist/preferences/Preferences.js +93 -0
  682. package/dist/preferences/Preferences.js.map +1 -0
  683. package/dist/preferences/index.d.ts +4 -0
  684. package/dist/preferences/index.d.ts.map +1 -0
  685. package/dist/preferences/index.js +3 -0
  686. package/dist/preferences/index.js.map +1 -0
  687. package/dist/processing/GainProcessor.d.ts +10 -0
  688. package/dist/processing/GainProcessor.d.ts.map +1 -0
  689. package/dist/processing/GainProcessor.js +21 -0
  690. package/dist/processing/GainProcessor.js.map +1 -0
  691. package/dist/processing/IO.d.ts +15 -0
  692. package/dist/processing/IO.d.ts.map +1 -0
  693. package/dist/processing/IO.js +34 -0
  694. package/dist/processing/IO.js.map +1 -0
  695. package/dist/processing/MeterProcessor.d.ts +101 -0
  696. package/dist/processing/MeterProcessor.d.ts.map +1 -0
  697. package/dist/processing/MeterProcessor.js +195 -0
  698. package/dist/processing/MeterProcessor.js.map +1 -0
  699. package/dist/processing/PanProcessor.d.ts +15 -0
  700. package/dist/processing/PanProcessor.d.ts.map +1 -0
  701. package/dist/processing/PanProcessor.js +35 -0
  702. package/dist/processing/PanProcessor.js.map +1 -0
  703. package/dist/processing/PluginInsert.d.ts +9 -0
  704. package/dist/processing/PluginInsert.d.ts.map +1 -0
  705. package/dist/processing/PluginInsert.js +16 -0
  706. package/dist/processing/PluginInsert.js.map +1 -0
  707. package/dist/processing/PolarityProcessor.d.ts +25 -0
  708. package/dist/processing/PolarityProcessor.d.ts.map +1 -0
  709. package/dist/processing/PolarityProcessor.js +35 -0
  710. package/dist/processing/PolarityProcessor.js.map +1 -0
  711. package/dist/processing/Processor.d.ts +31 -0
  712. package/dist/processing/Processor.d.ts.map +1 -0
  713. package/dist/processing/Processor.js +45 -0
  714. package/dist/processing/Processor.js.map +1 -0
  715. package/dist/processing/SendProcessor.d.ts +55 -0
  716. package/dist/processing/SendProcessor.d.ts.map +1 -0
  717. package/dist/processing/SendProcessor.js +97 -0
  718. package/dist/processing/SendProcessor.js.map +1 -0
  719. package/dist/storage/AutoSave.d.ts +48 -0
  720. package/dist/storage/AutoSave.d.ts.map +1 -0
  721. package/dist/storage/AutoSave.js +108 -0
  722. package/dist/storage/AutoSave.js.map +1 -0
  723. package/dist/storage/SessionStorage.d.ts +74 -0
  724. package/dist/storage/SessionStorage.d.ts.map +1 -0
  725. package/dist/storage/SessionStorage.js +192 -0
  726. package/dist/storage/SessionStorage.js.map +1 -0
  727. package/dist/storage/SessionTemplate.d.ts +22 -0
  728. package/dist/storage/SessionTemplate.d.ts.map +1 -0
  729. package/dist/storage/SessionTemplate.js +77 -0
  730. package/dist/storage/SessionTemplate.js.map +1 -0
  731. package/dist/utils/AudioBufferToWav.d.ts +28 -0
  732. package/dist/utils/AudioBufferToWav.d.ts.map +1 -0
  733. package/dist/utils/AudioBufferToWav.js +110 -0
  734. package/dist/utils/AudioBufferToWav.js.map +1 -0
  735. package/dist/utils/DitherProcessor.d.ts +41 -0
  736. package/dist/utils/DitherProcessor.d.ts.map +1 -0
  737. package/dist/utils/DitherProcessor.js +78 -0
  738. package/dist/utils/DitherProcessor.js.map +1 -0
  739. package/dist/utils/FlacEncoder.d.ts +22 -0
  740. package/dist/utils/FlacEncoder.d.ts.map +1 -0
  741. package/dist/utils/FlacEncoder.js +196 -0
  742. package/dist/utils/FlacEncoder.js.map +1 -0
  743. package/dist/utils/OggEncoder.d.ts +40 -0
  744. package/dist/utils/OggEncoder.d.ts.map +1 -0
  745. package/dist/utils/OggEncoder.js +183 -0
  746. package/dist/utils/OggEncoder.js.map +1 -0
  747. package/package.json +67 -0
@@ -0,0 +1,82 @@
1
+ import { Signal } from '../lib/Signal';
2
+ export class MidiNote {
3
+ constructor(id, pitch, velocity, startFrame, durationFrames, channel = 0) {
4
+ // Signals
5
+ this.changed = new Signal();
6
+ this.id = id;
7
+ this.pitch = Math.max(0, Math.min(127, Math.round(pitch)));
8
+ this.velocity = Math.max(0, Math.min(127, Math.round(velocity)));
9
+ this.startFrame = startFrame;
10
+ this.durationFrames = durationFrames;
11
+ this.channel = Math.max(0, Math.min(15, Math.round(channel)));
12
+ }
13
+ get endFrame() {
14
+ return this.startFrame + this.durationFrames;
15
+ }
16
+ setPitch(pitch) {
17
+ const clamped = Math.max(0, Math.min(127, Math.round(pitch)));
18
+ if (this.pitch !== clamped) {
19
+ this.pitch = clamped;
20
+ this.changed.emit(this);
21
+ }
22
+ }
23
+ setVelocity(velocity) {
24
+ const clamped = Math.max(0, Math.min(127, Math.round(velocity)));
25
+ if (this.velocity !== clamped) {
26
+ this.velocity = clamped;
27
+ this.changed.emit(this);
28
+ }
29
+ }
30
+ move(newStartFrame) {
31
+ if (newStartFrame < 0)
32
+ newStartFrame = 0;
33
+ if (this.startFrame !== newStartFrame) {
34
+ this.startFrame = newStartFrame;
35
+ this.changed.emit(this);
36
+ }
37
+ }
38
+ resize(newDuration) {
39
+ if (newDuration < 1)
40
+ newDuration = 1;
41
+ if (this.durationFrames !== newDuration) {
42
+ this.durationFrames = newDuration;
43
+ this.changed.emit(this);
44
+ }
45
+ }
46
+ transpose(semitones) {
47
+ const newPitch = Math.max(0, Math.min(127, this.pitch + semitones));
48
+ if (this.pitch !== newPitch) {
49
+ this.pitch = newPitch;
50
+ this.changed.emit(this);
51
+ }
52
+ }
53
+ /**
54
+ * Get MIDI note name (e.g., "C4", "A#3")
55
+ */
56
+ getNoteName() {
57
+ const noteNames = ['C', 'C#', 'D', 'D#', 'E', 'F', 'F#', 'G', 'G#', 'A', 'A#', 'B'];
58
+ const octave = Math.floor(this.pitch / 12) - 1;
59
+ const noteName = noteNames[this.pitch % 12];
60
+ return `${noteName}${octave}`;
61
+ }
62
+ /**
63
+ * Convert pitch to frequency in Hz
64
+ */
65
+ getFrequency() {
66
+ return 440 * Math.pow(2, (this.pitch - 69) / 12);
67
+ }
68
+ toJSON() {
69
+ return {
70
+ id: this.id,
71
+ pitch: this.pitch,
72
+ velocity: this.velocity,
73
+ startFrame: this.startFrame,
74
+ durationFrames: this.durationFrames,
75
+ channel: this.channel,
76
+ };
77
+ }
78
+ static fromJSON(data) {
79
+ return new MidiNote(data.id, data.pitch, data.velocity, data.startFrame, data.durationFrames, data.channel);
80
+ }
81
+ }
82
+ //# sourceMappingURL=MidiNote.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MidiNote.js","sourceRoot":"","sources":["../../src/domain/MidiNote.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAKvC,MAAM,OAAO,QAAQ;IAWjB,YACI,EAAc,EACd,KAAa,EACb,QAAgB,EAChB,UAAsB,EACtB,cAA0B,EAC1B,UAAkB,CAAC;QATvB,UAAU;QACM,YAAO,GAAG,IAAI,MAAM,EAAY,CAAC;QAU7C,IAAI,CAAC,EAAE,GAAG,EAAE,CAAC;QACb,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,IAAI,CAAC,GAAG,CAAC,GAAG,EAAE,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;QAC3D,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,IAA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AE,CAAC;IAClC,CAAC;IAED;;OAEG;IACI,YAAY;QACf,OAAO,GAAG,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,KAAK,GAAG,EAAE,CAAC,GAAG,EAAE,CAAC,CAAC;IACrD,CAAC;IAEM,MAAM;QACT,OAAO;YACH,EAAE,EAAE,IAAI,CAAC,EAAE;YACX,KAAK,EAAE,IAAI,CAAC,KAAK;YACjB,QAAQ,EAAE,IAAI,CAAC,QAAQ;YACvB,UAAU,EAAE,IAAI,CAAC,UAAU;YAC3B,cAAc,EAAE,IAAI,CAAC,cAAc;YACnC,OAAO,EAAE,IAAI,CAAC,OAAO;SACxB,CAAC;IACN,CAAC;IAEM,MAAM,CAAC,QAAQ,CAAC,IAAsB;QACzC,OAAO,IAAI,QAAQ,CACf,IAAI,CAAC,EAAE,EACP,IAAI,CAAC,KAAK,EACV,IAAI,CAAC,QAAQ,EACb,IAAI,CAAC,UAAU,EACf,IAAI,CAAC,cAAc,EACnB,IAAI,CAAC,OAAO,CACf,CAAC;IACN,CAAC;CACJ"}
@@ -0,0 +1,65 @@
1
+ import { Signal } from '../lib/Signal';
2
+ import { FrameCount, RegionId } from './types';
3
+ import { MidiNote, MidiNoteId } from './MidiNote';
4
+ import { TimeDomain, TimePosition } from './temporal/types';
5
+ import { TempoMap } from './temporal/TempoMap';
6
+ export declare class MidiRegion {
7
+ id: RegionId;
8
+ name: string;
9
+ start: FrameCount;
10
+ length: FrameCount;
11
+ private _notes;
12
+ muted: boolean;
13
+ layer: number;
14
+ locked: boolean;
15
+ /** Time domain for this region */
16
+ timeDomain: TimeDomain;
17
+ readonly noteAdded: Signal<MidiNote>;
18
+ readonly noteRemoved: Signal<string>;
19
+ readonly noteChanged: Signal<MidiNote>;
20
+ readonly lockedChanged: Signal<boolean>;
21
+ constructor(id: RegionId, name: string, start: FrameCount, length: FrameCount, layer?: number);
22
+ get end(): FrameCount;
23
+ get notes(): ReadonlyArray<MidiNote>;
24
+ addNote(note: MidiNote): void;
25
+ removeNote(noteId: MidiNoteId): MidiNote | undefined;
26
+ getNote(noteId: MidiNoteId): MidiNote | undefined;
27
+ getNotes(): ReadonlyArray<MidiNote>;
28
+ /**
29
+ * Get notes that overlap with the given frame range (relative to region start)
30
+ */
31
+ getNotesInRange(startFrame: FrameCount, endFrame: FrameCount): MidiNote[];
32
+ move(newStart: FrameCount): void;
33
+ resize(newLength: FrameCount): void;
34
+ setLocked(locked: boolean): void;
35
+ /** Get position as TimePosition */
36
+ getPosition(): TimePosition;
37
+ /** Get duration as TimePosition */
38
+ getDuration(): TimePosition;
39
+ /** Set position from TimePosition (converts if needed) */
40
+ setPosition(pos: TimePosition, tempoMap: TempoMap, bpm: number): void;
41
+ /** Set duration from TimePosition (converts if needed) */
42
+ setDuration(duration: TimePosition, tempoMap: TempoMap, bpm: number): void;
43
+ private sortNotes;
44
+ toJSON(): MidiRegionSnapshot;
45
+ static fromJSON(data: MidiRegionSnapshot): MidiRegion;
46
+ }
47
+ export interface MidiRegionSnapshot {
48
+ id: string;
49
+ name: string;
50
+ start: number;
51
+ length: number;
52
+ muted: boolean;
53
+ layer: number;
54
+ locked?: boolean;
55
+ timeDomain?: number;
56
+ notes: Array<{
57
+ id: string;
58
+ pitch: number;
59
+ velocity: number;
60
+ startFrame: number;
61
+ durationFrames: number;
62
+ channel: number;
63
+ }>;
64
+ }
65
+ //# sourceMappingURL=MidiRegion.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MidiRegion.d.ts","sourceRoot":"","sources":["../../src/domain/MidiRegion.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AACvC,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAC/C,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAClD,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AA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;IAI3B,0DAA0D;IAC1D,WAAW,CAAC,GAAG,EAAE,YAAY,EAAE,QAAQ,EAAE,QAAQ,EAAE,GAAG,EAAE,MAAM,GAAG,IAAI;IAKrE,0DAA0D;IAC1D,WAAW,CAAC,QAAQ,EAAE,YAAY,EAAE,QAAQ,EAAE,QAAQ,EAAE,GAAG,EAAE,MAAM,GAAG,IAAI;IAK1E,OAAO,CAAC,SAAS;IAIV,MAAM,IAAI,kBAAkB;WAcrB,QAAQ,CAAC,IAAI,EAAE,kBAAkB,GAAG,UAAU;CAmB/D;AAED,MAAM,WAAW,kBAAkB;IAC/B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,OAAO,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,KAAK,EAAE,KAAK,CAAC;QACT,EAAE,EAAE,MAAM,CAAC;QACX,KAAK,EAAE,MAAM,CAAC;QACd,QAAQ,EAAE,MAAM,CAAC;QACjB,UAAU,EAAE,MAAM,CAAC;QACnB,cAAc,EAAE,MAAM,CAAC;QACvB,OAAO,EAAE,MAAM,CAAC;KACnB,CAAC,CAAC;CACN"}
@@ -0,0 +1,123 @@
1
+ import { Signal } from '../lib/Signal';
2
+ import { MidiNote } from './MidiNote';
3
+ import { TimeDomain } from './temporal/types';
4
+ export class MidiRegion {
5
+ constructor(id, name, start, length, layer = 0) {
6
+ // Notes
7
+ this._notes = [];
8
+ // Playback properties
9
+ this.muted = false;
10
+ this.layer = 0;
11
+ this.locked = false;
12
+ /** Time domain for this region */
13
+ this.timeDomain = TimeDomain.BeatTime;
14
+ // Signals
15
+ this.noteAdded = new Signal();
16
+ this.noteRemoved = new Signal();
17
+ this.noteChanged = new Signal();
18
+ this.lockedChanged = new Signal();
19
+ this.id = id;
20
+ this.name = name;
21
+ this.start = start;
22
+ this.length = length;
23
+ this.layer = layer;
24
+ }
25
+ get end() {
26
+ return this.start + this.length;
27
+ }
28
+ get notes() {
29
+ return this._notes;
30
+ }
31
+ addNote(note) {
32
+ this._notes.push(note);
33
+ this.sortNotes();
34
+ // Subscribe to note changes
35
+ note.changed.connect((n) => {
36
+ this.noteChanged.emit(n);
37
+ });
38
+ this.noteAdded.emit(note);
39
+ }
40
+ removeNote(noteId) {
41
+ const index = this._notes.findIndex(n => n.id === noteId);
42
+ if (index === -1)
43
+ return undefined;
44
+ const removed = this._notes.splice(index, 1)[0];
45
+ this.noteRemoved.emit(noteId);
46
+ return removed;
47
+ }
48
+ getNote(noteId) {
49
+ return this._notes.find(n => n.id === noteId);
50
+ }
51
+ getNotes() {
52
+ return this._notes;
53
+ }
54
+ /**
55
+ * Get notes that overlap with the given frame range (relative to region start)
56
+ */
57
+ getNotesInRange(startFrame, endFrame) {
58
+ return this._notes.filter(n => n.endFrame > startFrame && n.startFrame < endFrame);
59
+ }
60
+ move(newStart) {
61
+ if (newStart < 0)
62
+ newStart = 0;
63
+ this.start = newStart;
64
+ }
65
+ resize(newLength) {
66
+ if (newLength < 0)
67
+ return;
68
+ this.length = newLength;
69
+ }
70
+ setLocked(locked) {
71
+ if (this.locked === locked)
72
+ return;
73
+ this.locked = locked;
74
+ this.lockedChanged.emit(locked);
75
+ }
76
+ /** Get position as TimePosition */
77
+ getPosition() {
78
+ return { domain: this.timeDomain, value: this.start };
79
+ }
80
+ /** Get duration as TimePosition */
81
+ getDuration() {
82
+ return { domain: this.timeDomain, value: this.length };
83
+ }
84
+ /** Set position from TimePosition (converts if needed) */
85
+ setPosition(pos, tempoMap, bpm) {
86
+ this.start = tempoMap.toFrames(pos, bpm);
87
+ this.timeDomain = pos.domain;
88
+ }
89
+ /** Set duration from TimePosition (converts if needed) */
90
+ setDuration(duration, tempoMap, bpm) {
91
+ this.length = tempoMap.toFrames(duration, bpm);
92
+ this.timeDomain = duration.domain;
93
+ }
94
+ sortNotes() {
95
+ this._notes.sort((a, b) => a.startFrame - b.startFrame);
96
+ }
97
+ toJSON() {
98
+ return {
99
+ id: this.id,
100
+ name: this.name,
101
+ start: this.start,
102
+ length: this.length,
103
+ muted: this.muted,
104
+ layer: this.layer,
105
+ locked: this.locked,
106
+ timeDomain: this.timeDomain,
107
+ notes: this._notes.map(n => n.toJSON()),
108
+ };
109
+ }
110
+ static fromJSON(data) {
111
+ var _a, _b;
112
+ const region = new MidiRegion(data.id, data.name, data.start, data.length, data.layer);
113
+ region.muted = data.muted;
114
+ region.locked = (_a = data.locked) !== null && _a !== void 0 ? _a : false;
115
+ region.timeDomain = (_b = data.timeDomain) !== null && _b !== void 0 ? _b : TimeDomain.BeatTime;
116
+ for (const noteData of data.notes) {
117
+ const note = MidiNote.fromJSON(noteData);
118
+ region.addNote(note);
119
+ }
120
+ return region;
121
+ }
122
+ }
123
+ //# sourceMappingURL=MidiRegion.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MidiRegion.js","sourceRoot":"","sources":["../../src/domain/MidiRegion.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAEvC,OAAO,EAAE,QAAQ,EAAc,MAAM,YAAY,CAAC;AAClD,OAAO,EAAE,UAAU,EAAgB,MAAM,kBAAkB,CAAC;AAG5D,MAAM,OAAO,UAAU;IAyBnB,YACI,EAAY,EACZ,IAAY,EACZ,KAAiB,EACjB,MAAkB,EAClB,QAAgB,CAAC;QAtBrB,QAAQ;QACA,WAAM,GAAe,EAAE,CAAC;QAEhC,sBAAsB;QACf,UAAK,GAAY,KAAK,CAAC;QACvB,UAAK,GAAW,CAAC,CAAC;QAClB,WAAM,GAAY,KAAK,CAAC;QAE/B,kCAAkC;QAC3B,eAAU,GAAe,UAAU,CAAC,QAAQ,CAAC;QAEpD,UAAU;QACM,cAAS,GAAG,IAAI,MAAM,EAAY,CAAC;QACnC,gBAAW,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AAC,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC;QAC1B,MAAM,CAAC,MAAM,GAAG,MAAA,IAAI,CAAC,MAAM,mCAAI,KAAK,CAAC;QACrC,MAAM,CAAC,UAAU,GAAG,MAAA,IAAI,CAAC,UAAU,mCAAI,UAAU,CAAC,QAAQ,CAAC;QAE3D,KAAK,MAAM,QAAQ,IAAI,IAAI,CAAC,KAAK,EAAE,CAAC;YAChC,MAAM,IAAI,GAAG,QAAQ,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC;YACzC,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;QACzB,CAAC;QAED,OAAO,MAAM,CAAC;IAClB,CAAC;CACJ"}
@@ -0,0 +1,62 @@
1
+ import { Signal } from '../lib/Signal';
2
+ import type { Session } from './Session';
3
+ export interface MixerSceneTrackState {
4
+ trackId: string;
5
+ volume: number;
6
+ pan: number;
7
+ mute: boolean;
8
+ solo: boolean;
9
+ /** Map of processorId -> { paramId -> value } */
10
+ pluginParameters: Record<string, Record<string, number>>;
11
+ }
12
+ export interface MixerSceneSnapshot {
13
+ id: string;
14
+ name: string;
15
+ createdAt: number;
16
+ tracks: MixerSceneTrackState[];
17
+ }
18
+ /**
19
+ * Captures all track volumes, pans, mutes, solos, and plugin parameters
20
+ * at a point in time so they can be recalled later.
21
+ */
22
+ export declare class MixerScene {
23
+ readonly id: string;
24
+ name: string;
25
+ readonly createdAt: number;
26
+ readonly tracks: MixerSceneTrackState[];
27
+ constructor(id: string, name: string, tracks: MixerSceneTrackState[], createdAt?: number);
28
+ toJSON(): MixerSceneSnapshot;
29
+ static fromJSON(data: MixerSceneSnapshot): MixerScene;
30
+ }
31
+ /**
32
+ * Manages saving, recalling, and deleting mixer scenes for a Session.
33
+ */
34
+ export declare class MixerSceneManager {
35
+ private _scenes;
36
+ readonly sceneAdded: Signal<MixerScene>;
37
+ readonly sceneRemoved: Signal<string>;
38
+ readonly sceneRecalled: Signal<string>;
39
+ /**
40
+ * Capture the current mixer state from the session and save as a scene.
41
+ */
42
+ saveScene(name: string, session: Session): string;
43
+ /**
44
+ * Recall (restore) a saved mixer scene, applying volumes/pans/mutes/solos/plugin params.
45
+ */
46
+ recallScene(sceneId: string, session: Session): boolean;
47
+ /**
48
+ * Delete a scene by ID.
49
+ */
50
+ deleteScene(sceneId: string): boolean;
51
+ /**
52
+ * Get all saved scenes.
53
+ */
54
+ get scenes(): ReadonlyArray<MixerScene>;
55
+ /**
56
+ * Get a specific scene.
57
+ */
58
+ getScene(sceneId: string): MixerScene | undefined;
59
+ toJSON(): MixerSceneSnapshot[];
60
+ loadFromJSON(snapshots: MixerSceneSnapshot[]): void;
61
+ }
62
+ //# sourceMappingURL=MixerScene.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MixerScene.d.ts","sourceRoot":"","sources":["../../src/domain/MixerScene.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AACvC,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAMzC,MAAM,WAAW,oBAAoB;IACjC,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,MAAM,CAAC;IACf,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,OAAO,CAAC;IACd,IAAI,EAAE,OAAO,CAAC;IACd,iDAAiD;IACjD,gBAAgB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;CAC5D;AAED,MAAM,WAAW,kBAAkB;IAC/B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,oBAAoB,EAAE,CAAC;CAClC;AAID;;;GAGG;AACH,qBAAa,UAAU;IACnB,SAAgB,EAAE,EAAE,MAAM,CAAC;IACpB,IAAI,EAAE,MAAM,CAAC;IACpB,SAAgB,SAAS,EAAE,MAAM,CAAC;IAClC,SAAgB,MAAM,EAAE,oBAAoB,EAAE,CAAC;gBAEnC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,oBAAoB,EAAE,EAAE,SAAS,CAAC,EAAE,MAAM;IAOjF,MAAM,IAAI,kBAAkB;WASrB,QAAQ,CAAC,IAAI,EAAE,kBAAkB,GAAG,UAAU;CAG/D;AAID;;GAEG;AACH,qBAAa,iBAAiB;IAC1B,OAAO,CAAC,OAAO,CAAsC;IAErD,SAAgB,UAAU,qBAA4B;IACtD,SAAgB,YAAY,iBAAwB;IACpD,SAAgB,aAAa,iBAAwB;IAErD;;OAEG;IACI,SAAS,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,MAAM;IAiCxD;;OAEG;IACI,WAAW,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,OAAO;IA4B9D;;OAEG;IACI,WAAW,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO;IAO5C;;OAEG;IACH,IAAW,MAAM,IAAI,aAAa,CAAC,UAAU,CAAC,CAE7C;IAED;;OAEG;IACI,QAAQ,CAAC,OAAO,EAAE,MAAM,GAAG,UAAU,GAAG,SAAS;IAMjD,MAAM,IAAI,kBAAkB,EAAE;IAI9B,YAAY,CAAC,SAAS,EAAE,kBAAkB,EAAE,GAAG,IAAI;CAO7D"}
@@ -0,0 +1,131 @@
1
+ import { Signal } from '../lib/Signal';
2
+ import { PluginInsert } from '../processing/PluginInsert';
3
+ // ─── MixerScene ───────────────────────────────────────────────────────────────
4
+ /**
5
+ * Captures all track volumes, pans, mutes, solos, and plugin parameters
6
+ * at a point in time so they can be recalled later.
7
+ */
8
+ export class MixerScene {
9
+ constructor(id, name, tracks, createdAt) {
10
+ this.id = id;
11
+ this.name = name;
12
+ this.tracks = tracks;
13
+ this.createdAt = createdAt !== null && createdAt !== void 0 ? createdAt : Date.now();
14
+ }
15
+ toJSON() {
16
+ return {
17
+ id: this.id,
18
+ name: this.name,
19
+ createdAt: this.createdAt,
20
+ tracks: this.tracks,
21
+ };
22
+ }
23
+ static fromJSON(data) {
24
+ return new MixerScene(data.id, data.name, data.tracks, data.createdAt);
25
+ }
26
+ }
27
+ // ─── MixerSceneManager ───────────────────────────────────────────────────────
28
+ /**
29
+ * Manages saving, recalling, and deleting mixer scenes for a Session.
30
+ */
31
+ export class MixerSceneManager {
32
+ constructor() {
33
+ this._scenes = new Map();
34
+ this.sceneAdded = new Signal();
35
+ this.sceneRemoved = new Signal();
36
+ this.sceneRecalled = new Signal();
37
+ }
38
+ /**
39
+ * Capture the current mixer state from the session and save as a scene.
40
+ */
41
+ saveScene(name, session) {
42
+ const id = crypto.randomUUID();
43
+ const trackStates = [];
44
+ for (const track of session.tracks) {
45
+ const pluginParams = {};
46
+ for (const proc of track.route.processors) {
47
+ if (proc instanceof PluginInsert) {
48
+ const paramMap = {};
49
+ for (const param of proc.plugin.getParameters()) {
50
+ paramMap[param.id] = param.value;
51
+ }
52
+ pluginParams[proc.id] = paramMap;
53
+ }
54
+ }
55
+ trackStates.push({
56
+ trackId: track.id,
57
+ volume: track.route.volume,
58
+ pan: track.route.pan,
59
+ mute: track.mute,
60
+ solo: track.solo,
61
+ pluginParameters: pluginParams,
62
+ });
63
+ }
64
+ const scene = new MixerScene(id, name, trackStates);
65
+ this._scenes.set(id, scene);
66
+ this.sceneAdded.emit(scene);
67
+ return id;
68
+ }
69
+ /**
70
+ * Recall (restore) a saved mixer scene, applying volumes/pans/mutes/solos/plugin params.
71
+ */
72
+ recallScene(sceneId, session) {
73
+ const scene = this._scenes.get(sceneId);
74
+ if (!scene)
75
+ return false;
76
+ for (const trackState of scene.tracks) {
77
+ const track = session.getTrack(trackState.trackId);
78
+ if (!track)
79
+ continue;
80
+ track.route.volume = trackState.volume;
81
+ track.route.pan = trackState.pan;
82
+ track.setMute(trackState.mute);
83
+ track.setSolo(trackState.solo);
84
+ // Restore plugin parameters
85
+ for (const [procId, paramMap] of Object.entries(trackState.pluginParameters)) {
86
+ const proc = track.route.processors.find(p => p.id === procId);
87
+ if (proc instanceof PluginInsert) {
88
+ for (const [paramId, value] of Object.entries(paramMap)) {
89
+ proc.plugin.setParameter(paramId, value);
90
+ }
91
+ }
92
+ }
93
+ }
94
+ this.sceneRecalled.emit(sceneId);
95
+ return true;
96
+ }
97
+ /**
98
+ * Delete a scene by ID.
99
+ */
100
+ deleteScene(sceneId) {
101
+ if (!this._scenes.has(sceneId))
102
+ return false;
103
+ this._scenes.delete(sceneId);
104
+ this.sceneRemoved.emit(sceneId);
105
+ return true;
106
+ }
107
+ /**
108
+ * Get all saved scenes.
109
+ */
110
+ get scenes() {
111
+ return Array.from(this._scenes.values());
112
+ }
113
+ /**
114
+ * Get a specific scene.
115
+ */
116
+ getScene(sceneId) {
117
+ return this._scenes.get(sceneId);
118
+ }
119
+ // ─── Serialization ───────────────────────────────────────────────────────
120
+ toJSON() {
121
+ return Array.from(this._scenes.values()).map(s => s.toJSON());
122
+ }
123
+ loadFromJSON(snapshots) {
124
+ this._scenes.clear();
125
+ for (const snap of snapshots) {
126
+ const scene = MixerScene.fromJSON(snap);
127
+ this._scenes.set(scene.id, scene);
128
+ }
129
+ }
130
+ }
131
+ //# sourceMappingURL=MixerScene.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MixerScene.js","sourceRoot":"","sources":["../../src/domain/MixerScene.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAGvC,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAqB1D,iFAAiF;AAEjF;;;GAGG;AACH,MAAM,OAAO,UAAU;IAMnB,YAAY,EAAU,EAAE,IAAY,EAAE,MAA8B,EAAE,SAAkB;QACpF,IAAI,CAAC,EAAE,GAAG,EAAE,CAAC;QACb,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;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CAAC;IACrC,CAAC;IAED,4EAA4E;IAErE,MAAM;QACT,OAAO,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,MAAM,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC;IAClE,CAAC;IAEM,YAAY,CAAC,SAA+B;QAC/C,IAAI,CAAC,OAAO,CAAC,KAAK,EAAE,CAAC;QACrB,KAAK,MAAM,IAAI,IAAI,SAAS,EAAE,CAAC;YAC3B,MAAM,KAAK,GAAG,UAAU,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;YACxC,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,EAAE,EAAE,KAAK,CAAC,CAAC;QACtC,CAAC;IACL,CAAC;CACJ"}
@@ -0,0 +1,15 @@
1
+ /**
2
+ * Monitor Mode
3
+ * Ardour 참조: libs/ardour/ardour/types.h (MonitorChoice)
4
+ */
5
+ export declare enum MonitorMode {
6
+ /** 녹음 중 = input, 재생 중 = disk */
7
+ AUTO = "auto",
8
+ /** 항상 입력 모니터링 */
9
+ INPUT = "input",
10
+ /** 항상 디스크 모니터링 */
11
+ DISK = "disk",
12
+ /** 외부 모니터링 (하드웨어) */
13
+ EXTERNAL = "external"
14
+ }
15
+ //# sourceMappingURL=MonitorMode.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MonitorMode.d.ts","sourceRoot":"","sources":["../../src/domain/MonitorMode.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,oBAAY,WAAW;IACnB,gCAAgC;IAChC,IAAI,SAAS;IACb,iBAAiB;IACjB,KAAK,UAAU;IACf,kBAAkB;IAClB,IAAI,SAAS;IACb,qBAAqB;IACrB,QAAQ,aAAa;CACxB"}
@@ -0,0 +1,16 @@
1
+ /**
2
+ * Monitor Mode
3
+ * Ardour 참조: libs/ardour/ardour/types.h (MonitorChoice)
4
+ */
5
+ export var MonitorMode;
6
+ (function (MonitorMode) {
7
+ /** 녹음 중 = input, 재생 중 = disk */
8
+ MonitorMode["AUTO"] = "auto";
9
+ /** 항상 입력 모니터링 */
10
+ MonitorMode["INPUT"] = "input";
11
+ /** 항상 디스크 모니터링 */
12
+ MonitorMode["DISK"] = "disk";
13
+ /** 외부 모니터링 (하드웨어) */
14
+ MonitorMode["EXTERNAL"] = "external";
15
+ })(MonitorMode || (MonitorMode = {}));
16
+ //# sourceMappingURL=MonitorMode.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MonitorMode.js","sourceRoot":"","sources":["../../src/domain/MonitorMode.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,MAAM,CAAN,IAAY,WASX;AATD,WAAY,WAAW;IACnB,gCAAgC;IAChC,4BAAa,CAAA;IACb,iBAAiB;IACjB,8BAAe,CAAA;IACf,kBAAkB;IAClB,4BAAa,CAAA;IACb,qBAAqB;IACrB,oCAAqB,CAAA;AACzB,CAAC,EATW,WAAW,KAAX,WAAW,QAStB"}
@@ -0,0 +1,25 @@
1
+ /**
2
+ * Mouse Mode
3
+ * Ardour 참조: gtk2_ardour/editing_syms.inc.h (MouseMode)
4
+ *
5
+ * 에디터의 마우스 동작 모드를 결정합니다.
6
+ */
7
+ export declare enum MouseMode {
8
+ /** 리전 선택/이동 (기본) */
9
+ OBJECT = "object",
10
+ /** 시간 범위 선택 */
11
+ RANGE = "range",
12
+ /** 리전 분할 */
13
+ CUT = "cut",
14
+ /** MIDI 노트 그리기 */
15
+ DRAW = "draw",
16
+ /** 리전 내부 편집 (오토메이션 포인트 등) */
17
+ CONTENT = "content",
18
+ /** 리전 시청 (클릭하면 재생) */
19
+ AUDITION = "audition",
20
+ /** 리전 타임 스트레치 */
21
+ STRETCH = "stretch",
22
+ /** 리전 내부 편집 (노트/오토메이션) */
23
+ INTERNAL_EDIT = "internal_edit"
24
+ }
25
+ //# sourceMappingURL=MouseMode.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MouseMode.d.ts","sourceRoot":"","sources":["../../src/domain/MouseMode.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,oBAAY,SAAS;IACjB,oBAAoB;IACpB,MAAM,WAAW;IACjB,eAAe;IACf,KAAK,UAAU;IACf,YAAY;IACZ,GAAG,QAAQ;IACX,kBAAkB;IAClB,IAAI,SAAS;IACb,6BAA6B;IAC7B,OAAO,YAAY;IACnB,sBAAsB;IACtB,QAAQ,aAAa;IACrB,iBAAiB;IACjB,OAAO,YAAY;IACnB,0BAA0B;IAC1B,aAAa,kBAAkB;CAClC"}
@@ -0,0 +1,26 @@
1
+ /**
2
+ * Mouse Mode
3
+ * Ardour 참조: gtk2_ardour/editing_syms.inc.h (MouseMode)
4
+ *
5
+ * 에디터의 마우스 동작 모드를 결정합니다.
6
+ */
7
+ export var MouseMode;
8
+ (function (MouseMode) {
9
+ /** 리전 선택/이동 (기본) */
10
+ MouseMode["OBJECT"] = "object";
11
+ /** 시간 범위 선택 */
12
+ MouseMode["RANGE"] = "range";
13
+ /** 리전 분할 */
14
+ MouseMode["CUT"] = "cut";
15
+ /** MIDI 노트 그리기 */
16
+ MouseMode["DRAW"] = "draw";
17
+ /** 리전 내부 편집 (오토메이션 포인트 등) */
18
+ MouseMode["CONTENT"] = "content";
19
+ /** 리전 시청 (클릭하면 재생) */
20
+ MouseMode["AUDITION"] = "audition";
21
+ /** 리전 타임 스트레치 */
22
+ MouseMode["STRETCH"] = "stretch";
23
+ /** 리전 내부 편집 (노트/오토메이션) */
24
+ MouseMode["INTERNAL_EDIT"] = "internal_edit";
25
+ })(MouseMode || (MouseMode = {}));
26
+ //# sourceMappingURL=MouseMode.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MouseMode.js","sourceRoot":"","sources":["../../src/domain/MouseMode.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,MAAM,CAAN,IAAY,SAiBX;AAjBD,WAAY,SAAS;IACjB,oBAAoB;IACpB,8BAAiB,CAAA;IACjB,eAAe;IACf,4BAAe,CAAA;IACf,YAAY;IACZ,wBAAW,CAAA;IACX,kBAAkB;IAClB,0BAAa,CAAA;IACb,6BAA6B;IAC7B,gCAAmB,CAAA;IACnB,sBAAsB;IACtB,kCAAqB,CAAA;IACrB,iBAAiB;IACjB,gCAAmB,CAAA;IACnB,0BAA0B;IAC1B,4CAA+B,CAAA;AACnC,CAAC,EAjBW,SAAS,KAAT,SAAS,QAiBpB"}
@@ -0,0 +1,18 @@
1
+ /**
2
+ * OverlapType — describes how a query range relates to a region's time span.
3
+ *
4
+ * Modeled after Ardour's Evoral::OverlapType for region coverage detection.
5
+ */
6
+ export declare enum OverlapType {
7
+ /** No overlap at all */
8
+ NONE = 0,
9
+ /** Query range is fully inside the region */
10
+ INTERNAL = 1,
11
+ /** Query overlaps the region's start (but not its end) */
12
+ START = 2,
13
+ /** Query overlaps the region's end (but not its start) */
14
+ END = 3,
15
+ /** Region is fully inside the query range */
16
+ EXTERNAL = 4
17
+ }
18
+ //# sourceMappingURL=OverlapType.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"OverlapType.d.ts","sourceRoot":"","sources":["../../src/domain/OverlapType.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,oBAAY,WAAW;IACnB,wBAAwB;IACxB,IAAI,IAAA;IACJ,6CAA6C;IAC7C,QAAQ,IAAA;IACR,0DAA0D;IAC1D,KAAK,IAAA;IACL,0DAA0D;IAC1D,GAAG,IAAA;IACH,6CAA6C;IAC7C,QAAQ,IAAA;CACX"}
@@ -0,0 +1,19 @@
1
+ /**
2
+ * OverlapType — describes how a query range relates to a region's time span.
3
+ *
4
+ * Modeled after Ardour's Evoral::OverlapType for region coverage detection.
5
+ */
6
+ export var OverlapType;
7
+ (function (OverlapType) {
8
+ /** No overlap at all */
9
+ OverlapType[OverlapType["NONE"] = 0] = "NONE";
10
+ /** Query range is fully inside the region */
11
+ OverlapType[OverlapType["INTERNAL"] = 1] = "INTERNAL";
12
+ /** Query overlaps the region's start (but not its end) */
13
+ OverlapType[OverlapType["START"] = 2] = "START";
14
+ /** Query overlaps the region's end (but not its start) */
15
+ OverlapType[OverlapType["END"] = 3] = "END";
16
+ /** Region is fully inside the query range */
17
+ OverlapType[OverlapType["EXTERNAL"] = 4] = "EXTERNAL";
18
+ })(OverlapType || (OverlapType = {}));
19
+ //# sourceMappingURL=OverlapType.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"OverlapType.js","sourceRoot":"","sources":["../../src/domain/OverlapType.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,MAAM,CAAN,IAAY,WAWX;AAXD,WAAY,WAAW;IACnB,wBAAwB;IACxB,6CAAI,CAAA;IACJ,6CAA6C;IAC7C,qDAAQ,CAAA;IACR,0DAA0D;IAC1D,+CAAK,CAAA;IACL,0DAA0D;IAC1D,2CAAG,CAAA;IACH,6CAA6C;IAC7C,qDAAQ,CAAA;AACZ,CAAC,EAXW,WAAW,KAAX,WAAW,QAWtB"}