mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-18 19:36:00 +01:00
Fix horizontal positioning of PC flags.
git-svn-id: svn://localhost/ardour2/branches/3.0@4593 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
fd1a3cfa4c
commit
beb3eea62b
1 changed files with 3 additions and 2 deletions
|
|
@ -602,7 +602,7 @@ MidiRegionView::display_program_change_flags()
|
|||
|
||||
// find bank select msb and lsb for the program change
|
||||
Evoral::Parameter bank_select_msb(MidiCCAutomation, channel, MIDI_CTL_MSB_BANK);
|
||||
boost::shared_ptr<Evoral::Control> msb_control = _model->control(bank_select_msb);
|
||||
boost::shared_ptr<Evoral::Control> msb_control = _model->control(bank_select_msb);
|
||||
uint8_t msb = 0;
|
||||
if (msb_control != 0) {
|
||||
msb = uint8_t(floor(msb_control->get_float(true, event_time) + 0.5));
|
||||
|
|
@ -627,7 +627,8 @@ MidiRegionView::display_program_change_flags()
|
|||
channel,
|
||||
patch_key);
|
||||
|
||||
ControlEvent program_change(nframes_t(event_time), uint8_t(program_number), channel);
|
||||
ControlEvent program_change(beats_to_frames(event_time),
|
||||
uint8_t(program_number), channel);
|
||||
|
||||
if (patch != 0) {
|
||||
//cerr << " got patch with name " << patch->name()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue