melhorando a leitura de projetos no mmpCreator

This commit is contained in:
JotaChina committed 2025-12-25 15:47:10 -03:00
1 parent 9381152327
commit b1efb7d51c
3 files changed
+32 -4

No files matched your search

+4 -1
View File
@@ -147,7 +147,10 @@ export async function loadAudioForTrack(track) {
track.instrument = null;
}
const player = new Tone.Player({ url: track.samplePath, autostart: false });
const player = new Tone.Player({ url: track.samplePath, autostart: false, retrigger: true });
// redundância segura p/ builds diferentes do Tone:
try { player.retrigger = true; } catch {}
await player.load(track.samplePath);
player.connect(track.volumeNode);