* bank select and then a program change.
*/
template<typename Time>
-class LIBEVORAL_API PatchChange
+class /*LIBEVORAL_API*/ PatchChange
{
public:
/** @param t Time.
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;
}
}
}
template<typename Time>
-LIBEVORAL_API std::ostream& operator<< (std::ostream& o, const Evoral::PatchChange<Time>& p) {
+/*LIBEVORAL_API*/ std::ostream& operator<< (std::ostream& o, const Evoral::PatchChange<Time>& p) {
o << "Patch Change " << p.id() << " @ " << p.time() << " bank " << (int) p.bank() << " program " << (int) p.program();
return o;
}