melhorando a leitura de projetos no mmpCreator
This commit is contained in:
1 parent
9381152327
commit
b1efb7d51c
3 files changed
+32
-4
No files matched your search
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user