You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Each `ts-track` element uses the `data-presets` attribute to define which presets it belongs to (as comma-separated preset indices, 0-indexed).
290
+
Each `ts-track` element uses the `presets` attribute to define which presets it belongs to (as comma-separated preset indices, 0-indexed).
291
291
292
292
In the example above:
293
293
-**Preset 0** (Full Mix): All tracks are soloed (Vocals, Drums, Bass, Guitar)
@@ -296,17 +296,17 @@ In the example above:
296
296
297
297
**Auto-Generated Preset Names**
298
298
299
-
If you don't define `data-preset-names`, preset names will be auto-generated as "Preset 0", "Preset 1", etc.:
299
+
If you don't define `preset-names`, preset names will be auto-generated as "Preset 0", "Preset 1", etc.:
300
300
301
301
```html
302
302
<divclass="player">
303
-
<ts-tracktitle="Vocals"data-presets="0,1">
303
+
<ts-tracktitle="Vocals"presets="0,1">
304
304
<ts-sourcesrc="vocals.mp3"></ts-source>
305
305
</ts-track>
306
-
<ts-tracktitle="Drums"data-presets="0,2">
306
+
<ts-tracktitle="Drums"presets="0,2">
307
307
<ts-sourcesrc="drums.mp3"></ts-source>
308
308
</ts-track>
309
-
<ts-tracktitle="Bass"data-presets="0,2">
309
+
<ts-tracktitle="Bass"presets="0,2">
310
310
<ts-sourcesrc="bass.mp3"></ts-source>
311
311
</ts-track>
312
312
</div>
@@ -317,8 +317,8 @@ If you don't define `data-preset-names`, preset names will be auto-generated as
317
317
Preset 0 is automatically created from tracks that have the `solo` attribute. If no tracks explicitly define their preset membership, they won't appear in any preset except those they're assigned to:
0 commit comments