uint8_t channel () const { return _program_change.buffer()[0] & 0xf; }
inline bool operator< (const PatchChange<Time>& o) const {
- if (!musical_time_equal (time(), o.time())) {
+ if (time() != o.time()) {
return time() < o.time();
}
}
inline bool operator== (const PatchChange<Time>& o) const {
- return (musical_time_equal (time(), o.time()) && program() == o.program() && bank() == o.bank());
+ return (time() == o.time() && program() == o.program() && bank() == o.bank());
}
/** The PatchChange is made up of messages() MIDI messages; this method returns them by index.
case 2:
return _program_change;
default:
- abort ();
- /*NOTREACHED*/
+ abort(); /*NOTREACHED*/
return _program_change;
}
}