If I use
Then the note length is the note in beats.
So for a piece in 4/4 the 1 represents a quarter note duration.
A note length of 4 would be a whole note and a note length of 2 would be a half note.
0.50 would be an eight note and 0.125 a sixteenth note.
A dotted quarter would be 1.5
How would one represent a triplet? I assume it would be with a duration of 2/3 or 0.6666 for a quarter-note triplet and 1/3 for an eight-note triplet or 0.33333.