editing a MusicTimePoint as a TempoPoint (from GUI) now operates as it should (or closer)
This commit is contained in:
parent
ada7fc16aa
commit
f9e1357fed
@ -685,8 +685,19 @@ Editor::edit_tempo_section (TempoPoint& section)
|
|||||||
bpm = max (0.01, bpm);
|
bpm = max (0.01, bpm);
|
||||||
|
|
||||||
const Tempo tempo (bpm, end_bpm, nt);
|
const Tempo tempo (bpm, end_bpm, nt);
|
||||||
|
|
||||||
Temporal::Beats new_pos;
|
Temporal::Beats new_pos;
|
||||||
|
MusicTimePoint* mtp;
|
||||||
|
|
||||||
|
if ((mtp = dynamic_cast<Temporal::MusicTimePoint*> (§ion))) {
|
||||||
|
|
||||||
|
/* ignore positional changes, that must be done via the MTP */
|
||||||
|
MusicTimePoint replacement (*mtp);
|
||||||
|
*((TempoPoint*)&replacement) = tempo;
|
||||||
|
TempoMapChange tmc (*this, _("edit BBT tempo"));
|
||||||
|
tmc.map().replace_bartime (replacement);
|
||||||
|
return;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
if (!tpp) {
|
if (!tpp) {
|
||||||
/* first tempo, cannot move */
|
/* first tempo, cannot move */
|
||||||
|
Loading…
Reference in New Issue
Block a user