kometbomb / klystrack

A chiptune tracker
http://kometbomb.github.io/klystrack/
Other
481 stars 29 forks source link

Dual-function stop/editmode control #54

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Firstly, thanks for the remappable keyboard shortcuts!

In order to replicate some (only some!) of the keyboard behaviour in 
AHX/Protracker/FT2/etc, I've mapped 'stop' to SPACE. Obviously, that overrides 
SPACE's original function of switching in and out of edit mode. It would be 
great to have dual functionality here, determined by the context (whether or 
not the song is playing). For example:

if(keypress){
     if(playing){
          stop();
     } else {
          editmode = !editmode;
     }
}

To achieve this without changing the current klystrack behaviour, which many 
people are probably used to by now, perhaps this could be done by detecting a 
conflict in the keymap? For example:

   K_SPACE = K_F8
   K_SPACE = K_SPACE

If it were possible for klystrack to interpret that as "spacebar now performs 
the default 'stop' action; spacebar now also performs the default 'editmode' 
action", that might be a solution...?

Original issue reported on code.google.com by echole...@gmail.com on 2 May 2011 at 6:20

GoogleCodeExporter commented 9 years ago
Sorry, accidentally forgot to make this an 'enhancement' rather than a 
'defect', and I'm not sure how to edit it...

Original comment by echole...@gmail.com on 2 May 2011 at 6:22

GoogleCodeExporter commented 9 years ago
God, I'm so stupid - spacebar already acts as stop/editmode! Please ignore and 
delete this, somebody \:D/

Original comment by echole...@gmail.com on 2 May 2011 at 6:26

GoogleCodeExporter commented 9 years ago
Well, this is _almost_ on point. I noticed the stop/edit command works only if 
focused on pattern. Will change it to work in sequence editor also.

Original comment by kometb...@gmail.com on 2 May 2011 at 6:38

GoogleCodeExporter commented 9 years ago
This issue was closed by revision r973.

Original comment by kometb...@gmail.com on 2 May 2011 at 6:47