diff --git a/Themes/_fallback/Languages/en.ini b/Themes/_fallback/Languages/en.ini index 89904c4cbe..01b038adf5 100644 --- a/Themes/_fallback/Languages/en.ini +++ b/Themes/_fallback/Languages/en.ini @@ -815,6 +815,7 @@ Connection=Connection Convert pause to beats=Convert pause to beats Convert selection to pause=Convert selection to pause Convert selection to warp=Convert selection to Warp Segment +Convert selection to fake=Convert selection to Fake Segment Copy=Copy CourseSortOrder=Course Sort Create New=Create New diff --git a/src/ScreenEdit.cpp b/src/ScreenEdit.cpp index 116b8762fb..db85c529d5 100644 --- a/src/ScreenEdit.cpp +++ b/src/ScreenEdit.cpp @@ -539,7 +539,9 @@ static MenuDef g_AlterMenu( MenuRowDef(ScreenEdit::convert_to_pause, "Convert selection to pause", true, EditMode_Full, true, true, 0, NULL ), MenuRowDef(ScreenEdit::convert_to_warp, "Convert selection to warp", true, - EditMode_Full, true, true, 0, NULL ) + EditMode_Full, true, true, 0, NULL ), + MenuRowDef(ScreenEdit::convert_to_fake, "Convert selection to fake", true, + EditMode_Full, true, true, 0, NULL ) ); static MenuDef g_AreaMenu( @@ -3725,6 +3727,14 @@ void ScreenEdit::HandleAlterMenuChoice(AlterMenuChoice c, const vector &iAn SetDirty(true); break; } + case convert_to_fake: + { + float startBeat = NoteRowToBeat(m_NoteFieldEdit.m_iBeginMarker); + float lengthBeat = NoteRowToBeat(m_NoteFieldEdit.m_iEndMarker) - startBeat; + GetAppropriateTiming().SetFakeAtBeat(startBeat,lengthBeat); + SetDirty(true); + break; + } } diff --git a/src/ScreenEdit.h b/src/ScreenEdit.h index e01c332c27..35f30f155b 100644 --- a/src/ScreenEdit.h +++ b/src/ScreenEdit.h @@ -386,6 +386,7 @@ public: record, convert_to_pause, convert_to_warp, + convert_to_fake, NUM_ALTER_MENU_CHOICES };