Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 17 additions & 1 deletion core/interface/songEditor/fSongEdit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -944,6 +944,22 @@ void cSongEditor::changeSongPositionSelection(int16_t value)
refreshSongPlayerSelectedSlot();
}

void cSongEditor::goToSongTop()
{
if (SE->editMode == 0)
{
if (!sequencer.isStop())
{
return;
}
}

selectedSongPosition = 0;

refreshPatternsList();
refreshSongPlayerSelectedSlot();
}

//======================================================================================================================
//==============================================================================================
void cSongEditor::refreshEditMode()
Expand Down Expand Up @@ -1700,7 +1716,7 @@ static void functInsert()
switch (SE->selectedPlace)
{
case 0: SE->walkOnSongPlayer(playerHome); break;
case 1: SE->changeSongPositionSelection(-300); break;
case 1: SE->goToSongTop(); break;
}
}
}
Expand Down
1 change: 1 addition & 0 deletions core/interface/songEditor/songEditor.h
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ class cSongEditor : public ModuleBase
void setDefaultScreenFunct();

void changeSongPositionSelection(int16_t value);
void goToSongTop();
void changeSelectedPlayListPattern(int value);

void readSong();
Expand Down
Loading