mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-22 06:36:29 +01:00
Remove Evoral::MIDIEvent
It is slightly questionable whether type specific methods like velocity() belong on Event at all, these may be better off as free functions. However the code currently uses them as methods in many places, and it seems like a step in the right direction, since, for example, we might some day have events that have a velocity but aren't stored as MIDI messages (e.g. if Ardour uses an internal musical model that is more expressive). In any case, the former inheritance and plethora of sloppy casts is definitely not the right thing.
This commit is contained in:
parent
875b1367b2
commit
08fffeffec
33 changed files with 174 additions and 250 deletions
|
|
@ -334,7 +334,7 @@ SMFSource::write_unlocked (const Lock& lock,
|
|||
_model->start_write();
|
||||
}
|
||||
|
||||
Evoral::MIDIEvent<framepos_t> ev;
|
||||
Evoral::Event<framepos_t> ev;
|
||||
while (true) {
|
||||
/* Get the event time, in frames since session start but ignoring looping. */
|
||||
bool ret;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue