Add support for audio trimming and looping

This commit is contained in:
Skyler Lehmkuhl
2025-11-28 06:53:28 -05:00
parent 422f97382b
commit a1ad0b44b1
19 changed files with 1218 additions and 375 deletions
+1 -1
View File
@@ -1178,12 +1178,12 @@ class AudioTrack {
name: clip.name,
startTime: clip.startTime,
duration: clip.duration,
offset: clip.offset || 0, // Default to 0 if not present
};
// Restore audio-specific fields
if (clip.poolIndex !== undefined) {
clipData.poolIndex = clip.poolIndex;
clipData.offset = clip.offset;
}
// Restore MIDI-specific fields