@playcraft/common 0.1.65 → 0.1.67
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/agent-tools/replica-validation.d.ts +2 -2
- package/dist/agent-tools/video-model-proxy.d.ts +1 -1
- package/dist/agent-tools/video-replication.d.ts +4 -4
- package/dist/cloud-workspace/runtime/agent-command.d.ts +3 -3
- package/dist/cloud-workspace/runtime/agent-generation-provenance.js +1 -1
- package/dist/cloud-workspace/runtime/agent-generation-provenance.js.map +1 -1
- package/dist/cloud-workspace/runtime/agent-read.d.ts +6 -6
- package/dist/cloud-workspace/runtime/animation-editor.d.ts +26 -26
- package/dist/cloud-workspace/runtime/animation-quality.d.ts +1 -1
- package/dist/cloud-workspace/runtime/artifacts.d.ts +7 -7
- package/dist/cloud-workspace/runtime/asset-generation-bundle.d.ts +2 -2
- package/dist/cloud-workspace/runtime/asset-generation-tools.d.ts +49 -1
- package/dist/cloud-workspace/runtime/asset-generation-tools.d.ts.map +1 -1
- package/dist/cloud-workspace/runtime/asset-generation-tools.js +1 -1
- package/dist/cloud-workspace/runtime/asset-generation-tools.js.map +1 -1
- package/dist/cloud-workspace/runtime/asset-generation.d.ts +109 -12
- package/dist/cloud-workspace/runtime/asset-generation.d.ts.map +1 -1
- package/dist/cloud-workspace/runtime/asset-generation.js +24 -4
- package/dist/cloud-workspace/runtime/asset-generation.js.map +1 -1
- package/dist/cloud-workspace/runtime/asset-library-save.d.ts +8 -8
- package/dist/cloud-workspace/runtime/audio-adjustments.d.ts +13 -0
- package/dist/cloud-workspace/runtime/audio-adjustments.d.ts.map +1 -0
- package/dist/cloud-workspace/runtime/audio-adjustments.js +90 -0
- package/dist/cloud-workspace/runtime/audio-adjustments.js.map +1 -0
- package/dist/cloud-workspace/runtime/audio-asset-protocol.d.ts +664 -0
- package/dist/cloud-workspace/runtime/audio-asset-protocol.d.ts.map +1 -0
- package/dist/cloud-workspace/runtime/audio-asset-protocol.js +98 -0
- package/dist/cloud-workspace/runtime/audio-asset-protocol.js.map +1 -0
- package/dist/cloud-workspace/runtime/audio-document.d.ts +127 -0
- package/dist/cloud-workspace/runtime/audio-document.d.ts.map +1 -0
- package/dist/cloud-workspace/runtime/audio-document.js +293 -0
- package/dist/cloud-workspace/runtime/audio-document.js.map +1 -0
- package/dist/cloud-workspace/runtime/audio-export.d.ts +25 -0
- package/dist/cloud-workspace/runtime/audio-export.d.ts.map +1 -0
- package/dist/cloud-workspace/runtime/audio-export.js +21 -0
- package/dist/cloud-workspace/runtime/audio-export.js.map +1 -0
- package/dist/cloud-workspace/runtime/audio-player.d.ts +18 -0
- package/dist/cloud-workspace/runtime/audio-player.d.ts.map +1 -0
- package/dist/cloud-workspace/runtime/audio-player.js +98 -0
- package/dist/cloud-workspace/runtime/audio-player.js.map +1 -0
- package/dist/cloud-workspace/runtime/audio-synthesizer.d.ts +38 -0
- package/dist/cloud-workspace/runtime/audio-synthesizer.d.ts.map +1 -0
- package/dist/cloud-workspace/runtime/audio-synthesizer.js +342 -0
- package/dist/cloud-workspace/runtime/audio-synthesizer.js.map +1 -0
- package/dist/cloud-workspace/runtime/batch-runs.d.ts +2 -2
- package/dist/cloud-workspace/runtime/composer-context.d.ts +122 -0
- package/dist/cloud-workspace/runtime/composer-context.d.ts.map +1 -1
- package/dist/cloud-workspace/runtime/composer-context.js +2 -0
- package/dist/cloud-workspace/runtime/composer-context.js.map +1 -1
- package/dist/cloud-workspace/runtime/execution-admission.d.ts +2 -2
- package/dist/cloud-workspace/runtime/execution-context.d.ts +112 -0
- package/dist/cloud-workspace/runtime/execution-context.d.ts.map +1 -0
- package/dist/cloud-workspace/runtime/execution-context.js +62 -0
- package/dist/cloud-workspace/runtime/execution-context.js.map +1 -0
- package/dist/cloud-workspace/runtime/index.d.ts +14 -0
- package/dist/cloud-workspace/runtime/index.d.ts.map +1 -1
- package/dist/cloud-workspace/runtime/index.js +14 -0
- package/dist/cloud-workspace/runtime/index.js.map +1 -1
- package/dist/cloud-workspace/runtime/level-editor-agent.d.ts +331 -0
- package/dist/cloud-workspace/runtime/level-editor-agent.d.ts.map +1 -0
- package/dist/cloud-workspace/runtime/level-editor-agent.js +172 -0
- package/dist/cloud-workspace/runtime/level-editor-agent.js.map +1 -0
- package/dist/cloud-workspace/runtime/level-editor-authoring.d.ts +125 -0
- package/dist/cloud-workspace/runtime/level-editor-authoring.d.ts.map +1 -0
- package/dist/cloud-workspace/runtime/level-editor-authoring.js +63 -0
- package/dist/cloud-workspace/runtime/level-editor-authoring.js.map +1 -0
- package/dist/cloud-workspace/runtime/level-editor-compiler.d.ts +260 -0
- package/dist/cloud-workspace/runtime/level-editor-compiler.d.ts.map +1 -0
- package/dist/cloud-workspace/runtime/level-editor-compiler.js +530 -0
- package/dist/cloud-workspace/runtime/level-editor-compiler.js.map +1 -0
- package/dist/cloud-workspace/runtime/level-editor-extension.d.ts +115 -0
- package/dist/cloud-workspace/runtime/level-editor-extension.d.ts.map +1 -0
- package/dist/cloud-workspace/runtime/level-editor-extension.js +107 -0
- package/dist/cloud-workspace/runtime/level-editor-extension.js.map +1 -0
- package/dist/cloud-workspace/runtime/level-editor-path.d.ts +12 -0
- package/dist/cloud-workspace/runtime/level-editor-path.d.ts.map +1 -0
- package/dist/cloud-workspace/runtime/level-editor-path.js +110 -0
- package/dist/cloud-workspace/runtime/level-editor-path.js.map +1 -0
- package/dist/cloud-workspace/runtime/level-editor-reducer.d.ts +30 -0
- package/dist/cloud-workspace/runtime/level-editor-reducer.d.ts.map +1 -0
- package/dist/cloud-workspace/runtime/level-editor-reducer.js +627 -0
- package/dist/cloud-workspace/runtime/level-editor-reducer.js.map +1 -0
- package/dist/cloud-workspace/runtime/level-editor-schema.d.ts +621 -0
- package/dist/cloud-workspace/runtime/level-editor-schema.d.ts.map +1 -0
- package/dist/cloud-workspace/runtime/level-editor-schema.js +409 -0
- package/dist/cloud-workspace/runtime/level-editor-schema.js.map +1 -0
- package/dist/cloud-workspace/runtime/level-editor-validation.d.ts +11 -0
- package/dist/cloud-workspace/runtime/level-editor-validation.d.ts.map +1 -0
- package/dist/cloud-workspace/runtime/level-editor-validation.js +128 -0
- package/dist/cloud-workspace/runtime/level-editor-validation.js.map +1 -0
- package/dist/cloud-workspace/runtime/level-editor.d.ts +7 -0
- package/dist/cloud-workspace/runtime/level-editor.d.ts.map +1 -0
- package/dist/cloud-workspace/runtime/level-editor.js +7 -0
- package/dist/cloud-workspace/runtime/level-editor.js.map +1 -0
- package/dist/cloud-workspace/runtime/model-build-inputs.d.ts +1 -1
- package/dist/cloud-workspace/runtime/model-production.d.ts +41 -23
- package/dist/cloud-workspace/runtime/model-production.d.ts.map +1 -1
- package/dist/cloud-workspace/runtime/model-quality.d.ts +7 -7
- package/dist/cloud-workspace/runtime/model-validation.d.ts +8 -8
- package/dist/cloud-workspace/runtime/operations.d.ts +364 -8
- package/dist/cloud-workspace/runtime/operations.d.ts.map +1 -1
- package/dist/cloud-workspace/runtime/operations.js +33 -6
- package/dist/cloud-workspace/runtime/operations.js.map +1 -1
- package/dist/cloud-workspace/runtime/parameter-agent.d.ts +2 -2
- package/dist/cloud-workspace/runtime/previews.d.ts +3 -3
- package/dist/cloud-workspace/runtime/score-document.d.ts +285 -0
- package/dist/cloud-workspace/runtime/score-document.d.ts.map +1 -0
- package/dist/cloud-workspace/runtime/score-document.js +114 -0
- package/dist/cloud-workspace/runtime/score-document.js.map +1 -0
- package/dist/cloud-workspace/runtime/score-editing.d.ts +39 -0
- package/dist/cloud-workspace/runtime/score-editing.d.ts.map +1 -0
- package/dist/cloud-workspace/runtime/score-editing.js +180 -0
- package/dist/cloud-workspace/runtime/score-editing.js.map +1 -0
- package/dist/cloud-workspace/runtime/score-merging.d.ts +4 -0
- package/dist/cloud-workspace/runtime/score-merging.d.ts.map +1 -0
- package/dist/cloud-workspace/runtime/score-merging.js +74 -0
- package/dist/cloud-workspace/runtime/score-merging.js.map +1 -0
- package/dist/cloud-workspace/runtime/score-midi.d.ts +7 -0
- package/dist/cloud-workspace/runtime/score-midi.d.ts.map +1 -0
- package/dist/cloud-workspace/runtime/score-midi.js +226 -0
- package/dist/cloud-workspace/runtime/score-midi.js.map +1 -0
- package/dist/cloud-workspace/runtime/score-synthesizer.d.ts +51 -0
- package/dist/cloud-workspace/runtime/score-synthesizer.d.ts.map +1 -0
- package/dist/cloud-workspace/runtime/score-synthesizer.js +388 -0
- package/dist/cloud-workspace/runtime/score-synthesizer.js.map +1 -0
- package/dist/cloud-workspace/runtime/skills.d.ts +2 -2
- package/dist/cloud-workspace/runtime/skills.d.ts.map +1 -1
- package/dist/cloud-workspace/runtime/workspace-notifications.d.ts +1 -1
- package/dist/cloud-workspace/runtime/workspace-ui.d.ts +4 -4
- package/dist/project-skills/local-snapshot.d.ts +5 -3
- package/dist/project-skills/local-snapshot.d.ts.map +1 -1
- package/dist/project-skills/local-snapshot.js +15 -4
- package/dist/project-skills/local-snapshot.js.map +1 -1
- package/dist/project-skills/protocol.d.ts +7 -3
- package/dist/project-skills/protocol.d.ts.map +1 -1
- package/dist/project-skills/protocol.js +19 -1
- package/dist/project-skills/protocol.js.map +1 -1
- package/dist/project-skills/types.d.ts +13 -0
- package/dist/project-skills/types.d.ts.map +1 -1
- package/dist/project-skills/types.js.map +1 -1
- package/package.json +1 -1
|
@@ -109,8 +109,8 @@ export declare const parameterAgentTaskRecordSchema: z.ZodObject<{
|
|
|
109
109
|
failed: "failed";
|
|
110
110
|
missing: "missing";
|
|
111
111
|
invalid: "invalid";
|
|
112
|
-
candidates: "candidates";
|
|
113
112
|
running: "running";
|
|
113
|
+
candidates: "candidates";
|
|
114
114
|
reported: "reported";
|
|
115
115
|
checking: "checking";
|
|
116
116
|
verified: "verified";
|
|
@@ -200,8 +200,8 @@ export declare const parameterAgentTaskListSchema: z.ZodObject<{
|
|
|
200
200
|
failed: "failed";
|
|
201
201
|
missing: "missing";
|
|
202
202
|
invalid: "invalid";
|
|
203
|
-
candidates: "candidates";
|
|
204
203
|
running: "running";
|
|
204
|
+
candidates: "candidates";
|
|
205
205
|
reported: "reported";
|
|
206
206
|
checking: "checking";
|
|
207
207
|
verified: "verified";
|
|
@@ -73,12 +73,12 @@ export declare const previewStatusSchema: z.ZodObject<{
|
|
|
73
73
|
id: z.ZodString;
|
|
74
74
|
kind: z.ZodEnum<{
|
|
75
75
|
file: "file";
|
|
76
|
+
document: "document";
|
|
77
|
+
audio: "audio";
|
|
76
78
|
playable: "playable";
|
|
77
79
|
image: "image";
|
|
78
80
|
video: "video";
|
|
79
81
|
model: "model";
|
|
80
|
-
audio: "audio";
|
|
81
|
-
document: "document";
|
|
82
82
|
}>;
|
|
83
83
|
name: z.ZodString;
|
|
84
84
|
currentVersionId: z.ZodString;
|
|
@@ -165,8 +165,8 @@ export declare const previewStatusSchema: z.ZodObject<{
|
|
|
165
165
|
}, z.core.$strict>>;
|
|
166
166
|
}, z.core.$strict>>;
|
|
167
167
|
modelBuildState: z.ZodOptional<z.ZodEnum<{
|
|
168
|
-
stale: "stale";
|
|
169
168
|
current: "current";
|
|
169
|
+
stale: "stale";
|
|
170
170
|
unavailable: "unavailable";
|
|
171
171
|
}>>;
|
|
172
172
|
}, z.core.$strict>>;
|
|
@@ -0,0 +1,285 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { type WorkspaceAudioDocument } from './audio-document.js';
|
|
3
|
+
export declare const WORKSPACE_SCORE_ENGINE: {
|
|
4
|
+
readonly id: "playcraft-webaudio-score";
|
|
5
|
+
readonly version: "1.0.0";
|
|
6
|
+
};
|
|
7
|
+
export declare const SCORE_INSTRUMENTS: readonly ["piano", "bell", "bass", "pad", "sine", "drums"];
|
|
8
|
+
export declare const WORKSPACE_SCORE_LIMITS: {
|
|
9
|
+
readonly documentBytes: 65536;
|
|
10
|
+
readonly tracks: 8;
|
|
11
|
+
readonly notes: 512;
|
|
12
|
+
readonly simultaneousNotes: 32;
|
|
13
|
+
readonly durationSeconds: 60;
|
|
14
|
+
readonly graphNodes: 4096;
|
|
15
|
+
readonly playingInstances: 8;
|
|
16
|
+
};
|
|
17
|
+
export declare const scoreNoteSchema: z.ZodObject<{
|
|
18
|
+
id: z.ZodString;
|
|
19
|
+
startBeat: z.ZodNumber;
|
|
20
|
+
durationBeats: z.ZodNumber;
|
|
21
|
+
pitch: z.ZodNumber;
|
|
22
|
+
velocity: z.ZodNumber;
|
|
23
|
+
}, z.core.$strict>;
|
|
24
|
+
export declare const scoreTrackSchema: z.ZodObject<{
|
|
25
|
+
id: z.ZodString;
|
|
26
|
+
name: z.ZodString;
|
|
27
|
+
instrument: z.ZodEnum<{
|
|
28
|
+
sine: "sine";
|
|
29
|
+
piano: "piano";
|
|
30
|
+
bell: "bell";
|
|
31
|
+
bass: "bass";
|
|
32
|
+
pad: "pad";
|
|
33
|
+
drums: "drums";
|
|
34
|
+
}>;
|
|
35
|
+
gain: z.ZodNumber;
|
|
36
|
+
muted: z.ZodBoolean;
|
|
37
|
+
solo: z.ZodBoolean;
|
|
38
|
+
notes: z.ZodArray<z.ZodObject<{
|
|
39
|
+
id: z.ZodString;
|
|
40
|
+
startBeat: z.ZodNumber;
|
|
41
|
+
durationBeats: z.ZodNumber;
|
|
42
|
+
pitch: z.ZodNumber;
|
|
43
|
+
velocity: z.ZodNumber;
|
|
44
|
+
}, z.core.$strict>>;
|
|
45
|
+
automation: z.ZodArray<z.ZodObject<{
|
|
46
|
+
target: z.ZodLiteral<"gain">;
|
|
47
|
+
interpolation: z.ZodEnum<{
|
|
48
|
+
linear: "linear";
|
|
49
|
+
step: "step";
|
|
50
|
+
}>;
|
|
51
|
+
points: z.ZodArray<z.ZodObject<{
|
|
52
|
+
beat: z.ZodNumber;
|
|
53
|
+
value: z.ZodNumber;
|
|
54
|
+
}, z.core.$strict>>;
|
|
55
|
+
}, z.core.$strict>>;
|
|
56
|
+
}, z.core.$strict>;
|
|
57
|
+
export declare const scoreLoopSchema: z.ZodObject<{
|
|
58
|
+
enabled: z.ZodBoolean;
|
|
59
|
+
startBeat: z.ZodNumber;
|
|
60
|
+
endBeat: z.ZodNumber;
|
|
61
|
+
}, z.core.$strict>;
|
|
62
|
+
export declare const scoreSelectionSchema: z.ZodObject<{
|
|
63
|
+
trackIds: z.ZodArray<z.ZodString>;
|
|
64
|
+
noteIds: z.ZodArray<z.ZodString>;
|
|
65
|
+
rangeBeats: z.ZodNullable<z.ZodObject<{
|
|
66
|
+
start: z.ZodNumber;
|
|
67
|
+
end: z.ZodNumber;
|
|
68
|
+
}, z.core.$strict>>;
|
|
69
|
+
}, z.core.$strict>;
|
|
70
|
+
export declare const scoreProtectionSchema: z.ZodObject<{
|
|
71
|
+
lockedTrackIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
72
|
+
preserveMelody: z.ZodOptional<z.ZodBoolean>;
|
|
73
|
+
selection: z.ZodOptional<z.ZodObject<{
|
|
74
|
+
trackIds: z.ZodArray<z.ZodString>;
|
|
75
|
+
noteIds: z.ZodArray<z.ZodString>;
|
|
76
|
+
rangeBeats: z.ZodNullable<z.ZodObject<{
|
|
77
|
+
start: z.ZodNumber;
|
|
78
|
+
end: z.ZodNumber;
|
|
79
|
+
}, z.core.$strict>>;
|
|
80
|
+
}, z.core.$strict>>;
|
|
81
|
+
}, z.core.$strict>;
|
|
82
|
+
export type ScoreSelection = z.infer<typeof scoreSelectionSchema>;
|
|
83
|
+
export type ScoreProtection = z.infer<typeof scoreProtectionSchema>;
|
|
84
|
+
export declare const workspaceScoreDocumentSchema: z.ZodObject<{
|
|
85
|
+
format: z.ZodLiteral<"playcraft.score">;
|
|
86
|
+
formatVersion: z.ZodLiteral<1>;
|
|
87
|
+
name: z.ZodString;
|
|
88
|
+
engine: z.ZodObject<{
|
|
89
|
+
id: z.ZodLiteral<"playcraft-webaudio-score">;
|
|
90
|
+
version: z.ZodLiteral<"1.0.0">;
|
|
91
|
+
}, z.core.$strict>;
|
|
92
|
+
content: z.ZodObject<{
|
|
93
|
+
kind: z.ZodLiteral<"score">;
|
|
94
|
+
tempoBpm: z.ZodNumber;
|
|
95
|
+
timeSignature: z.ZodObject<{
|
|
96
|
+
numerator: z.ZodNumber;
|
|
97
|
+
denominator: z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<4>, z.ZodLiteral<8>, z.ZodLiteral<16>]>;
|
|
98
|
+
}, z.core.$strict>;
|
|
99
|
+
lengthBeats: z.ZodNumber;
|
|
100
|
+
masterGain: z.ZodNumber;
|
|
101
|
+
loop: z.ZodObject<{
|
|
102
|
+
enabled: z.ZodBoolean;
|
|
103
|
+
startBeat: z.ZodNumber;
|
|
104
|
+
endBeat: z.ZodNumber;
|
|
105
|
+
}, z.core.$strict>;
|
|
106
|
+
tracks: z.ZodArray<z.ZodObject<{
|
|
107
|
+
id: z.ZodString;
|
|
108
|
+
name: z.ZodString;
|
|
109
|
+
instrument: z.ZodEnum<{
|
|
110
|
+
sine: "sine";
|
|
111
|
+
piano: "piano";
|
|
112
|
+
bell: "bell";
|
|
113
|
+
bass: "bass";
|
|
114
|
+
pad: "pad";
|
|
115
|
+
drums: "drums";
|
|
116
|
+
}>;
|
|
117
|
+
gain: z.ZodNumber;
|
|
118
|
+
muted: z.ZodBoolean;
|
|
119
|
+
solo: z.ZodBoolean;
|
|
120
|
+
notes: z.ZodArray<z.ZodObject<{
|
|
121
|
+
id: z.ZodString;
|
|
122
|
+
startBeat: z.ZodNumber;
|
|
123
|
+
durationBeats: z.ZodNumber;
|
|
124
|
+
pitch: z.ZodNumber;
|
|
125
|
+
velocity: z.ZodNumber;
|
|
126
|
+
}, z.core.$strict>>;
|
|
127
|
+
automation: z.ZodArray<z.ZodObject<{
|
|
128
|
+
target: z.ZodLiteral<"gain">;
|
|
129
|
+
interpolation: z.ZodEnum<{
|
|
130
|
+
linear: "linear";
|
|
131
|
+
step: "step";
|
|
132
|
+
}>;
|
|
133
|
+
points: z.ZodArray<z.ZodObject<{
|
|
134
|
+
beat: z.ZodNumber;
|
|
135
|
+
value: z.ZodNumber;
|
|
136
|
+
}, z.core.$strict>>;
|
|
137
|
+
}, z.core.$strict>>;
|
|
138
|
+
}, z.core.$strict>>;
|
|
139
|
+
}, z.core.$strict>;
|
|
140
|
+
dependencies: z.ZodArray<z.ZodNever>;
|
|
141
|
+
}, z.core.$strict>;
|
|
142
|
+
export type WorkspaceScoreDocument = z.infer<typeof workspaceScoreDocumentSchema>;
|
|
143
|
+
export type WorkspaceScoreTrack = WorkspaceScoreDocument['content']['tracks'][number];
|
|
144
|
+
export type WorkspaceScoreNote = WorkspaceScoreTrack['notes'][number];
|
|
145
|
+
export type WorkspaceScoreInstrument = typeof SCORE_INSTRUMENTS[number];
|
|
146
|
+
export type WorkspaceSoundDocument = WorkspaceAudioDocument | WorkspaceScoreDocument;
|
|
147
|
+
export declare const workspaceSoundDocumentSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
148
|
+
format: z.ZodLiteral<"playcraft.audio">;
|
|
149
|
+
formatVersion: z.ZodLiteral<1>;
|
|
150
|
+
name: z.ZodString;
|
|
151
|
+
engine: z.ZodObject<{
|
|
152
|
+
id: z.ZodLiteral<"playcraft-webaudio-sfx">;
|
|
153
|
+
version: z.ZodLiteral<"1.0.0">;
|
|
154
|
+
}, z.core.$strict>;
|
|
155
|
+
content: z.ZodObject<{
|
|
156
|
+
kind: z.ZodLiteral<"synth-sfx">;
|
|
157
|
+
durationSeconds: z.ZodNumber;
|
|
158
|
+
seed: z.ZodNumber;
|
|
159
|
+
masterGain: z.ZodNumber;
|
|
160
|
+
voices: z.ZodArray<z.ZodObject<{
|
|
161
|
+
id: z.ZodString;
|
|
162
|
+
startSeconds: z.ZodNumber;
|
|
163
|
+
durationSeconds: z.ZodNumber;
|
|
164
|
+
gain: z.ZodNumber;
|
|
165
|
+
source: z.ZodUnion<readonly [z.ZodObject<{
|
|
166
|
+
kind: z.ZodLiteral<"oscillator">;
|
|
167
|
+
waveform: z.ZodEnum<{
|
|
168
|
+
custom: "custom";
|
|
169
|
+
sine: "sine";
|
|
170
|
+
triangle: "triangle";
|
|
171
|
+
square: "square";
|
|
172
|
+
sawtooth: "sawtooth";
|
|
173
|
+
}>;
|
|
174
|
+
frequencyHz: z.ZodNumber;
|
|
175
|
+
harmonics: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
176
|
+
ratio: z.ZodNumber;
|
|
177
|
+
amplitude: z.ZodNumber;
|
|
178
|
+
phaseRadians: z.ZodNumber;
|
|
179
|
+
}, z.core.$strict>>>;
|
|
180
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
181
|
+
kind: z.ZodLiteral<"noise">;
|
|
182
|
+
color: z.ZodEnum<{
|
|
183
|
+
white: "white";
|
|
184
|
+
pink: "pink";
|
|
185
|
+
brown: "brown";
|
|
186
|
+
}>;
|
|
187
|
+
}, z.core.$strict>]>;
|
|
188
|
+
envelope: z.ZodObject<{
|
|
189
|
+
attackSeconds: z.ZodNumber;
|
|
190
|
+
decaySeconds: z.ZodNumber;
|
|
191
|
+
sustainLevel: z.ZodNumber;
|
|
192
|
+
releaseSeconds: z.ZodNumber;
|
|
193
|
+
}, z.core.$strict>;
|
|
194
|
+
filter: z.ZodNullable<z.ZodObject<{
|
|
195
|
+
type: z.ZodEnum<{
|
|
196
|
+
lowpass: "lowpass";
|
|
197
|
+
highpass: "highpass";
|
|
198
|
+
bandpass: "bandpass";
|
|
199
|
+
}>;
|
|
200
|
+
cutoffHz: z.ZodNumber;
|
|
201
|
+
resonance: z.ZodNumber;
|
|
202
|
+
}, z.core.$strict>>;
|
|
203
|
+
}, z.core.$strict>>;
|
|
204
|
+
automation: z.ZodArray<z.ZodObject<{
|
|
205
|
+
target: z.ZodString;
|
|
206
|
+
interpolation: z.ZodEnum<{
|
|
207
|
+
linear: "linear";
|
|
208
|
+
step: "step";
|
|
209
|
+
}>;
|
|
210
|
+
points: z.ZodArray<z.ZodObject<{
|
|
211
|
+
timeSeconds: z.ZodNumber;
|
|
212
|
+
value: z.ZodNumber;
|
|
213
|
+
}, z.core.$strict>>;
|
|
214
|
+
}, z.core.$strict>>;
|
|
215
|
+
}, z.core.$strict>;
|
|
216
|
+
dependencies: z.ZodArray<z.ZodNever>;
|
|
217
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
218
|
+
format: z.ZodLiteral<"playcraft.score">;
|
|
219
|
+
formatVersion: z.ZodLiteral<1>;
|
|
220
|
+
name: z.ZodString;
|
|
221
|
+
engine: z.ZodObject<{
|
|
222
|
+
id: z.ZodLiteral<"playcraft-webaudio-score">;
|
|
223
|
+
version: z.ZodLiteral<"1.0.0">;
|
|
224
|
+
}, z.core.$strict>;
|
|
225
|
+
content: z.ZodObject<{
|
|
226
|
+
kind: z.ZodLiteral<"score">;
|
|
227
|
+
tempoBpm: z.ZodNumber;
|
|
228
|
+
timeSignature: z.ZodObject<{
|
|
229
|
+
numerator: z.ZodNumber;
|
|
230
|
+
denominator: z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<4>, z.ZodLiteral<8>, z.ZodLiteral<16>]>;
|
|
231
|
+
}, z.core.$strict>;
|
|
232
|
+
lengthBeats: z.ZodNumber;
|
|
233
|
+
masterGain: z.ZodNumber;
|
|
234
|
+
loop: z.ZodObject<{
|
|
235
|
+
enabled: z.ZodBoolean;
|
|
236
|
+
startBeat: z.ZodNumber;
|
|
237
|
+
endBeat: z.ZodNumber;
|
|
238
|
+
}, z.core.$strict>;
|
|
239
|
+
tracks: z.ZodArray<z.ZodObject<{
|
|
240
|
+
id: z.ZodString;
|
|
241
|
+
name: z.ZodString;
|
|
242
|
+
instrument: z.ZodEnum<{
|
|
243
|
+
sine: "sine";
|
|
244
|
+
piano: "piano";
|
|
245
|
+
bell: "bell";
|
|
246
|
+
bass: "bass";
|
|
247
|
+
pad: "pad";
|
|
248
|
+
drums: "drums";
|
|
249
|
+
}>;
|
|
250
|
+
gain: z.ZodNumber;
|
|
251
|
+
muted: z.ZodBoolean;
|
|
252
|
+
solo: z.ZodBoolean;
|
|
253
|
+
notes: z.ZodArray<z.ZodObject<{
|
|
254
|
+
id: z.ZodString;
|
|
255
|
+
startBeat: z.ZodNumber;
|
|
256
|
+
durationBeats: z.ZodNumber;
|
|
257
|
+
pitch: z.ZodNumber;
|
|
258
|
+
velocity: z.ZodNumber;
|
|
259
|
+
}, z.core.$strict>>;
|
|
260
|
+
automation: z.ZodArray<z.ZodObject<{
|
|
261
|
+
target: z.ZodLiteral<"gain">;
|
|
262
|
+
interpolation: z.ZodEnum<{
|
|
263
|
+
linear: "linear";
|
|
264
|
+
step: "step";
|
|
265
|
+
}>;
|
|
266
|
+
points: z.ZodArray<z.ZodObject<{
|
|
267
|
+
beat: z.ZodNumber;
|
|
268
|
+
value: z.ZodNumber;
|
|
269
|
+
}, z.core.$strict>>;
|
|
270
|
+
}, z.core.$strict>>;
|
|
271
|
+
}, z.core.$strict>>;
|
|
272
|
+
}, z.core.$strict>;
|
|
273
|
+
dependencies: z.ZodArray<z.ZodNever>;
|
|
274
|
+
}, z.core.$strict>]>;
|
|
275
|
+
export declare const isScoreDocument: (document: WorkspaceSoundDocument) => document is WorkspaceScoreDocument;
|
|
276
|
+
export declare const isSoundDocumentPath: (path: string) => boolean;
|
|
277
|
+
export declare const soundDurationSeconds: (document: WorkspaceSoundDocument) => number;
|
|
278
|
+
export declare const scoreBeatSeconds: (document: WorkspaceScoreDocument, beat: number) => number;
|
|
279
|
+
export declare const scoreBeatsPerBar: (document: WorkspaceScoreDocument) => number;
|
|
280
|
+
export declare function validateScoreDocument(value: unknown): WorkspaceScoreDocument;
|
|
281
|
+
export declare function validateSoundDocument(value: unknown): WorkspaceSoundDocument;
|
|
282
|
+
export declare function parseSoundDocument(input: string | Uint8Array): WorkspaceSoundDocument;
|
|
283
|
+
export declare const serializeSoundDocument: (document: WorkspaceSoundDocument) => string;
|
|
284
|
+
export declare function soundSourceRenderHash(document: WorkspaceSoundDocument): string;
|
|
285
|
+
//# sourceMappingURL=score-document.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{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sBAAsB,GAAG,sBAAsB,CAAC;AACrF,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oBAAwE,CAAC;AAClH,eAAO,MAAM,eAAe,GAAI,UAAU,sBAAsB,KAAG,QAAQ,IAAI,sBAA+D,CAAC;AAC/I,eAAO,MAAM,mBAAmB,GAAI,MAAM,MAAM,KAAG,OAAmD,CAAC;AACvG,eAAO,MAAM,oBAAoB,GAAI,UAAU,sBAAsB,KAAG,MAC4B,CAAC;AACrG,eAAO,MAAM,gBAAgB,GAAI,UAAU,sBAAsB,EAAE,MAAM,MAAM,KAAG,MAA+C,CAAC;AAClI,eAAO,MAAM,gBAAgB,GAAI,UAAU,sBAAsB,KAAG,MAAmG,CAAC;AAExK,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,OAAO,GAAG,sBAAsB,CAS5E;AACD,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,OAAO,GAAG,sBAAsB,CAE5E;AACD,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,MAAM,GAAG,UAAU,GAAG,sBAAsB,CAMrF;AACD,eAAO,MAAM,sBAAsB,GAAI,UAAU,sBAAsB,KAAG,MAAoE,CAAC;AAC/I,wBAAgB,qBAAqB,CAAC,QAAQ,EAAE,sBAAsB,GAAG,MAAM,CAI9E"}
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { AudioDocumentError, assertUniqueJsonKeys, audioSha256, audioSourceRenderHash, canonicalAudioJson, validateAudioDocument, workspaceAudioDocumentSchema } from './audio-document.js';
|
|
3
|
+
export const WORKSPACE_SCORE_ENGINE = { id: 'playcraft-webaudio-score', version: '1.0.0' };
|
|
4
|
+
export const SCORE_INSTRUMENTS = ['piano', 'bell', 'bass', 'pad', 'sine', 'drums'];
|
|
5
|
+
export const WORKSPACE_SCORE_LIMITS = { documentBytes: 65536, tracks: 8, notes: 512,
|
|
6
|
+
simultaneousNotes: 32, durationSeconds: 60, graphNodes: 4096, playingInstances: 8 };
|
|
7
|
+
const number = () => z.number().finite();
|
|
8
|
+
const unit = () => number().min(0).max(1);
|
|
9
|
+
const stableId = z.string().regex(/^[a-z][a-z0-9_-]{0,63}$/);
|
|
10
|
+
export const scoreNoteSchema = z.object({ id: stableId, startBeat: number().nonnegative().max(256),
|
|
11
|
+
durationBeats: number().min(1 / 128).max(256), pitch: number().int().min(0).max(127), velocity: unit() }).strict();
|
|
12
|
+
const scoreCurveSchema = z.object({ target: z.literal('gain'), interpolation: z.enum(['linear', 'step']),
|
|
13
|
+
points: z.array(z.object({ beat: number().nonnegative().max(256), value: unit() }).strict()).min(2).max(32) }).strict();
|
|
14
|
+
export const scoreTrackSchema = z.object({ id: stableId, name: z.string().min(1).max(128),
|
|
15
|
+
instrument: z.enum(SCORE_INSTRUMENTS), gain: unit(), muted: z.boolean(), solo: z.boolean(),
|
|
16
|
+
notes: z.array(scoreNoteSchema).max(512), automation: z.array(scoreCurveSchema).max(1) }).strict();
|
|
17
|
+
export const scoreLoopSchema = z.object({ enabled: z.boolean(), startBeat: number().nonnegative(), endBeat: number().positive().max(256) }).strict();
|
|
18
|
+
export const scoreSelectionSchema = z.object({ trackIds: z.array(stableId).max(8), noteIds: z.array(stableId).max(512),
|
|
19
|
+
rangeBeats: z.object({ start: number().nonnegative(), end: number().positive().max(256) }).strict()
|
|
20
|
+
.refine(range => range.end > range.start).nullable() }).strict();
|
|
21
|
+
export const scoreProtectionSchema = z.object({ lockedTrackIds: z.array(stableId).max(8).optional(),
|
|
22
|
+
preserveMelody: z.boolean().optional(), selection: scoreSelectionSchema.optional() }).strict();
|
|
23
|
+
export const workspaceScoreDocumentSchema = z.object({ format: z.literal('playcraft.score'), formatVersion: z.literal(1),
|
|
24
|
+
name: z.string().min(1).max(128), engine: z.object({ id: z.literal(WORKSPACE_SCORE_ENGINE.id),
|
|
25
|
+
version: z.literal(WORKSPACE_SCORE_ENGINE.version) }).strict(),
|
|
26
|
+
content: z.object({ kind: z.literal('score'), tempoBpm: number().min(40).max(240),
|
|
27
|
+
timeSignature: z.object({ numerator: number().int().min(1).max(12), denominator: z.union([
|
|
28
|
+
z.literal(1), z.literal(2), z.literal(4), z.literal(8), z.literal(16)
|
|
29
|
+
]) }).strict(),
|
|
30
|
+
lengthBeats: number().min(1).max(256), masterGain: unit(), loop: scoreLoopSchema,
|
|
31
|
+
tracks: z.array(scoreTrackSchema).min(1).max(8) }).strict(), dependencies: z.array(z.never()).max(0),
|
|
32
|
+
}).strict().superRefine((doc, ctx) => {
|
|
33
|
+
const fail = (message) => ctx.addIssue({ code: 'custom', message, path: ['content'] });
|
|
34
|
+
const content = doc.content;
|
|
35
|
+
if (content.lengthBeats * 60 / content.tempoBpm > 60)
|
|
36
|
+
fail('audio_budget_exceeded');
|
|
37
|
+
if (content.loop.endBeat <= content.loop.startBeat || content.loop.endBeat > content.lengthBeats
|
|
38
|
+
|| (content.loop.endBeat - content.loop.startBeat) * 60 / content.tempoBpm < 0.05)
|
|
39
|
+
fail('invalid_score_loop');
|
|
40
|
+
if (new Set(content.tracks.map(track => track.id)).size !== content.tracks.length)
|
|
41
|
+
fail('duplicate_score_track');
|
|
42
|
+
const notes = content.tracks.flatMap(track => track.notes);
|
|
43
|
+
if (!notes.length || notes.length > 512)
|
|
44
|
+
fail('audio_budget_exceeded');
|
|
45
|
+
// IDs are globally unique so a frozen selection cannot become ambiguous across tracks.
|
|
46
|
+
if (new Set(notes.map(note => note.id)).size !== notes.length)
|
|
47
|
+
fail('duplicate_score_note');
|
|
48
|
+
if (notes.some(note => note.startBeat + note.durationBeats > content.lengthBeats + 1e-9))
|
|
49
|
+
fail('invalid_score_note_time');
|
|
50
|
+
const edges = notes.filter(note => note.velocity > 0).flatMap(note => [
|
|
51
|
+
{ at: note.startBeat, delta: 1 }, { at: note.startBeat + note.durationBeats, delta: -1 },
|
|
52
|
+
]).sort((a, b) => a.at - b.at || a.delta - b.delta);
|
|
53
|
+
let active = 0;
|
|
54
|
+
for (const edge of edges) {
|
|
55
|
+
active += edge.delta;
|
|
56
|
+
if (active > 32) {
|
|
57
|
+
fail('audio_voice_budget_exceeded');
|
|
58
|
+
break;
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
for (const track of content.tracks)
|
|
62
|
+
for (const curve of track.automation) {
|
|
63
|
+
if (curve.points[0].beat !== 0 || Math.abs(curve.points.at(-1).beat - content.lengthBeats) > 1e-9
|
|
64
|
+
|| curve.points.some((point, index) => index > 0 && point.beat <= curve.points[index - 1].beat))
|
|
65
|
+
fail('invalid_score_curve');
|
|
66
|
+
}
|
|
67
|
+
});
|
|
68
|
+
export const workspaceSoundDocumentSchema = z.union([workspaceAudioDocumentSchema, workspaceScoreDocumentSchema]);
|
|
69
|
+
export const isScoreDocument = (document) => document.format === 'playcraft.score';
|
|
70
|
+
export const isSoundDocumentPath = (path) => /\.(pcaudio|pcscore)\.json$/i.test(path);
|
|
71
|
+
export const soundDurationSeconds = (document) => isScoreDocument(document)
|
|
72
|
+
? document.content.lengthBeats * 60 / document.content.tempoBpm : document.content.durationSeconds;
|
|
73
|
+
export const scoreBeatSeconds = (document, beat) => beat * 60 / document.content.tempoBpm;
|
|
74
|
+
export const scoreBeatsPerBar = (document) => document.content.timeSignature.numerator * 4 / document.content.timeSignature.denominator;
|
|
75
|
+
export function validateScoreDocument(value) {
|
|
76
|
+
const raw = value;
|
|
77
|
+
if (raw?.format !== 'playcraft.score')
|
|
78
|
+
throw new AudioDocumentError('unsupported_audio_format');
|
|
79
|
+
if (raw.formatVersion !== 1)
|
|
80
|
+
throw new AudioDocumentError('unsupported_format_version');
|
|
81
|
+
if (raw.content?.kind !== 'score')
|
|
82
|
+
throw new AudioDocumentError('unsupported_content_kind');
|
|
83
|
+
const result = workspaceScoreDocumentSchema.safeParse(value);
|
|
84
|
+
if (!result.success)
|
|
85
|
+
throw new AudioDocumentError('invalid_audio_document', result.error.issues);
|
|
86
|
+
if (new TextEncoder().encode(canonicalAudioJson(result.data) + '\n').length > 65536)
|
|
87
|
+
throw new AudioDocumentError('audio_budget_exceeded');
|
|
88
|
+
return result.data;
|
|
89
|
+
}
|
|
90
|
+
export function validateSoundDocument(value) {
|
|
91
|
+
return value?.format === 'playcraft.score' ? validateScoreDocument(value) : validateAudioDocument(value);
|
|
92
|
+
}
|
|
93
|
+
export function parseSoundDocument(input) {
|
|
94
|
+
if ((typeof input === 'string' ? new TextEncoder().encode(input).length : input.byteLength) > 65536)
|
|
95
|
+
throw new AudioDocumentError('audio_budget_exceeded');
|
|
96
|
+
try {
|
|
97
|
+
const text = typeof input === 'string' ? input : new TextDecoder('utf-8', { fatal: true, ignoreBOM: true }).decode(input);
|
|
98
|
+
assertUniqueJsonKeys(text);
|
|
99
|
+
return validateSoundDocument(JSON.parse(text));
|
|
100
|
+
}
|
|
101
|
+
catch (error) {
|
|
102
|
+
if (error instanceof AudioDocumentError)
|
|
103
|
+
throw error;
|
|
104
|
+
throw new AudioDocumentError('invalid_audio_document');
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
export const serializeSoundDocument = (document) => canonicalAudioJson(validateSoundDocument(document)) + '\n';
|
|
108
|
+
export function soundSourceRenderHash(document) {
|
|
109
|
+
if (!isScoreDocument(document))
|
|
110
|
+
return audioSourceRenderHash(document);
|
|
111
|
+
const { engine, content, dependencies } = validateScoreDocument(document);
|
|
112
|
+
return audioSha256(canonicalAudioJson({ engine, content, dependencies }));
|
|
113
|
+
}
|
|
114
|
+
//# sourceMappingURL=score-document.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"score-document.js","sourceRoot":"","sources":["../../../src/cloud-workspace/runtime/score-document.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,kBAAk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C5E,CAAC"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { type ScoreProtection, type ScoreSelection, type WorkspaceScoreDocument, type WorkspaceScoreInstrument, type WorkspaceScoreNote, type WorkspaceScoreTrack } from './score-document.js';
|
|
2
|
+
export type ScoreAdjustment = {
|
|
3
|
+
kind: 'tempo' | 'volume';
|
|
4
|
+
value: number;
|
|
5
|
+
} | {
|
|
6
|
+
kind: 'instrument';
|
|
7
|
+
instrument: WorkspaceScoreInstrument;
|
|
8
|
+
trackIds: string[];
|
|
9
|
+
} | {
|
|
10
|
+
kind: 'track-gain';
|
|
11
|
+
value: number;
|
|
12
|
+
trackIds: string[];
|
|
13
|
+
} | {
|
|
14
|
+
kind: 'mute' | 'solo';
|
|
15
|
+
value: boolean;
|
|
16
|
+
trackIds: string[];
|
|
17
|
+
} | {
|
|
18
|
+
kind: 'transpose' | 'quantize';
|
|
19
|
+
value: number;
|
|
20
|
+
selection?: ScoreSelection;
|
|
21
|
+
} | {
|
|
22
|
+
kind: 'note';
|
|
23
|
+
trackId: string;
|
|
24
|
+
noteId?: string;
|
|
25
|
+
note: WorkspaceScoreNote | null;
|
|
26
|
+
} | {
|
|
27
|
+
kind: 'loop';
|
|
28
|
+
loop: WorkspaceScoreDocument['content']['loop'];
|
|
29
|
+
} | {
|
|
30
|
+
kind: 'add-track';
|
|
31
|
+
track: WorkspaceScoreTrack;
|
|
32
|
+
} | {
|
|
33
|
+
kind: 'remove-track';
|
|
34
|
+
trackId: string;
|
|
35
|
+
};
|
|
36
|
+
/** A frozen selection protects note identity and all timing dependencies outside its scope. */
|
|
37
|
+
export declare function assertScoreProtection(beforeInput: WorkspaceScoreDocument, afterInput: WorkspaceScoreDocument, protection?: ScoreProtection): void;
|
|
38
|
+
export declare function applyScoreAdjustment(document: WorkspaceScoreDocument, adjustment: ScoreAdjustment, protection?: ScoreProtection): WorkspaceScoreDocument;
|
|
39
|
+
//# sourceMappingURL=score-editing.d.ts.map
|
|
@@ -0,0 +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