#include "midi++/midnam_patch.h"
-#include "ardour/midi_patch_manager.h"
#include "ardour/beats_frames_converter.h"
#include "ardour/instrument_info.h"
Evoral::PatchChange<Evoral::MusicalTime>
PatchChangeDialog::patch () const
{
- Evoral::MusicalTime t = 0;
+ Evoral::MusicalTime t = Evoral::MusicalTime();
if (_time_converter) {
t = _time_converter->from (_time.current_time ());
boost::replace_all (n, "_", " ");
MIDI::Name::PatchPrimaryKey const & key = (*j)->patch_primary_key ();
- if (key.program_number == _program.get_value() - 1) {
+ if (key.program() == _program.get_value() - 1) {
_ignore_signals = true;
_patch_combo.set_active_text (n);
_ignore_signals = false;