@signalsandsorcery/plugin-sdk 1.3.2 → 1.3.3
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/index.d.mts +14 -0
- package/dist/index.d.ts +14 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -145,6 +145,20 @@ interface PluginHost {
|
|
|
145
145
|
setTrackSolo(trackId: string, solo: boolean): Promise<void>;
|
|
146
146
|
/** Rename a track. Only works on owned tracks. */
|
|
147
147
|
setTrackName(trackId: string, name: string): Promise<void>;
|
|
148
|
+
/**
|
|
149
|
+
* Persist a track's musical role to the `tracks.role` column. Call this
|
|
150
|
+
* after an LLM generation classifies the track (e.g. `'bass'`, `'lead'`,
|
|
151
|
+
* `'pad'`, `'fx'`, `'kicks'`) so downstream features — especially the v1
|
|
152
|
+
* transition generator's layer classifier — can see the role.
|
|
153
|
+
*
|
|
154
|
+
* Canonical values understood by the transition classifier include
|
|
155
|
+
* `bass`, `drums`, `lead`, `chords`, `pad`, `arp`, `fx`, `kicks`,
|
|
156
|
+
* `snares`, `hats`, `clap`, `perc`, `riser`, `impact`. Anything else is
|
|
157
|
+
* stored verbatim but won't match the neutral-role set.
|
|
158
|
+
*
|
|
159
|
+
* Only works on owned tracks.
|
|
160
|
+
*/
|
|
161
|
+
setTrackRole(trackId: string, role: string): Promise<void>;
|
|
148
162
|
/** Shuffle preset: keep MIDI, apply a random preset from the same category. Only works on owned tracks. */
|
|
149
163
|
shufflePreset(trackId: string): Promise<ShufflePresetResult>;
|
|
150
164
|
/** Duplicate track: copy MIDI + role to a new track with a different preset. Only works on owned tracks. */
|
package/dist/index.d.ts
CHANGED
|
@@ -145,6 +145,20 @@ interface PluginHost {
|
|
|
145
145
|
setTrackSolo(trackId: string, solo: boolean): Promise<void>;
|
|
146
146
|
/** Rename a track. Only works on owned tracks. */
|
|
147
147
|
setTrackName(trackId: string, name: string): Promise<void>;
|
|
148
|
+
/**
|
|
149
|
+
* Persist a track's musical role to the `tracks.role` column. Call this
|
|
150
|
+
* after an LLM generation classifies the track (e.g. `'bass'`, `'lead'`,
|
|
151
|
+
* `'pad'`, `'fx'`, `'kicks'`) so downstream features — especially the v1
|
|
152
|
+
* transition generator's layer classifier — can see the role.
|
|
153
|
+
*
|
|
154
|
+
* Canonical values understood by the transition classifier include
|
|
155
|
+
* `bass`, `drums`, `lead`, `chords`, `pad`, `arp`, `fx`, `kicks`,
|
|
156
|
+
* `snares`, `hats`, `clap`, `perc`, `riser`, `impact`. Anything else is
|
|
157
|
+
* stored verbatim but won't match the neutral-role set.
|
|
158
|
+
*
|
|
159
|
+
* Only works on owned tracks.
|
|
160
|
+
*/
|
|
161
|
+
setTrackRole(trackId: string, role: string): Promise<void>;
|
|
148
162
|
/** Shuffle preset: keep MIDI, apply a random preset from the same category. Only works on owned tracks. */
|
|
149
163
|
shufflePreset(trackId: string): Promise<ShufflePresetResult>;
|
|
150
164
|
/** Duplicate track: copy MIDI + role to a new track with a different preset. Only works on owned tracks. */
|