more MIDI work... still not there
This commit is contained in:
parent
c26123e782
commit
77798f6ed7
6 changed files with 657 additions and 176 deletions
|
|
@ -19,6 +19,7 @@
|
|||
|
||||
// guiConst: constants used in the GUI like arrays, strings and other stuff
|
||||
#include "guiConst.h"
|
||||
#include "gui.h"
|
||||
#include "../engine/song.h"
|
||||
|
||||
const int opOrder[4]={
|
||||
|
|
@ -123,6 +124,213 @@ const char* resampleStrats[]={
|
|||
"best possible"
|
||||
};
|
||||
|
||||
const char* guiActions[GUI_ACTION_MAX][2]={
|
||||
{"GLOBAL_MIN", "---Global"},
|
||||
{"OPEN", "Open file"},
|
||||
{"OPEN_BACKUP", "Restore backup"},
|
||||
{"SAVE", "Save file"},
|
||||
{"SAVE_AS", "Save as"},
|
||||
{"UNDO", "Undo"},
|
||||
{"REDO", "Redo"},
|
||||
{"PLAY_TOGGLE", "Play/Stop (toggle)"},
|
||||
{"PLAY", "Play"},
|
||||
{"STOP", "Stop"},
|
||||
{"PLAY_REPEAT", "Play (repeat pattern)"},
|
||||
{"PLAY_CURSOR", "Play from cursor"},
|
||||
{"STEP_ONE", "Step row"},
|
||||
{"OCTAVE_UP", "Octave up"},
|
||||
{"OCTAVE_DOWN", "Octave down"},
|
||||
{"INS_UP", "Previous instrument"},
|
||||
{"INS_DOWN", "Next instrument"},
|
||||
{"STEP_UP", "Increase edit step"},
|
||||
{"STEP_DOWN", "Decrease edit step"},
|
||||
{"TOGGLE_EDIT", "Toggle edit mode"},
|
||||
{"METRONOME", "Metronome"},
|
||||
{"REPEAT_PATTERN", "Toggle repeat pattern"},
|
||||
{"FOLLOW_ORDERS", "Follow orders"},
|
||||
{"FOLLOW_PATTERN", "Follow pattern"},
|
||||
{"PANIC", "Panic"},
|
||||
|
||||
{"WINDOW_EDIT_CONTROLS", "Edit Controls"},
|
||||
{"WINDOW_ORDERS", "Orders"},
|
||||
{"WINDOW_INS_LIST", "Instrument List"},
|
||||
{"WINDOW_INS_EDIT", "Instrument Editor"},
|
||||
{"WINDOW_SONG_INFO", "Song Information"},
|
||||
{"WINDOW_PATTERN", "Pattern"},
|
||||
{"WINDOW_WAVE_LIST", "Wavetable List"},
|
||||
{"WINDOW_WAVE_EDIT", "Wavetable Editor"},
|
||||
{"WINDOW_SAMPLE_LIST", "Sample List"},
|
||||
{"WINDOW_SAMPLE_EDIT", "Sample Editor"},
|
||||
{"WINDOW_ABOUT", "About"},
|
||||
{"WINDOW_SETTINGS", "Settings"},
|
||||
{"WINDOW_MIXER", "Mixer"},
|
||||
{"WINDOW_DEBUG", "Debug Menu"},
|
||||
{"WINDOW_OSCILLOSCOPE", "Oscilloscope"},
|
||||
{"WINDOW_VOL_METER", "Volume Meter"},
|
||||
{"WINDOW_STATS", "Statistics"},
|
||||
{"WINDOW_COMPAT_FLAGS", "Compatibility Flags"},
|
||||
{"WINDOW_PIANO", "Piano"},
|
||||
{"WINDOW_NOTES", "Song Comments"},
|
||||
{"WINDOW_CHANNELS", "Channels"},
|
||||
{"WINDOW_REGISTER_VIEW", "Register View"},
|
||||
|
||||
{"COLLAPSE_WINDOW", "Collapse/expand current window"},
|
||||
{"CLOSE_WINDOW", "Close current window"},
|
||||
{"GLOBAL_MAX", ""},
|
||||
|
||||
{"PAT_MIN", "---Pattern"},
|
||||
{"PAT_NOTE_UP", "Transpose (+1)"},
|
||||
{"PAT_NOTE_DOWN", "Transpose (-1)"},
|
||||
{"PAT_OCTAVE_UP", "Transpose (+1 octave)"},
|
||||
{"PAT_OCTAVE_DOWN", "Transpose (-1 octave)"},
|
||||
{"PAT_SELECT_ALL", "Select all"},
|
||||
{"PAT_CUT", "Cut"},
|
||||
{"PAT_COPY", "Copy"},
|
||||
{"PAT_PASTE", "Paste"},
|
||||
{"PAT_PASTE_MIX", "Paste Mix (foreground)"},
|
||||
{"PAT_PASTE_MIX_BG", "Paste Mix (background)"},
|
||||
{"PAT_PASTE_FLOOD", "Paste Flood"},
|
||||
{"PAT_PASTE_OVERFLOW", "Paste Overflow"},
|
||||
{"PAT_CURSOR_UP", "Move cursor up"},
|
||||
{"PAT_CURSOR_DOWN", "Move cursor down"},
|
||||
{"PAT_CURSOR_LEFT", "Move cursor left"},
|
||||
{"PAT_CURSOR_RIGHT", "Move cursor right"},
|
||||
{"PAT_CURSOR_UP_ONE", "Move cursor up by one (override Edit Step)"},
|
||||
{"PAT_CURSOR_DOWN_ONE", "Move cursor down by one (override Edit Step)"},
|
||||
{"PAT_CURSOR_LEFT_CHANNEL", "Move cursor to previous channel"},
|
||||
{"PAT_CURSOR_RIGHT_CHANNEL", "Move cursor to next channel"},
|
||||
{"PAT_CURSOR_NEXT_CHANNEL", "Move cursor to previous channel (overflow)"},
|
||||
{"PAT_CURSOR_PREVIOUS_CHANNEL", "Move cursor to next channel (overflow)"},
|
||||
{"PAT_CURSOR_BEGIN", "Move cursor to beginning of pattern"},
|
||||
{"PAT_CURSOR_END", "Move cursor to end of pattern"},
|
||||
{"PAT_CURSOR_UP_COARSE", "Move cursor up (coarse)"},
|
||||
{"PAT_CURSOR_DOWN_COARSE", "Move cursor down (coarse)"},
|
||||
{"PAT_SELECTION_UP", "Expand selection upwards"},
|
||||
{"PAT_SELECTION_DOWN", "Expand selection downwards"},
|
||||
{"PAT_SELECTION_LEFT", "Expand selection to the left"},
|
||||
{"PAT_SELECTION_RIGHT", "Expand selection to the right"},
|
||||
{"PAT_SELECTION_UP_ONE", "Expand selection upwards by one (override Edit Step)"},
|
||||
{"PAT_SELECTION_DOWN_ONE", "Expand selection downwards by one (override Edit Step)"},
|
||||
{"PAT_SELECTION_BEGIN", "Expand selection to beginning of pattern"},
|
||||
{"PAT_SELECTION_END", "Expand selection to end of pattern"},
|
||||
{"PAT_SELECTION_UP_COARSE", "Expand selection upwards (coarse)"},
|
||||
{"PAT_SELECTION_DOWN_COARSE", "Expand selection downwards (coarse)"},
|
||||
{"PAT_DELETE", "Delete"},
|
||||
{"PAT_PULL_DELETE", "Pull delete"},
|
||||
{"PAT_INSERT", "Insert"},
|
||||
{"PAT_MUTE_CURSOR", "Mute channel at cursor"},
|
||||
{"PAT_SOLO_CURSOR", "Solo channel at cursor"},
|
||||
{"PAT_UNMUTE_ALL", "Unmute all channels"},
|
||||
{"PAT_NEXT_ORDER", "Go to next order"},
|
||||
{"PAT_PREV_ORDER", "Go to previous order"},
|
||||
{"PAT_COLLAPSE", "Collapse channel at cursor"},
|
||||
{"PAT_INCREASE_COLUMNS", "Increase effect columns"},
|
||||
{"PAT_DECREASE_COLUMNS", "Decrease effect columns"},
|
||||
{"PAT_INTERPOLATE", "Interpolate"},
|
||||
{"PAT_FADE", "Fade"},
|
||||
{"PAT_INVERT_VALUES", "Invert values"},
|
||||
{"PAT_FLIP_SELECTION", "Flip selection"},
|
||||
{"PAT_COLLAPSE_ROWS", "Collapse rows"},
|
||||
{"PAT_EXPAND_ROWS", "Expand rows"},
|
||||
{"PAT_COLLAPSE_PAT", "Collapse pattern"},
|
||||
{"PAT_EXPAND_PAT", "Expand pattern"},
|
||||
{"PAT_COLLAPSE_SONG", "Collapse song"},
|
||||
{"PAT_EXPAND_SONG", "Expand song"},
|
||||
{"PAT_LATCH", "Set note input latch"},
|
||||
{"PAT_MAX", ""},
|
||||
|
||||
{"INS_LIST_MIN", "---Instrument list"},
|
||||
{"INS_LIST_ADD", "Add"},
|
||||
{"INS_LIST_DUPLICATE", "Duplicate"},
|
||||
{"INS_LIST_OPEN", "Open"},
|
||||
{"INS_LIST_SAVE", "Save"},
|
||||
{"INS_LIST_MOVE_UP", "Move up"},
|
||||
{"INS_LIST_MOVE_DOWN", "Move down"},
|
||||
{"INS_LIST_DELETE", "Delete"},
|
||||
{"INS_LIST_EDIT", "Edit"},
|
||||
{"INS_LIST_UP", "Cursor up"},
|
||||
{"INS_LIST_DOWN", "Cursor down"},
|
||||
{"INS_LIST_MAX", ""},
|
||||
|
||||
{"WAVE_LIST_MIN", "---Wavetable list"},
|
||||
{"WAVE_LIST_ADD", "Add"},
|
||||
{"WAVE_LIST_DUPLICATE", "Duplicate"},
|
||||
{"WAVE_LIST_OPEN", "Open"},
|
||||
{"WAVE_LIST_SAVE", "Save"},
|
||||
{"WAVE_LIST_MOVE_UP", "Move up"},
|
||||
{"WAVE_LIST_MOVE_DOWN", "Move down"},
|
||||
{"WAVE_LIST_DELETE", "Delete"},
|
||||
{"WAVE_LIST_EDIT", "Edit"},
|
||||
{"WAVE_LIST_UP", "Cursor up"},
|
||||
{"WAVE_LIST_DOWN", "Cursor down"},
|
||||
{"WAVE_LIST_MAX", ""},
|
||||
|
||||
{"SAMPLE_LIST_MIN", "---Sample list"},
|
||||
{"SAMPLE_LIST_ADD", "Add"},
|
||||
{"SAMPLE_LIST_DUPLICATE", "Duplicate"},
|
||||
{"SAMPLE_LIST_OPEN", "Open"},
|
||||
{"SAMPLE_LIST_SAVE", "Save"},
|
||||
{"SAMPLE_LIST_MOVE_UP", "Move up"},
|
||||
{"SAMPLE_LIST_MOVE_DOWN", "Move down"},
|
||||
{"SAMPLE_LIST_DELETE", "Delete"},
|
||||
{"SAMPLE_LIST_EDIT", "Edit"},
|
||||
{"SAMPLE_LIST_UP", "Cursor up"},
|
||||
{"SAMPLE_LIST_DOWN", "Cursor down"},
|
||||
{"SAMPLE_LIST_PREVIEW", "Preview"},
|
||||
{"SAMPLE_LIST_STOP_PREVIEW", "Stop preview"},
|
||||
{"SAMPLE_LIST_MAX", ""},
|
||||
|
||||
{"SAMPLE_MIN", "---Sample editor"},
|
||||
{"SAMPLE_SELECT", "Edit mode: Select"},
|
||||
{"SAMPLE_DRAW", "Edit mode: Draw"},
|
||||
{"SAMPLE_CUT", "Cut"},
|
||||
{"SAMPLE_COPY", "Copy"},
|
||||
{"SAMPLE_PASTE", "Paste"},
|
||||
{"SAMPLE_PASTE_REPLACE", "Paste replace"},
|
||||
{"SAMPLE_PASTE_MIX", "Paste mix"},
|
||||
{"SAMPLE_SELECT_ALL", "Select all"},
|
||||
{"SAMPLE_RESIZE", "Resize"},
|
||||
{"SAMPLE_RESAMPLE", "Resample"},
|
||||
{"SAMPLE_AMPLIFY", "Amplify"},
|
||||
{"SAMPLE_NORMALIZE", "Normalize"},
|
||||
{"SAMPLE_FADE_IN", "Fade in"},
|
||||
{"SAMPLE_FADE_OUT", "Fade out"},
|
||||
{"SAMPLE_SILENCE", "Apply silence"},
|
||||
{"SAMPLE_INSERT", "Insert silence"},
|
||||
{"SAMPLE_DELETE", "Delete"},
|
||||
{"SAMPLE_TRIM", "Trim"},
|
||||
{"SAMPLE_REVERSE", "Reverse"},
|
||||
{"SAMPLE_INVERT", "Invert"},
|
||||
{"SAMPLE_SIGN", "Signed/unsigned exchange"},
|
||||
{"SAMPLE_FILTER", "Apply filter"},
|
||||
{"SAMPLE_PREVIEW", "Preview sample"},
|
||||
{"SAMPLE_STOP_PREVIEW", "Stop sample preview"},
|
||||
{"SAMPLE_ZOOM_IN", "Zoom in"},
|
||||
{"SAMPLE_ZOOM_OUT", "Zoom out"},
|
||||
{"SAMPLE_ZOOM_AUTO", "Toggle auto-zoom"},
|
||||
{"SAMPLE_MAX", ""},
|
||||
|
||||
{"ORDERS_MIN", "---Orders"},
|
||||
{"ORDERS_UP", "Previous order"},
|
||||
{"ORDERS_DOWN", "Next order"},
|
||||
{"ORDERS_LEFT", "Cursor left"},
|
||||
{"ORDERS_RIGHT", "Cursor right"},
|
||||
{"ORDERS_INCREASE", "Increase value"},
|
||||
{"ORDERS_DECREASE", "Decrease value"},
|
||||
{"ORDERS_EDIT_MODE", "Switch edit mode"},
|
||||
{"ORDERS_LINK", "Toggle alter entire row"},
|
||||
{"ORDERS_ADD", "Add"},
|
||||
{"ORDERS_DUPLICATE", "Duplicate"},
|
||||
{"ORDERS_DEEP_CLONE", "Deep clone"},
|
||||
{"ORDERS_DUPLICATE_END", "Duplicate to end of song"},
|
||||
{"ORDERS_DEEP_CLONE_END", "Deep clone to end of song"},
|
||||
{"ORDERS_REMOVE", "Remove"},
|
||||
{"ORDERS_MOVE_UP", "Move up"},
|
||||
{"ORDERS_MOVE_DOWN", "Move down"},
|
||||
{"ORDERS_REPLAY", "Replay"},
|
||||
{"ORDERS_MAX", ""},
|
||||
};
|
||||
|
||||
// define systems.
|
||||
const int availableSystems[]={
|
||||
DIV_SYSTEM_YM2612,
|
||||
|
|
@ -168,4 +376,5 @@ const int availableSystems[]={
|
|||
DIV_SYSTEM_VIC20,
|
||||
DIV_SYSTEM_VRC6,
|
||||
0 // don't remove this last one!
|
||||
};
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue