melhorando a leitura de projetos no mmpCreator
Deploy / Deploy (push) Successful in 2m3s
Details
Deploy / Deploy (push) Successful in 2m3s
Details
This commit is contained in:
parent
942793f267
commit
172c70f90a
|
|
@ -342,6 +342,9 @@ export async function startAudioEditorPlayback(seekTime) {
|
|||
// inicia o Transport (para disparar os Players .sync())
|
||||
try {
|
||||
startSongPatternPlaybackOnTransport();
|
||||
// garante que o Transport está no BPM do projeto (impacta scheduleRepeat("16n"))
|
||||
const bpm = parseFloat(document.getElementById("bpm-input")?.value) || 120;
|
||||
Tone.Transport.bpm.value = bpm;
|
||||
Tone.Transport.start();
|
||||
} catch {}
|
||||
|
||||
|
|
@ -428,6 +431,8 @@ export function seekAudioEditor(newTime) {
|
|||
|
||||
try {
|
||||
Tone.Transport.seconds = newTime;
|
||||
const bpm = parseFloat(document.getElementById("bpm-input")?.value) || 120;
|
||||
Tone.Transport.bpm.value = bpm;
|
||||
} catch {}
|
||||
|
||||
const pixelsPerSecond = getPixelsPerSecond();
|
||||
|
|
|
|||
Loading…
Reference in New Issue