Navigation
API > API/Plugins > API/Plugins/HarmonixMidi
Composers, Musicians, Sound Designers, etc. (and their software tools) speak about musical time in terms of positions and durations.
Positions are specified as 1 based numbers for bars and beats. Bar 1, beat 1.0 is the first moment in a song.
Durations are 0 based. A musical note might be 0 Bars and 0.33 beats long (a eighth note triplet if beats are quarter notes).
When we are parsing a string that specifies a musical time, or converting a midi tick to musical time string we want to maintain this convention. So the parse and format functions below need to know whether they are working on a position or a duration.
| Name | Midi::EMusicTimeStringFormat |
| Type | enum |
| Header File | /Engine/Plugins/Runtime/Harmonix/Source/HarmonixMidi/Public/HarmonixMidi/MusicTimeSpecifier.h |
| Include Path | #include "HarmonixMidi/MusicTimeSpecifier.h" |
Syntax
namespace Midi
{
enum EMusicTimeStringFormat
{
Position,
Duration,
}
}
Values
| Name | Remarks |
|---|---|
| Position | |
| Duration |