Skip to content

Get note value? #213

Answered by melanchall
cad12345 asked this question in Q&A
Aug 20, 2022 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

Hi,

To get all notes:

var notes = midiFile.GetNotes();

To get a note's length in terms of fraction of whole note:

var length = note.LengthAs<MusicalTimeSpan>(tempoMap);

Then you can get numerator and denominator of the length.

To get tempo map:

var tempoMap = midiFile.GetTempoMap();

Replies: 1 comment 1 reply

Comment options

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

Answer selected by cad12345
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
question Just question about the library
2 participants