mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-15 19:16:40 +01:00
support SMF markers without labels
This commit is contained in:
parent
bfb5bfcd2d
commit
c45be2266e
1 changed files with 16 additions and 12 deletions
|
|
@ -599,22 +599,26 @@ SMF::load_markers ()
|
|||
|
||||
if (smf_event_is_metadata(event)) {
|
||||
if (event->midi_buffer[1] == 0x06) {
|
||||
string marker = smf_event_decode (event);
|
||||
if (!marker.empty()) {
|
||||
if (marker.find ("Marker: ") == 0) {
|
||||
marker = marker.substr (8);
|
||||
}
|
||||
_markers.push_back (MarkerAt (marker, event->time_pulses));
|
||||
char const * txt = smf_event_decode (event);
|
||||
string marker;
|
||||
if (txt != 0) {
|
||||
marker = txt;
|
||||
}
|
||||
if (marker.find ("Marker: ") == 0) {
|
||||
marker = marker.substr (8);
|
||||
}
|
||||
_markers.push_back (MarkerAt (marker, event->time_pulses));
|
||||
}
|
||||
if (event->midi_buffer[1] == 0x07) {
|
||||
string marker = smf_event_decode (event);
|
||||
if (!marker.empty()) {
|
||||
if (marker.find ("Cue Point: ") == 0) {
|
||||
marker = marker.substr (8);
|
||||
}
|
||||
_markers.push_back (MarkerAt (marker, event->time_pulses));
|
||||
char const * txt = smf_event_decode (event);
|
||||
string marker;
|
||||
if (txt != 0) {
|
||||
marker = txt;
|
||||
}
|
||||
if (marker.find ("Cue Point: ") == 0) {
|
||||
marker = marker.substr (8);
|
||||
}
|
||||
_markers.push_back (MarkerAt (marker, event->time_pulses));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue