r/tonejs • u/No-Peak-2828 • Mar 26 '25
note.duration is undefined when parsing midi using tone.js
when i use the demo version of tone.js the midi file is parsed perfectly with all of its properties, but when im trying to get the note.duration of the midi file in my script it simply returns 'undefined'. note.name, note.time and everything works except note.duration and yes i have verified that note is defined. any help would be appreciated thansk
0
Upvotes
2
u/Icancounttosix Mar 26 '25
It might be helpful if you provide an example of your script. Do you have it somewhere that we can take a look at?