@nodetool-ai/timeline 0.8.18 → 0.8.20
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/dist/.nodetool-build-stamp +1 -1
- package/dist/animation/custom.d.ts.map +1 -1
- package/dist/animation/custom.js +35 -0
- package/dist/animation/custom.js.map +1 -1
- package/dist/animation/sample.d.ts +14 -0
- package/dist/animation/sample.d.ts.map +1 -1
- package/dist/animation/sample.js +22 -1
- package/dist/animation/sample.js.map +1 -1
- package/dist/animation/types.d.ts +8 -1
- package/dist/animation/types.d.ts.map +1 -1
- package/dist/animation/types.js +31 -3
- package/dist/animation/types.js.map +1 -1
- package/dist/authoredStyles.d.ts +7 -1
- package/dist/authoredStyles.d.ts.map +1 -1
- package/dist/authoredStyles.js +6 -1
- package/dist/authoredStyles.js.map +1 -1
- package/dist/autoCrossfade.d.ts +30 -0
- package/dist/autoCrossfade.d.ts.map +1 -0
- package/dist/autoCrossfade.js +130 -0
- package/dist/autoCrossfade.js.map +1 -0
- package/dist/automation.d.ts +32 -1
- package/dist/automation.d.ts.map +1 -1
- package/dist/automation.js +78 -1
- package/dist/automation.js.map +1 -1
- package/dist/automationRanges.d.ts +375 -0
- package/dist/automationRanges.d.ts.map +1 -0
- package/dist/automationRanges.js +375 -0
- package/dist/automationRanges.js.map +1 -0
- package/dist/clipAudio.d.ts +3 -1
- package/dist/clipAudio.d.ts.map +1 -1
- package/dist/clipAudio.js.map +1 -1
- package/dist/clipLoop.d.ts +67 -0
- package/dist/clipLoop.d.ts.map +1 -0
- package/dist/clipLoop.js +339 -0
- package/dist/clipLoop.js.map +1 -0
- package/dist/clipSpeed.d.ts.map +1 -1
- package/dist/clipSpeed.js +7 -0
- package/dist/clipSpeed.js.map +1 -1
- package/dist/defaults.d.ts.map +1 -1
- package/dist/defaults.js +9 -0
- package/dist/defaults.js.map +1 -1
- package/dist/dropResolve.d.ts.map +1 -1
- package/dist/dropResolve.js +56 -17
- package/dist/dropResolve.js.map +1 -1
- package/dist/finish-storyboard.d.ts.map +1 -1
- package/dist/finish-storyboard.js +6 -1
- package/dist/finish-storyboard.js.map +1 -1
- package/dist/harmony/chordChart.d.ts +25 -0
- package/dist/harmony/chordChart.d.ts.map +1 -0
- package/dist/harmony/chordChart.js +99 -0
- package/dist/harmony/chordChart.js.map +1 -0
- package/dist/harmony/chordRange.d.ts +9 -0
- package/dist/harmony/chordRange.d.ts.map +1 -0
- package/dist/harmony/chordRange.js +32 -0
- package/dist/harmony/chordRange.js.map +1 -0
- package/dist/harmony/chordSymbols.d.ts +28 -0
- package/dist/harmony/chordSymbols.d.ts.map +1 -0
- package/dist/harmony/chordSymbols.js +147 -0
- package/dist/harmony/chordSymbols.js.map +1 -0
- package/dist/harmony/chordTrack.d.ts +13 -0
- package/dist/harmony/chordTrack.d.ts.map +1 -0
- package/dist/harmony/chordTrack.js +11 -0
- package/dist/harmony/chordTrack.js.map +1 -0
- package/dist/harmony/detect.d.ts +35 -0
- package/dist/harmony/detect.d.ts.map +1 -0
- package/dist/harmony/detect.js +138 -0
- package/dist/harmony/detect.js.map +1 -0
- package/dist/harmony/detectAudio.d.ts +62 -0
- package/dist/harmony/detectAudio.d.ts.map +1 -0
- package/dist/harmony/detectAudio.js +226 -0
- package/dist/harmony/detectAudio.js.map +1 -0
- package/dist/harmony/expand.d.ts +7 -12
- package/dist/harmony/expand.d.ts.map +1 -1
- package/dist/harmony/expand.js +63 -11
- package/dist/harmony/expand.js.map +1 -1
- package/dist/harmony/index.d.ts +7 -0
- package/dist/harmony/index.d.ts.map +1 -1
- package/dist/harmony/index.js +7 -0
- package/dist/harmony/index.js.map +1 -1
- package/dist/harmony/progressionLibrary.d.ts +33 -0
- package/dist/harmony/progressionLibrary.d.ts.map +1 -0
- package/dist/harmony/progressionLibrary.js +71 -0
- package/dist/harmony/progressionLibrary.js.map +1 -0
- package/dist/harmony/summary.d.ts +4 -0
- package/dist/harmony/summary.d.ts.map +1 -0
- package/dist/harmony/summary.js +22 -0
- package/dist/harmony/summary.js.map +1 -0
- package/dist/index.d.ts +8 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +8 -0
- package/dist/index.js.map +1 -1
- package/dist/interchange.d.ts.map +1 -1
- package/dist/interchange.js +3 -0
- package/dist/interchange.js.map +1 -1
- package/dist/keyframes.d.ts +12 -2
- package/dist/keyframes.d.ts.map +1 -1
- package/dist/keyframes.js +24 -1
- package/dist/keyframes.js.map +1 -1
- package/dist/loopWindow.d.ts +17 -0
- package/dist/loopWindow.d.ts.map +1 -0
- package/dist/loopWindow.js +34 -0
- package/dist/loopWindow.js.map +1 -0
- package/dist/midi/cacheKey.d.ts +11 -2
- package/dist/midi/cacheKey.d.ts.map +1 -1
- package/dist/midi/cacheKey.js +69 -9
- package/dist/midi/cacheKey.js.map +1 -1
- package/dist/midi/controllerEdit.d.ts +35 -0
- package/dist/midi/controllerEdit.d.ts.map +1 -0
- package/dist/midi/controllerEdit.js +94 -0
- package/dist/midi/controllerEdit.js.map +1 -0
- package/dist/midi/controllerRange.d.ts +13 -0
- package/dist/midi/controllerRange.d.ts.map +1 -0
- package/dist/midi/controllerRange.js +13 -0
- package/dist/midi/controllerRange.js.map +1 -0
- package/dist/midi/controllers.d.ts +95 -0
- package/dist/midi/controllers.d.ts.map +1 -0
- package/dist/midi/controllers.js +421 -0
- package/dist/midi/controllers.js.map +1 -0
- package/dist/midi/curveCut.d.ts +17 -0
- package/dist/midi/curveCut.d.ts.map +1 -0
- package/dist/midi/curveCut.js +45 -0
- package/dist/midi/curveCut.js.map +1 -0
- package/dist/midi/edit.d.ts +13 -1
- package/dist/midi/edit.d.ts.map +1 -1
- package/dist/midi/edit.js +19 -3
- package/dist/midi/edit.js.map +1 -1
- package/dist/midi/engines/bl1.d.ts +10 -1
- package/dist/midi/engines/bl1.d.ts.map +1 -1
- package/dist/midi/engines/bl1.js +26 -6
- package/dist/midi/engines/bl1.js.map +1 -1
- package/dist/midi/engines/dr1.d.ts +11 -1
- package/dist/midi/engines/dr1.d.ts.map +1 -1
- package/dist/midi/engines/dr1.js +21 -3
- package/dist/midi/engines/dr1.js.map +1 -1
- package/dist/midi/engines/dsp.d.ts +1 -1
- package/dist/midi/engines/dsp.d.ts.map +1 -1
- package/dist/midi/engines/dsp.js +10 -2
- package/dist/midi/engines/dsp.js.map +1 -1
- package/dist/midi/engines/wt1.d.ts +10 -1
- package/dist/midi/engines/wt1.d.ts.map +1 -1
- package/dist/midi/engines/wt1.js +28 -5
- package/dist/midi/engines/wt1.js.map +1 -1
- package/dist/midi/events.d.ts +13 -4
- package/dist/midi/events.d.ts.map +1 -1
- package/dist/midi/events.js +33 -6
- package/dist/midi/events.js.map +1 -1
- package/dist/midi/expression.d.ts +25 -0
- package/dist/midi/expression.d.ts.map +1 -0
- package/dist/midi/expression.js +69 -0
- package/dist/midi/expression.js.map +1 -0
- package/dist/midi/index.d.ts +8 -0
- package/dist/midi/index.d.ts.map +1 -1
- package/dist/midi/index.js +8 -0
- package/dist/midi/index.js.map +1 -1
- package/dist/midi/instrument.d.ts.map +1 -1
- package/dist/midi/instrument.js +4 -0
- package/dist/midi/instrument.js.map +1 -1
- package/dist/midi/noteFunctions.d.ts +29 -0
- package/dist/midi/noteFunctions.d.ts.map +1 -0
- package/dist/midi/noteFunctions.js +213 -0
- package/dist/midi/noteFunctions.js.map +1 -0
- package/dist/midi/notes.d.ts +7 -1
- package/dist/midi/notes.d.ts.map +1 -1
- package/dist/midi/notes.js +43 -1
- package/dist/midi/notes.js.map +1 -1
- package/dist/midi/notesEdit.d.ts +13 -0
- package/dist/midi/notesEdit.d.ts.map +1 -1
- package/dist/midi/notesEdit.js +73 -2
- package/dist/midi/notesEdit.js.map +1 -1
- package/dist/midi/presets.d.ts +1 -1
- package/dist/midi/regionParams.d.ts +41 -0
- package/dist/midi/regionParams.d.ts.map +1 -0
- package/dist/midi/regionParams.js +164 -0
- package/dist/midi/regionParams.js.map +1 -0
- package/dist/midi/sampler.d.ts +2 -2
- package/dist/midi/sampler.d.ts.map +1 -1
- package/dist/midi/sampler.js +99 -21
- package/dist/midi/sampler.js.map +1 -1
- package/dist/midi/stepEditor.d.ts +50 -0
- package/dist/midi/stepEditor.d.ts.map +1 -0
- package/dist/midi/stepEditor.js +118 -0
- package/dist/midi/stepEditor.js.map +1 -0
- package/dist/midi/stepPattern.d.ts +173 -0
- package/dist/midi/stepPattern.d.ts.map +1 -0
- package/dist/midi/stepPattern.js +1390 -0
- package/dist/midi/stepPattern.js.map +1 -0
- package/dist/midi/stepPatternExpand.d.ts +149 -0
- package/dist/midi/stepPatternExpand.d.ts.map +1 -0
- package/dist/midi/stepPatternExpand.js +1068 -0
- package/dist/midi/stepPatternExpand.js.map +1 -0
- package/dist/midi/stepPatternLibrary.d.ts +65 -0
- package/dist/midi/stepPatternLibrary.d.ts.map +1 -0
- package/dist/midi/stepPatternLibrary.js +640 -0
- package/dist/midi/stepPatternLibrary.js.map +1 -0
- package/dist/midi/tempo.d.ts.map +1 -1
- package/dist/midi/tempo.js +3 -0
- package/dist/midi/tempo.js.map +1 -1
- package/dist/midi/voice.d.ts +51 -5
- package/dist/midi/voice.d.ts.map +1 -1
- package/dist/midi/voice.js +191 -21
- package/dist/midi/voice.js.map +1 -1
- package/dist/model3d.d.ts +132 -8
- package/dist/model3d.d.ts.map +1 -1
- package/dist/model3d.js +230 -7
- package/dist/model3d.js.map +1 -1
- package/dist/model3dBake.d.ts +41 -11
- package/dist/model3dBake.d.ts.map +1 -1
- package/dist/model3dBake.js +58 -21
- package/dist/model3dBake.js.map +1 -1
- package/dist/model3dBlockout.d.ts +62 -0
- package/dist/model3dBlockout.d.ts.map +1 -0
- package/dist/model3dBlockout.js +59 -0
- package/dist/model3dBlockout.js.map +1 -0
- package/dist/model3dCameraDescription.d.ts +32 -0
- package/dist/model3dCameraDescription.d.ts.map +1 -0
- package/dist/model3dCameraDescription.js +253 -0
- package/dist/model3dCameraDescription.js.map +1 -0
- package/dist/model3dCameraKeys.d.ts +47 -0
- package/dist/model3dCameraKeys.d.ts.map +1 -0
- package/dist/model3dCameraKeys.js +156 -0
- package/dist/model3dCameraKeys.js.map +1 -0
- package/dist/model3dCameraMoves.d.ts +97 -0
- package/dist/model3dCameraMoves.d.ts.map +1 -0
- package/dist/model3dCameraMoves.js +329 -0
- package/dist/model3dCameraMoves.js.map +1 -0
- package/dist/model3dReference.d.ts +96 -0
- package/dist/model3dReference.d.ts.map +1 -0
- package/dist/model3dReference.js +113 -0
- package/dist/model3dReference.js.map +1 -0
- package/dist/music/align.d.ts +111 -0
- package/dist/music/align.d.ts.map +1 -0
- package/dist/music/align.js +282 -0
- package/dist/music/align.js.map +1 -0
- package/dist/music/cut.d.ts +33 -0
- package/dist/music/cut.d.ts.map +1 -0
- package/dist/music/cut.js +50 -0
- package/dist/music/cut.js.map +1 -0
- package/dist/music/frames.d.ts +51 -0
- package/dist/music/frames.d.ts.map +1 -0
- package/dist/music/frames.js +110 -0
- package/dist/music/frames.js.map +1 -0
- package/dist/music/gain.d.ts +24 -0
- package/dist/music/gain.d.ts.map +1 -0
- package/dist/music/gain.js +38 -0
- package/dist/music/gain.js.map +1 -0
- package/dist/music/index.d.ts +9 -0
- package/dist/music/index.d.ts.map +1 -0
- package/dist/music/index.js +9 -0
- package/dist/music/index.js.map +1 -0
- package/dist/music/plan.d.ts +106 -0
- package/dist/music/plan.d.ts.map +1 -0
- package/dist/music/plan.js +304 -0
- package/dist/music/plan.js.map +1 -0
- package/dist/music/process.d.ts +9 -0
- package/dist/music/process.d.ts.map +1 -0
- package/dist/music/process.js +9 -0
- package/dist/music/process.js.map +1 -0
- package/dist/music/roles.d.ts +14 -0
- package/dist/music/roles.d.ts.map +1 -0
- package/dist/music/roles.js +30 -0
- package/dist/music/roles.js.map +1 -0
- package/dist/music/splice.d.ts +37 -0
- package/dist/music/splice.d.ts.map +1 -0
- package/dist/music/splice.js +67 -0
- package/dist/music/splice.js.map +1 -0
- package/dist/music/tempoRules.d.ts +41 -0
- package/dist/music/tempoRules.d.ts.map +1 -0
- package/dist/music/tempoRules.js +59 -0
- package/dist/music/tempoRules.js.map +1 -0
- package/dist/ops/apply.d.ts.map +1 -1
- package/dist/ops/apply.js +1009 -230
- package/dist/ops/apply.js.map +1 -1
- package/dist/ops/automation.d.ts +6 -0
- package/dist/ops/automation.d.ts.map +1 -0
- package/dist/ops/automation.js +217 -0
- package/dist/ops/automation.js.map +1 -0
- package/dist/ops/barTime.d.ts +14 -0
- package/dist/ops/barTime.d.ts.map +1 -0
- package/dist/ops/barTime.js +33 -0
- package/dist/ops/barTime.js.map +1 -0
- package/dist/ops/chords.d.ts +43 -0
- package/dist/ops/chords.d.ts.map +1 -0
- package/dist/ops/chords.js +691 -0
- package/dist/ops/chords.js.map +1 -0
- package/dist/ops/groupBake.d.ts +24 -0
- package/dist/ops/groupBake.d.ts.map +1 -0
- package/dist/ops/groupBake.js +81 -0
- package/dist/ops/groupBake.js.map +1 -0
- package/dist/ops/index.d.ts +7 -0
- package/dist/ops/index.d.ts.map +1 -1
- package/dist/ops/index.js +5 -0
- package/dist/ops/index.js.map +1 -1
- package/dist/ops/join.d.ts +20 -0
- package/dist/ops/join.d.ts.map +1 -0
- package/dist/ops/join.js +265 -0
- package/dist/ops/join.js.map +1 -0
- package/dist/ops/loop.d.ts +29 -0
- package/dist/ops/loop.d.ts.map +1 -0
- package/dist/ops/loop.js +107 -0
- package/dist/ops/loop.js.map +1 -0
- package/dist/ops/midiMix.d.ts +41 -0
- package/dist/ops/midiMix.d.ts.map +1 -0
- package/dist/ops/midiMix.js +522 -0
- package/dist/ops/midiMix.js.map +1 -0
- package/dist/ops/op.d.ts +94 -11
- package/dist/ops/op.d.ts.map +1 -1
- package/dist/ops/op.js +62 -1
- package/dist/ops/op.js.map +1 -1
- package/dist/ops/parse.d.ts.map +1 -1
- package/dist/ops/parse.js +316 -4
- package/dist/ops/parse.js.map +1 -1
- package/dist/ops/pasteRange.d.ts +46 -0
- package/dist/ops/pasteRange.d.ts.map +1 -0
- package/dist/ops/pasteRange.js +276 -0
- package/dist/ops/pasteRange.js.map +1 -0
- package/dist/ops/plugin.d.ts +57 -0
- package/dist/ops/plugin.d.ts.map +1 -0
- package/dist/ops/plugin.js +875 -0
- package/dist/ops/plugin.js.map +1 -0
- package/dist/ops/sections.d.ts +98 -0
- package/dist/ops/sections.d.ts.map +1 -0
- package/dist/ops/sections.js +930 -0
- package/dist/ops/sections.js.map +1 -0
- package/dist/ops/serialize.d.ts +79 -1
- package/dist/ops/serialize.d.ts.map +1 -1
- package/dist/ops/serialize.js +85 -3
- package/dist/ops/serialize.js.map +1 -1
- package/dist/ops/stepPattern.d.ts +44 -0
- package/dist/ops/stepPattern.d.ts.map +1 -0
- package/dist/ops/stepPattern.js +2106 -0
- package/dist/ops/stepPattern.js.map +1 -0
- package/dist/ops/stepPatternFolders.d.ts +54 -0
- package/dist/ops/stepPatternFolders.d.ts.map +1 -0
- package/dist/ops/stepPatternFolders.js +299 -0
- package/dist/ops/stepPatternFolders.js.map +1 -0
- package/dist/ops/types.d.ts +260 -2
- package/dist/ops/types.d.ts.map +1 -1
- package/dist/render/index.d.ts +1 -0
- package/dist/render/index.d.ts.map +1 -1
- package/dist/render/index.js +1 -0
- package/dist/render/index.js.map +1 -1
- package/dist/render/model3dReferenceSamples.d.ts +25 -0
- package/dist/render/model3dReferenceSamples.d.ts.map +1 -0
- package/dist/render/model3dReferenceSamples.js +25 -0
- package/dist/render/model3dReferenceSamples.js.map +1 -0
- package/dist/render/sceneModel.d.ts +1 -1
- package/dist/render/sceneModel.d.ts.map +1 -1
- package/dist/render/sceneModel.js +10 -5
- package/dist/render/sceneModel.js.map +1 -1
- package/dist/rippleEdit.d.ts +5 -1
- package/dist/rippleEdit.d.ts.map +1 -1
- package/dist/rippleEdit.js +24 -9
- package/dist/rippleEdit.js.map +1 -1
- package/dist/scene.d.ts +1 -0
- package/dist/scene.d.ts.map +1 -1
- package/dist/scene.js +1 -0
- package/dist/scene.js.map +1 -1
- package/dist/shotLink.d.ts +35 -0
- package/dist/shotLink.d.ts.map +1 -1
- package/dist/shotLink.js +100 -0
- package/dist/shotLink.js.map +1 -1
- package/dist/splitClip.d.ts +29 -1
- package/dist/splitClip.d.ts.map +1 -1
- package/dist/splitClip.js +231 -1
- package/dist/splitClip.js.map +1 -1
- package/dist/testing/host-ops.js +3 -3
- package/dist/testing/host-ops.js.map +1 -1
- package/dist/testing/ops.d.ts +6 -1
- package/dist/testing/ops.d.ts.map +1 -1
- package/dist/testing/ops.js +872 -13
- package/dist/testing/ops.js.map +1 -1
- package/dist/timeRemap.d.ts +2 -2
- package/dist/timeRemap.d.ts.map +1 -1
- package/dist/timeRemap.js +18 -0
- package/dist/timeRemap.js.map +1 -1
- package/dist/trimClip.d.ts +1 -1
- package/dist/trimClip.d.ts.map +1 -1
- package/dist/trimClip.js +41 -7
- package/dist/trimClip.js.map +1 -1
- package/dist/types.d.ts +331 -15
- package/dist/types.d.ts.map +1 -1
- package/dist/types.js.map +1 -1
- package/package.json +11 -5
package/dist/types.d.ts
CHANGED
|
@@ -9,11 +9,12 @@ import type { BlendMode } from "@nodetool-ai/gpu";
|
|
|
9
9
|
import type { ClipFadeShape } from "./audioFade.js";
|
|
10
10
|
export type { BlendMode };
|
|
11
11
|
import type { ClipAnimation } from "./animation/types.js";
|
|
12
|
-
import type { TimelineBeat, TimelineSetup, TimelineSetupStage } from "@nodetool-ai/protocol/api-schemas/timeline.js";
|
|
12
|
+
import type { JuceMidiInstrument, ModalMidiInstrument, MusicGenerationRecord, MusicKey, MusicRole, MusicTask, TimelineBeat, TimelineMusic, TimelineSetup, TimelineSetupStage } from "@nodetool-ai/protocol/api-schemas/timeline.js";
|
|
13
13
|
import type { ProductionCandidateResult, ProductionGenerationSnapshot } from "@nodetool-ai/protocol";
|
|
14
14
|
import type { LineDeliveryRequest } from "./lineDelivery.js";
|
|
15
15
|
export type { TimelineBeat, TimelineSetup, TimelineSetupStage };
|
|
16
16
|
export type { ProductionGenerationSnapshot } from "@nodetool-ai/protocol";
|
|
17
|
+
export type { MusicGenerationRecord, MusicKey, MusicRole, MusicTask, TimelineMusic };
|
|
17
18
|
export interface TimelineSequence {
|
|
18
19
|
/**
|
|
19
20
|
* The document schema version the stored revision was written in, on a
|
|
@@ -65,6 +66,8 @@ export interface TimelineSequence {
|
|
|
65
66
|
tempo?: TimelineTempo;
|
|
66
67
|
/** The mix bus. Absent means 0 dB with no effects. */
|
|
67
68
|
master?: TimelineMasterChannel;
|
|
69
|
+
/** Marks a music project and holds its prompt history (MUSIC-MODE.md MD3). */
|
|
70
|
+
music?: TimelineMusic;
|
|
68
71
|
/**
|
|
69
72
|
* Guided video-flow state (PRD § 8.5). Absent on every sequence not built
|
|
70
73
|
* through the flow, which is what makes those open straight in the editor.
|
|
@@ -313,18 +316,25 @@ export interface ClipShapeStyle {
|
|
|
313
316
|
}
|
|
314
317
|
/**
|
|
315
318
|
* How a `model3d` clip's camera is placed. `orbit` frames the model's bounding
|
|
316
|
-
* sphere
|
|
319
|
+
* sphere, `scene` uses a camera the glTF itself declares, and `free` is a
|
|
320
|
+
* camera placed in world space by `position`, `target`, `rollDeg` and `fovDeg`.
|
|
317
321
|
*/
|
|
318
|
-
export type Model3DCameraMode = "orbit" | "scene";
|
|
322
|
+
export type Model3DCameraMode = "orbit" | "scene" | "free";
|
|
319
323
|
/**
|
|
320
324
|
* A `model3d` clip's camera. The orbit terms are the vocabulary
|
|
321
325
|
* `nodetool.model3d.RenderToImage`, the Blender bake job and the model
|
|
322
326
|
* editor's pose already share, so one pose reads the same in all of them.
|
|
327
|
+
*
|
|
328
|
+
* `free` mode reads `position`, `target`, `rollDeg` and `fovDeg`. It does not
|
|
329
|
+
* fit the bounding sphere and ignores `azimuthDeg`, `elevationDeg`, `zoom` and
|
|
330
|
+
* `targetOffset`. Every field stays stored in every mode, so a mode switch
|
|
331
|
+
* loses nothing.
|
|
323
332
|
*/
|
|
324
333
|
export interface ClipModel3DCamera {
|
|
325
334
|
mode: Model3DCameraMode;
|
|
326
335
|
azimuthDeg: number;
|
|
327
336
|
elevationDeg: number;
|
|
337
|
+
/** Vertical field of view, degrees. */
|
|
328
338
|
fovDeg: number;
|
|
329
339
|
/** Distance multiplier on the auto-framed fit: above 1 moves closer. */
|
|
330
340
|
zoom: number;
|
|
@@ -332,6 +342,15 @@ export interface ClipModel3DCamera {
|
|
|
332
342
|
targetOffset?: [number, number, number];
|
|
333
343
|
/** `scene` mode: the glTF camera's name; the first camera when absent. */
|
|
334
344
|
sceneCameraName?: string;
|
|
345
|
+
/** `free` mode: the camera eye in glTF world units. Default `[0, 1.6, 5]`. */
|
|
346
|
+
position?: [number, number, number];
|
|
347
|
+
/** `free` mode: the look-at point in glTF world units. Default `[0, 1, 0]`. */
|
|
348
|
+
target?: [number, number, number];
|
|
349
|
+
/**
|
|
350
|
+
* `free` mode: roll around the view axis, degrees. Positive turns the
|
|
351
|
+
* horizon clockwise in the picture. Default 0.
|
|
352
|
+
*/
|
|
353
|
+
rollDeg?: number;
|
|
335
354
|
}
|
|
336
355
|
/** Which glTF animation a `model3d` clip plays, and how. */
|
|
337
356
|
export interface ClipModel3DAnimation {
|
|
@@ -366,6 +385,21 @@ export interface ClipModel3DStyle {
|
|
|
366
385
|
assetId: string;
|
|
367
386
|
dependencyHash: string;
|
|
368
387
|
};
|
|
388
|
+
/**
|
|
389
|
+
* A grey render of this clip's span, kept as a video asset that a video
|
|
390
|
+
* model follows when a storyboard shot is generated (Blockout 3D). It is
|
|
391
|
+
* never drawn on the timeline. `dependencyHash` is
|
|
392
|
+
* `computeModel3DReferenceHash` at render time, so an edit to the camera,
|
|
393
|
+
* the span or the sequence marks it stale. `assetRevision` is the set
|
|
394
|
+
* asset's `updated_at` at render time: the set is saved in place under the
|
|
395
|
+
* same id, so the hash alone cannot see an edit to it.
|
|
396
|
+
*/
|
|
397
|
+
reference?: {
|
|
398
|
+
assetId: string;
|
|
399
|
+
dependencyHash: string;
|
|
400
|
+
pass: "clay" | "depth" | "normal";
|
|
401
|
+
assetRevision?: string;
|
|
402
|
+
};
|
|
369
403
|
}
|
|
370
404
|
/**
|
|
371
405
|
* One line of the Studio transcript. Each line owns the clips generated from
|
|
@@ -426,7 +460,18 @@ export interface TimelineTrack {
|
|
|
426
460
|
* strips it.
|
|
427
461
|
*/
|
|
428
462
|
automation?: AutomationLane[];
|
|
429
|
-
|
|
463
|
+
/**
|
|
464
|
+
* Automation mode. Missing means `read`.
|
|
465
|
+
* Must also exist on the protocol zod schema or PATCH strips it.
|
|
466
|
+
*/
|
|
467
|
+
automationMode?: AutomationMode;
|
|
468
|
+
/** The stem this track holds in a music project (MUSIC-MODE.md MD4). */
|
|
469
|
+
musicRole?: MusicRole;
|
|
470
|
+
/** Default Step Sequencer template for new pattern regions on this track (SQ45). */
|
|
471
|
+
stepTemplate?: StepPattern;
|
|
472
|
+
}
|
|
473
|
+
/** `off` plays no lane, `read` plays them, the others also record a pass. */
|
|
474
|
+
export type AutomationMode = "off" | "read" | "touch" | "latch" | "write";
|
|
430
475
|
/**
|
|
431
476
|
* The control an automation lane drives.
|
|
432
477
|
*
|
|
@@ -545,12 +590,135 @@ export interface ClipHarmony {
|
|
|
545
590
|
/** Key root pitch class. Absent means the first chord's root, else C. */
|
|
546
591
|
scaleKey?: number;
|
|
547
592
|
}
|
|
593
|
+
/** Step lengths in note values, integer ticks at MIDI_PPQ = 960 (SQ6). */
|
|
594
|
+
export type StepRate = "4" | "2" | "1" | "1/2" | "1/4" | "1/8" | "1/16" | "1/32" | "1/64" | "1T" | "2T" | "4T" | "8T" | "16T" | "32T" | "1D" | "2D" | "4D" | "8D" | "16D" | "32D" | "64D";
|
|
595
|
+
export type StepPlaybackMode = "forward" | "backward" | "pingPong" | "pendulum" | "wander" | "shuffle" | "random";
|
|
596
|
+
export type StepEditMode = "onOff" | "velocity" | "value" | "gate" | "tie" | "note" | "octave" | "repeat" | "chance" | "offset" | "stepRate" | "skip" | "loop";
|
|
597
|
+
export type StepAutomationMode = "latch" | "slide";
|
|
598
|
+
export type StepSwingDivision = "1/8" | "1/16";
|
|
599
|
+
export type StepPitchSource = "off" | "key" | "chords";
|
|
600
|
+
export type StepRowSort = "none" | "typeAsc" | "typeDesc" | "typeAndNoteAsc" | "typeAndNoteDesc" | "typeAndNameAsc" | "typeAndNameDesc" | "typeAndKitPadAsc" | "typeAndKitPadDesc";
|
|
601
|
+
export type StepScaleId = HarmonyScaleId | "chromatic";
|
|
602
|
+
export interface StepKey {
|
|
603
|
+
/** Pitch class 0 (C) .. 11 (B). */
|
|
604
|
+
tonic: number;
|
|
605
|
+
mode: "major" | "minor";
|
|
606
|
+
}
|
|
607
|
+
export type StepDegree = "root" | "2nd" | "3rd" | "4th" | "5th" | "6th" | "7th";
|
|
608
|
+
export type StepAutomationTarget = {
|
|
609
|
+
kind: "cc";
|
|
610
|
+
cc: number;
|
|
611
|
+
} | {
|
|
612
|
+
kind: "pitchBend";
|
|
613
|
+
} | {
|
|
614
|
+
kind: "channelPressure";
|
|
615
|
+
} | {
|
|
616
|
+
kind: "device";
|
|
617
|
+
deviceId: string;
|
|
618
|
+
param: string;
|
|
619
|
+
};
|
|
620
|
+
export type StepRowAssignment = {
|
|
621
|
+
type: "note";
|
|
622
|
+
pitch: number;
|
|
623
|
+
} | {
|
|
624
|
+
type: "melodic";
|
|
625
|
+
pitch: number;
|
|
626
|
+
} | {
|
|
627
|
+
type: "kit";
|
|
628
|
+
pad: number;
|
|
629
|
+
} | {
|
|
630
|
+
type: "degree";
|
|
631
|
+
degree: StepDegree;
|
|
632
|
+
octave: number;
|
|
633
|
+
} | {
|
|
634
|
+
type: "automation";
|
|
635
|
+
target: StepAutomationTarget;
|
|
636
|
+
};
|
|
637
|
+
export type StepCondition = {
|
|
638
|
+
type: "always";
|
|
639
|
+
} | {
|
|
640
|
+
type: "recurrence";
|
|
641
|
+
iteration: number;
|
|
642
|
+
cycles: number;
|
|
643
|
+
} | {
|
|
644
|
+
type: "first";
|
|
645
|
+
} | {
|
|
646
|
+
type: "last";
|
|
647
|
+
};
|
|
648
|
+
/** One cell of a Step Sequencer row. Omitted fields take the SQ5 defaults. */
|
|
649
|
+
export interface Step {
|
|
650
|
+
on?: boolean;
|
|
651
|
+
velocity?: number;
|
|
652
|
+
gate?: number;
|
|
653
|
+
tie?: boolean;
|
|
654
|
+
note?: number;
|
|
655
|
+
octave?: number;
|
|
656
|
+
repeat?: number;
|
|
657
|
+
chance?: number;
|
|
658
|
+
offset?: number;
|
|
659
|
+
stepRate?: StepRate;
|
|
660
|
+
skip?: boolean;
|
|
661
|
+
value?: number;
|
|
662
|
+
condition?: StepCondition;
|
|
663
|
+
midiChannel?: number;
|
|
664
|
+
articulation?: number;
|
|
665
|
+
velocityRamp?: number;
|
|
666
|
+
velocityCurve?: number;
|
|
667
|
+
distribution?: number;
|
|
668
|
+
}
|
|
669
|
+
/** One row of a Step Sequencer pattern (SQ3). */
|
|
670
|
+
export interface StepRow {
|
|
671
|
+
id: string;
|
|
672
|
+
assignment: StepRowAssignment;
|
|
673
|
+
name?: string;
|
|
674
|
+
color?: string;
|
|
675
|
+
mute: boolean;
|
|
676
|
+
solo: boolean;
|
|
677
|
+
lengthSteps: number;
|
|
678
|
+
loopStart: number;
|
|
679
|
+
loopEnd: number;
|
|
680
|
+
stepRate: StepRate;
|
|
681
|
+
playback: StepPlaybackMode;
|
|
682
|
+
midiChannel: number;
|
|
683
|
+
automationMode: StepAutomationMode;
|
|
684
|
+
subrows: StepEditMode[];
|
|
685
|
+
subrowsExpanded?: boolean;
|
|
686
|
+
steps: Step[];
|
|
687
|
+
}
|
|
688
|
+
/**
|
|
689
|
+
* Step Sequencer pattern carried on a MIDI clip (SQ1, SQ2, D71).
|
|
690
|
+
* A clip with `pattern` does not store `notes` or `controllers`; every
|
|
691
|
+
* renderer derives them with `expandPattern`.
|
|
692
|
+
*/
|
|
693
|
+
export interface StepPattern {
|
|
694
|
+
version: 1;
|
|
695
|
+
seed: number;
|
|
696
|
+
lengthSteps: number;
|
|
697
|
+
stepRate: StepRate;
|
|
698
|
+
playback: StepPlaybackMode;
|
|
699
|
+
legato: boolean;
|
|
700
|
+
swing: number;
|
|
701
|
+
swingDivision: StepSwingDivision;
|
|
702
|
+
pitchSource: StepPitchSource;
|
|
703
|
+
key?: StepKey;
|
|
704
|
+
scale: StepScaleId;
|
|
705
|
+
noTranspose: boolean;
|
|
706
|
+
scaleQuantize: boolean;
|
|
707
|
+
midiChannel: number;
|
|
708
|
+
automationMode: StepAutomationMode;
|
|
709
|
+
mono: boolean;
|
|
710
|
+
name: string;
|
|
711
|
+
rowSort?: StepRowSort;
|
|
712
|
+
rows: StepRow[];
|
|
713
|
+
}
|
|
548
714
|
/**
|
|
549
715
|
* The master channel every audio and midi track sums into. Absent means
|
|
550
|
-
* 0 dB with no effects.
|
|
716
|
+
* 0 dB, centred, with no effects.
|
|
551
717
|
*/
|
|
552
718
|
export interface TimelineMasterChannel {
|
|
553
719
|
volumeDb: number;
|
|
720
|
+
/** Stereo balance, -1 (left) to 1 (right). Default 0. */
|
|
721
|
+
pan?: number;
|
|
554
722
|
/** Audio effects on the summed mix, applied in order before the fader. */
|
|
555
723
|
effects?: TrackEffect[];
|
|
556
724
|
}
|
|
@@ -558,9 +726,9 @@ export interface TimelineTrackFolder {
|
|
|
558
726
|
id: string;
|
|
559
727
|
name: string;
|
|
560
728
|
}
|
|
561
|
-
export type TrackEffect = TrackGainEffect | TrackEq3Effect | TrackFilterEffect | TrackCompressorEffect | TrackFableEffect | TrackColorCorrectionEffect | TrackVideoBlurEffect | TrackSharpenEffect | TrackVignetteEffect | TrackChromaKeyEffect;
|
|
729
|
+
export type TrackEffect = TrackGainEffect | TrackEq3Effect | TrackFilterEffect | TrackCompressorEffect | TrackFableEffect | TrackVstEffect | TrackColorCorrectionEffect | TrackVideoBlurEffect | TrackSharpenEffect | TrackVignetteEffect | TrackChromaKeyEffect;
|
|
562
730
|
/** Audio-side effect types. */
|
|
563
|
-
export type AudioTrackEffectType = "gain" | "eq3" | "filter" | "compressor" | "fable";
|
|
731
|
+
export type AudioTrackEffectType = "gain" | "eq3" | "filter" | "compressor" | "fable" | "vst";
|
|
564
732
|
/** Video-side effect types. */
|
|
565
733
|
export type VideoTrackEffectType = "colorCorrection" | "videoBlur" | "sharpen" | "vignette" | "chromaKey";
|
|
566
734
|
export interface TrackGainEffect {
|
|
@@ -805,6 +973,56 @@ export interface MidiNote {
|
|
|
805
973
|
startTick: number;
|
|
806
974
|
/** Held length in ticks (integer > 0). */
|
|
807
975
|
durationTick: number;
|
|
976
|
+
/** A muted note is not played and emits no events. It stays editable. */
|
|
977
|
+
muted?: boolean;
|
|
978
|
+
/** MIDI channel 0..15. Absent means 0. The built-in synth ignores it. */
|
|
979
|
+
channel?: number;
|
|
980
|
+
/** Note-off velocity 0..127. Absent keeps the existing output. */
|
|
981
|
+
releaseVelocity?: number;
|
|
982
|
+
/** Per-note expression curves. Ticks count from the note's start. */
|
|
983
|
+
expression?: MidiNoteExpression;
|
|
984
|
+
}
|
|
985
|
+
/** One point of a per-note expression curve. */
|
|
986
|
+
export interface MidiExpressionPoint {
|
|
987
|
+
/** Ticks from the note's start, 0..durationTick. */
|
|
988
|
+
tick: number;
|
|
989
|
+
value: number;
|
|
990
|
+
}
|
|
991
|
+
/**
|
|
992
|
+
* Per-note expression. Pitch is in semitones (-48..48), volume a linear gain
|
|
993
|
+
* (0..4), pan -1..1 and brightness 0..1. Before the first point the value is
|
|
994
|
+
* neutral, between points it interpolates linearly, after the last it holds.
|
|
995
|
+
*/
|
|
996
|
+
export interface MidiNoteExpression {
|
|
997
|
+
pitch?: MidiExpressionPoint[];
|
|
998
|
+
volume?: MidiExpressionPoint[];
|
|
999
|
+
pan?: MidiExpressionPoint[];
|
|
1000
|
+
brightness?: MidiExpressionPoint[];
|
|
1001
|
+
}
|
|
1002
|
+
export type MidiControllerKind = "cc" | "pitchBend" | "channelPressure" | "polyPressure";
|
|
1003
|
+
/** One point of a controller lane, in clip content ticks. */
|
|
1004
|
+
export interface MidiControllerPoint {
|
|
1005
|
+
id: string;
|
|
1006
|
+
tick: number;
|
|
1007
|
+
value: number;
|
|
1008
|
+
}
|
|
1009
|
+
/**
|
|
1010
|
+
* A controller lane of a midi clip. Values are 0..127, except pitch bend
|
|
1011
|
+
* (-8192..8191, 0 is centre). Structurally identical to `MidiControllerLane`
|
|
1012
|
+
* in `@nodetool-ai/protocol`; pinned by `tests/midi.protocolCompat.test.ts`.
|
|
1013
|
+
*/
|
|
1014
|
+
export interface MidiControllerLane {
|
|
1015
|
+
id: string;
|
|
1016
|
+
kind: MidiControllerKind;
|
|
1017
|
+
/** Required when `kind` is "cc", forbidden otherwise. */
|
|
1018
|
+
cc?: number;
|
|
1019
|
+
/** Required when `kind` is "polyPressure", forbidden otherwise. */
|
|
1020
|
+
pitch?: number;
|
|
1021
|
+
/** MIDI channel 0..15. Absent means 0. */
|
|
1022
|
+
channel?: number;
|
|
1023
|
+
/** Absent means "linear". */
|
|
1024
|
+
interpolation?: "linear" | "step";
|
|
1025
|
+
points: MidiControllerPoint[];
|
|
808
1026
|
}
|
|
809
1027
|
/**
|
|
810
1028
|
* The voice a midi track plays.
|
|
@@ -815,15 +1033,31 @@ export interface MidiNote {
|
|
|
815
1033
|
* recorded audio assets through MIDI key mappings. `vst` is a third-party VST3
|
|
816
1034
|
* instrument that the desktop app hosts in a separate process.
|
|
817
1035
|
*/
|
|
818
|
-
export type MidiInstrument = SubtractiveMidiInstrument | WavetableMidiInstrument | BassMidiInstrument | DrumMidiInstrument | SamplerMidiInstrument | VstMidiInstrument;
|
|
819
|
-
/**
|
|
1036
|
+
export type MidiInstrument = SubtractiveMidiInstrument | ModalMidiInstrument | WavetableMidiInstrument | BassMidiInstrument | DrumMidiInstrument | SamplerMidiInstrument | VstMidiInstrument | JuceMidiInstrument;
|
|
1037
|
+
/** Plug-in format reported by the host scan (`vst3` on all platforms, `au` on macOS). */
|
|
1038
|
+
export type VstPluginFormat = "vst3" | "au";
|
|
1039
|
+
/** Which VST3/AU plug-in a `vst` instrument or insert effect loads, as the host's scan reported it. */
|
|
820
1040
|
export interface VstPluginRef {
|
|
821
1041
|
/** The host's identifier for the plug-in type inside its bundle. */
|
|
822
1042
|
uid: string;
|
|
823
1043
|
name: string;
|
|
824
1044
|
vendor: string;
|
|
825
|
-
/** The `.vst3` bundle on the machine that picked it. */
|
|
1045
|
+
/** The `.vst3` or `.component` bundle on the machine that picked it. */
|
|
826
1046
|
path: string;
|
|
1047
|
+
/** Plug-in format (`vst3` or `au`). Absent on older VST3 documents. */
|
|
1048
|
+
format?: VstPluginFormat;
|
|
1049
|
+
}
|
|
1050
|
+
/** A third-party VST3/AU insert effect on an audio, MIDI, or master channel. */
|
|
1051
|
+
export interface TrackVstEffect {
|
|
1052
|
+
id: string;
|
|
1053
|
+
type: "vst";
|
|
1054
|
+
enabled: boolean;
|
|
1055
|
+
/** Null until a plug-in is chosen. */
|
|
1056
|
+
plugin: VstPluginRef | null;
|
|
1057
|
+
/** The plug-in's own saved state, base64. Null plays its default sound. */
|
|
1058
|
+
state: string | null;
|
|
1059
|
+
/** Dry/wet mix in 0..1. Default 1. */
|
|
1060
|
+
wet: number;
|
|
827
1061
|
}
|
|
828
1062
|
/**
|
|
829
1063
|
* A VST3 instrument. Only the desktop app can play it: the plug-in is native
|
|
@@ -838,16 +1072,40 @@ export interface VstMidiInstrument {
|
|
|
838
1072
|
state: string | null;
|
|
839
1073
|
gainDb: number;
|
|
840
1074
|
}
|
|
841
|
-
/** Recorded audio mapped to MIDI key ranges. Overlapping zones layer. */
|
|
1075
|
+
/** Recorded audio mapped to MIDI key and velocity ranges. Overlapping zones layer. */
|
|
1076
|
+
export type SamplerLoopMode = "oneShot" | "sustain";
|
|
842
1077
|
export interface SamplerZone {
|
|
843
1078
|
id: string;
|
|
844
1079
|
name: string;
|
|
845
|
-
/** Persistent audio asset id
|
|
1080
|
+
/** Persistent audio asset id, or empty string when using a project-relative mediaPath. */
|
|
846
1081
|
assetId: string;
|
|
1082
|
+
/** Optional project-relative audio file path (WAV/AIFF/FLAC/MP3). */
|
|
1083
|
+
mediaPath?: string;
|
|
847
1084
|
rootNote: number;
|
|
848
1085
|
lowNote: number;
|
|
849
1086
|
highNote: number;
|
|
1087
|
+
/** Inclusive MIDI velocity range (0..127). Defaults to 0..127. */
|
|
1088
|
+
lowVelocity?: number;
|
|
1089
|
+
highVelocity?: number;
|
|
850
1090
|
gainDb: number;
|
|
1091
|
+
/** Stereo pan in -1..+1. Defaults to 0. */
|
|
1092
|
+
pan?: number;
|
|
1093
|
+
/** Fine tuning offset in cents (-100..+100). Defaults to 0. */
|
|
1094
|
+
tuneCents?: number;
|
|
1095
|
+
/** Overrides instrument-level `oneShot` when present. */
|
|
1096
|
+
loopMode?: SamplerLoopMode;
|
|
1097
|
+
/** Normalized sustain loop start in [0, 1]. Defaults to 0. */
|
|
1098
|
+
loopStart?: number;
|
|
1099
|
+
/** Normalized sustain loop end in [0, 1]. Defaults to 1. */
|
|
1100
|
+
loopEnd?: number;
|
|
1101
|
+
/** Loop seam crossfade length in milliseconds (0..500). Defaults to 10. */
|
|
1102
|
+
loopCrossfadeMs?: number;
|
|
1103
|
+
/** Optional release-triggered audio asset id. */
|
|
1104
|
+
releaseAssetId?: string;
|
|
1105
|
+
/** Optional release-triggered project-relative audio file path. */
|
|
1106
|
+
releaseMediaPath?: string;
|
|
1107
|
+
/** Release sample gain trim in dB (-60..+12). Defaults to 0. */
|
|
1108
|
+
releaseGainDb?: number;
|
|
851
1109
|
}
|
|
852
1110
|
export interface SamplerMidiInstrument {
|
|
853
1111
|
type: "sampler";
|
|
@@ -855,7 +1113,19 @@ export interface SamplerMidiInstrument {
|
|
|
855
1113
|
/** Percussion ignores note-off and plays the complete recording. */
|
|
856
1114
|
oneShot: boolean;
|
|
857
1115
|
attackMs: number;
|
|
1116
|
+
/** Amp envelope decay in ms. Defaults to 100. */
|
|
1117
|
+
decayMs?: number;
|
|
1118
|
+
/** Amp envelope sustain level in 0..1. Defaults to 1. */
|
|
1119
|
+
sustain?: number;
|
|
858
1120
|
releaseMs: number;
|
|
1121
|
+
/** Velocity response curve in -1..+1 (0 linear, >0 soft, <0 hard). Defaults to 0. */
|
|
1122
|
+
velocityCurve?: number;
|
|
1123
|
+
/** Pitch portamento glide time in ms (0..2000). Defaults to 0. */
|
|
1124
|
+
glideMs?: number;
|
|
1125
|
+
/** Maximum polyphonic voices (1..64). Defaults to 32. */
|
|
1126
|
+
voiceLimit?: number;
|
|
1127
|
+
/** Pitch bend range in semitones (1..24). Defaults to 2. */
|
|
1128
|
+
pitchBendRange?: number;
|
|
859
1129
|
gainDb: number;
|
|
860
1130
|
}
|
|
861
1131
|
/** One oscillator through a lowpass filter and an ADSR envelope. */
|
|
@@ -872,6 +1142,12 @@ export interface SubtractiveMidiInstrument {
|
|
|
872
1142
|
resonance: number;
|
|
873
1143
|
gainDb: number;
|
|
874
1144
|
}
|
|
1145
|
+
/** Resonator model for the physically modeled modal percussion/mallet synth (ported from RipplerX). */
|
|
1146
|
+
export type ModalModelName = "string" | "beam" | "squared" | "membrane" | "plate" | "drumhead" | "marimba" | "openTube" | "closedTube" | "marimba2" | "bell" | "djembe";
|
|
1147
|
+
export type ModalCouplingMode = "parallel" | "serial";
|
|
1148
|
+
export type ModalNoiseFilterMode = "lp" | "bp" | "hp";
|
|
1149
|
+
/** Physically modeled percussion/mallet instrument (dual modal/waveguide resonators, mallet & noise exciters). */
|
|
1150
|
+
export type { ModalMidiInstrument, JuceMidiInstrument };
|
|
875
1151
|
/** An ADSR envelope, in milliseconds with a 0..1 sustain level. */
|
|
876
1152
|
export interface MidiEnvelope {
|
|
877
1153
|
attackMs: number;
|
|
@@ -881,7 +1157,7 @@ export interface MidiEnvelope {
|
|
|
881
1157
|
releaseMs: number;
|
|
882
1158
|
}
|
|
883
1159
|
/** The filter shapes the FableSynth-derived voices offer. */
|
|
884
|
-
export type MidiFilterType = "lp12" | "lp24" | "bp12" | "hp12" | "notch";
|
|
1160
|
+
export type MidiFilterType = "lp12" | "lp24" | "bp12" | "hp12" | "notch" | "hp24" | "bp24" | "none";
|
|
885
1161
|
/** The tonal wavetables WT-1 and BL-1 play. */
|
|
886
1162
|
export type MidiWavetableName = "prime" | "bloom" | "pulse" | "vox" | "chime" | "glitch";
|
|
887
1163
|
/** DR-1's percussive tables. A pad can also play any tonal table. */
|
|
@@ -895,7 +1171,7 @@ export interface WavetableOscillator {
|
|
|
895
1171
|
semitones: number;
|
|
896
1172
|
/** Further offset in cents. */
|
|
897
1173
|
fine: number;
|
|
898
|
-
/** Output level, 0..1. */
|
|
1174
|
+
/** Output level, 0..1.2. */
|
|
899
1175
|
level: number;
|
|
900
1176
|
/** Detuned copies of the oscillator, 1..7. */
|
|
901
1177
|
unison: number;
|
|
@@ -914,7 +1190,7 @@ export interface WavetableMidiInstrument {
|
|
|
914
1190
|
oscB: WavetableOscillator;
|
|
915
1191
|
/** Sine sub-oscillator level, 0..1. */
|
|
916
1192
|
subLevel: number;
|
|
917
|
-
/** Sub octave below the note: -1 or
|
|
1193
|
+
/** Sub octave below the note: -2, -1, or 0. */
|
|
918
1194
|
subOctave: number;
|
|
919
1195
|
/** White noise level, 0..1. */
|
|
920
1196
|
noiseLevel: number;
|
|
@@ -1046,9 +1322,18 @@ export interface TimelineTempo {
|
|
|
1046
1322
|
beatsPerBar: number;
|
|
1047
1323
|
beatUnit: number;
|
|
1048
1324
|
};
|
|
1325
|
+
/** Project key for music generation. Absent lets the model pick one. */
|
|
1326
|
+
key?: MusicKey;
|
|
1049
1327
|
}
|
|
1050
1328
|
/** Kind of sound on a clip. Mirrors `clipAudioRole` in the protocol schema. */
|
|
1051
1329
|
export type ClipAudioRole = "dialogue" | "music" | "sfx" | "ambience";
|
|
1330
|
+
/** The grids a region quantize may use. Mirrors `QUANTIZE_DIVISIONS`. */
|
|
1331
|
+
export type MidiRegionGrid = "1/4" | "1/8" | "1/16" | "1/32" | "1/8T" | "1/16T";
|
|
1332
|
+
export interface MidiRegionQuantize {
|
|
1333
|
+
grid: MidiRegionGrid;
|
|
1334
|
+
/** 0..100. */
|
|
1335
|
+
strength: number;
|
|
1336
|
+
}
|
|
1052
1337
|
export interface TimelineClip {
|
|
1053
1338
|
id: string;
|
|
1054
1339
|
trackId: string;
|
|
@@ -1057,6 +1342,21 @@ export interface TimelineClip {
|
|
|
1057
1342
|
durationMs: number;
|
|
1058
1343
|
inPointMs?: number;
|
|
1059
1344
|
outPointMs?: number;
|
|
1345
|
+
/**
|
|
1346
|
+
* Region loop (CE3). When set and below `durationMs`, the window
|
|
1347
|
+
* `[inPointMs, inPointMs + loopLengthMs)` repeats until `durationMs`.
|
|
1348
|
+
* Midi and audio clips only. Absent means no loop.
|
|
1349
|
+
*/
|
|
1350
|
+
loopLengthMs?: number;
|
|
1351
|
+
/**
|
|
1352
|
+
* Non-destructive midi region parameters (CE6, D53). They apply at playback,
|
|
1353
|
+
* export and in the note lines. The stored notes stay as written.
|
|
1354
|
+
* `transpose` is -48..48 semitones, `velocityOffset` -127..127.
|
|
1355
|
+
*/
|
|
1356
|
+
transpose?: number;
|
|
1357
|
+
velocityOffset?: number;
|
|
1358
|
+
/** Snap onsets to `grid` by `strength` percent (0..100). */
|
|
1359
|
+
quantize?: MidiRegionQuantize;
|
|
1060
1360
|
mediaType: ClipMediaType;
|
|
1061
1361
|
sourceType: "imported" | "generated";
|
|
1062
1362
|
/** Defaults to "workflow" when absent on legacy persisted data. */
|
|
@@ -1323,8 +1623,22 @@ export interface TimelineClip {
|
|
|
1323
1623
|
* also exist on the protocol zod schema or PATCH strips it.
|
|
1324
1624
|
*/
|
|
1325
1625
|
notes?: MidiNote[];
|
|
1626
|
+
/** Controller lanes of a `midi` clip, in content ticks. */
|
|
1627
|
+
controllers?: MidiControllerLane[];
|
|
1326
1628
|
/** Arp, chord comping or scale snapping of a `midi` clip. */
|
|
1327
1629
|
harmony?: ClipHarmony;
|
|
1630
|
+
/** Step Sequencer pattern carried by a pattern region (D71). Mutually exclusive with `notes`. */
|
|
1631
|
+
pattern?: StepPattern;
|
|
1632
|
+
/** Pattern phase in content ticks for split/left-trimmed pattern regions (SQ23, SQ25, D87). */
|
|
1633
|
+
patternPhaseTicks?: number;
|
|
1634
|
+
/** Per-row cycle state preserved across unrolled loop repeats (SQ13, SQ25). */
|
|
1635
|
+
patternRowCycles?: Record<string, PatternRowCycleState>;
|
|
1636
|
+
}
|
|
1637
|
+
/** Per-row cycle state carried across unrolled loop repeats (SQ13, SQ25). */
|
|
1638
|
+
export interface PatternRowCycleState {
|
|
1639
|
+
cycleOffset: number;
|
|
1640
|
+
lastCycle?: number;
|
|
1641
|
+
wanderPos?: number;
|
|
1328
1642
|
}
|
|
1329
1643
|
/**
|
|
1330
1644
|
* A shape mask on one clip, in the layer's own normalized 0..1 space so it
|
|
@@ -2437,6 +2751,8 @@ export interface ClipVersion {
|
|
|
2437
2751
|
strength?: number;
|
|
2438
2752
|
resolution?: string;
|
|
2439
2753
|
};
|
|
2754
|
+
/** Generation record of a music take (MUSIC-MODE.md MD5). */
|
|
2755
|
+
musicGeneration?: MusicGenerationRecord;
|
|
2440
2756
|
}
|
|
2441
2757
|
export interface TimelineMarker {
|
|
2442
2758
|
id: string;
|