Skip to content

duration ... or duration ;) #107

Closed Answered by spessasus
ArouG asked this question in Q&A
Jan 27, 2025 · 2 comments · 1 reply
Discussion options

You must be logged in to vote

So, for example, instead of

seq.loadNewSongList(midis);
const duration = dureef(seq.duration):
console.log(duration);

You'd do:

seq.loadNewSongList(midis);
seq.addOnSongChangeEvent(mid => {
    const duration = dureef(mid.duration):
    console.log(duration);
}, "song-change-duration");

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@ArouG
Comment options

Answer selected by spessasus
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants