| 1 |
/* |
| 2 |
CheeseCutter v2 (C) Abaddon. Licensed under GNU GPL. |
| 3 |
*/ |
| 4 |
|
| 5 |
module ui.help; |
| 6 |
|
| 7 |
import std.string : format; |
| 8 |
import com.util; |
| 9 |
|
| 10 |
struct ContextHelp { |
| 11 |
string title; |
| 12 |
string[] text; |
| 13 |
} |
| 14 |
|
| 15 |
ContextHelp HELPMAIN = ContextHelp("Main help", |
| 16 |
[" |
| 17 |
Escape (x2).....Quit program |
| 18 |
F10.............Open the Load song dialog |
| 19 |
F11.............Open the Save song dialog |
| 20 |
F9..............Open the About dialog |
| 21 |
Ctrl-F11........Quick save song (doesn't ask a filename) |
| 22 |
|
| 23 |
`+dPlayback\n |
| 24 |
F1..............Play from playback mark |
| 25 |
Shift-F1........Play / resume from mark with tracking |
| 26 |
F2..............Play from the start |
| 27 |
Shift-F2........Play / resume from the start with tracking |
| 28 |
F3..............Play from cursor position |
| 29 |
F4..............Stop playback |
| 30 |
F8..............Fast forward (w/ Shift = Fast forward more) |
| 31 |
Scroll Lock.....Start/stop tracking (works only when playing) |
| 32 |
Ctrl-1,2,3......Toggle voices on/off |
| 33 |
Ctrl-F9.........Show/hide playback info (works only when playing) |
| 34 |
|
| 35 |
`+dSong variables\n |
| 36 |
Ctrl-Keypad - +.........Decrease/increase default song speed |
| 37 |
[ ] (AltGr-8 / AltGr-9).Decrease/increase default song speed |
| 38 |
Alt-Keypad - +..........Decrease/increase multispeed framecall counter |
| 39 |
{ } (AltGr-7 / AltGr-0).Decrease/increase multispeed framecall counter |
| 40 |
Ctrl-F3.................Toggle SID type (6581/8580) |
| 41 |
Ctrl-F8.................Select next SID filter preset |
| 42 |
Ctrl-Shift-F8...........Select previous SID filter preset |
| 43 |
Alt-T...................Edit title / author / release info |
| 44 |
Ctrl-Alt-C..............Clear sequences (press TWICE to activate) |
| 45 |
Ctrl-Alt-O..............Optimize (clear unused sequences & data) |
| 46 |
", " |
| 47 |
`+dMoving between tables\n |
| 48 |
Tab.....................Move cursor between subwindows |
| 49 |
Ctrl-Tab................Move cursor between main windows |
| 50 |
(sequencer, instrument table, subtables) |
| 51 |
Alt-V...................Jump to Sequencer |
| 52 |
Alt-I...................Jump to Instrument table |
| 53 |
Alt-M...................Jump to Cmd table |
| 54 |
Alt-P...................Jump to Pulse table |
| 55 |
Alt-F...................Jump to Filter table |
| 56 |
Alt-D...................Jump to Chord table |
| 57 |
Alt-1, 2, 3.............Jump to voice 1, 2 or 3 |
| 58 |
Alt-4-8 can also move between tables (in the aforementioned order, |
| 59 |
so Alt-4 = Sequencer, Alt-5 = Ins, ...) |
| 60 |
|
| 61 |
`+dInstrument table functions\n |
| 62 |
Ctrl-L..................Load current insturment from disk |
| 63 |
Ctrl-S..................Save current instrument to disk |
| 64 |
Ctrl-D..................Delete current instrument |
| 65 |
Ctrl-C..................Copy instrument to clipboard |
| 66 |
Ctrl-V..................Paste instrument from clipboard |
| 67 |
|
| 68 |
`+dPlayer reference\n |
| 69 |
Check out the player reference guide from the CheeseCutter homepage. |
| 70 |
|
| 71 |
`+dCheeseCutter homepage: |
| 72 |
http://theyamo.kapsi.fi/ccutter |
| 73 |
|
| 74 |
"]); |
| 75 |
|
| 76 |
ContextHelp HELPSEQUENCER = ContextHelp("Sequencer help", |
| 77 |
["`+1Press F12 again to see the global help. |
| 78 |
|
| 79 |
`+dGeneral |
| 80 |
|
| 81 |
Alt-1,2,3...............Jump to voice 1, 2 or 3 |
| 82 |
Tab.....................Move cursor to the next voice |
| 83 |
|
| 84 |
Keypad / *..............Decrease/increase base octave value |
| 85 |
Ctrl-Keypad - +.........Decrease/increase default song speed |
| 86 |
[ ] (AltGr-8 / AltGr-9).Decrease/increase default song speed |
| 87 |
Keypad - +..............Decrease/increase active instrument number |
| 88 |
Keypad 1-9..............Set cursor step value (used when entering notes) |
| 89 |
Alt-Left/Right..........Activate previous/next subtune |
| 90 |
|
| 91 |
F5......................Enter to the track column |
| 92 |
Shift-F5................Display tracks alongside the sequences |
| 93 |
F6......................Enter to the note column |
| 94 |
F7......................Display tracks only ('overview mode') |
| 95 |
|
| 96 |
Home/End................Move cursor to SEQ start/end OR screen top/bottom |
| 97 |
Shift-Home/End..........Move cursor to song start/end |
| 98 |
Backspace...............Set playback start mark (the blue bar) to current position |
| 99 |
Ctrl-Home/Ctrl-H........Jump to playback mark position (also realigns the voices) |
| 100 |
|
| 101 |
Ctrl-Z..................Undo |
| 102 |
Ctrl-R..................Redo |
| 103 |
Alt-C...................Ask for a SEQ number and copy contents over current SEQ |
| 104 |
Alt-A...................Ask for a SEQ number and insert contents to cursor pos |
| 105 |
(Shift-)Insert/Delete...Insert/delete a row (Shift=w/ sequence expand/shrink) |
| 106 |
Ctrl-Insert/Delete......Expand/shrink the sequence |
| 107 |
Shift-Enter.............Quick expand sequence (expands by highlight value * 4) |
| 108 |
Ctrl-Q/A................Transpose semitone up/down |
| 109 |
","Ctrl-W/S................Transpose octave up/down |
| 110 |
Ctrl-M/N................Increase/decrease row highlight value |
| 111 |
Ctrl-0(zero)............Reset highlighting to current row |
| 112 |
Ctrl-E..................Show/hide row counters for sequences |
| 113 |
Ctrl-T..................Toggle notes relative to current transpose |
| 114 |
Keypad 0................Play notes for all voices in current row |
| 115 |
Ctrl-P..................Split current sequence into two from cursor pos. |
| 116 |
`+dUse with caution. |
| 117 |
|
| 118 |
|
| 119 |
`+dIn the note column (F6) |
| 120 |
|
| 121 |
2 3 5 6 7 9 0 |
| 122 |
Q W E R T Y U I O P.....Enter notes (base octave+1) |
| 123 |
S D G H J |
| 124 |
Z X C V B N M...........Enter notes (base octave) |
| 125 |
|
| 126 |
1.......................Enter a gate off (===) |
| 127 |
A or !..................Enter a gate on (+++) |
| 128 |
Space or '.'............Clear |
| 129 |
Space...................Insert previously entered instrument/command value |
| 130 |
(in instrument/command column only) |
| 131 |
- +.....................Decrease/increase base octave |
| 132 |
';'.....................Toggle insert instrument value automatically-mode |
| 133 |
','.....................Change the note in current row to a tie note |
| 134 |
Enter...................Grab the instrument value in the current row |
| 135 |
|
| 136 |
`+dIn the track column (F5) |
| 137 |
|
| 138 |
Ctrl-F..................Find next unused sequence starting from current value |
| 139 |
< >.....................Select previous/next sequence |
| 140 |
Ctrl-Q/A................Transpose all tracks up/down from cursor down |
| 141 |
", "`+dIn the track column (F5) (cont.) |
| 142 |
|
| 143 |
Ctrl-C..................Ask for a number and copy the N of tracks into clipboard |
| 144 |
Ctrl-V..................Paste copied tracks from the clipboard |
| 145 |
Space...................Write the cached sequence number to the track value |
| 146 |
Insert/Delete...........Insert empty track (A000) or delete track from cursor |
| 147 |
pos down |
| 148 |
Ctrl-Enter..............Insert a track to end of voice and move cursor there |
| 149 |
Ctrl-Insert/Delete......Insert/delete track to end of voice and move cursor there |
| 150 |
Ctrl-Shift-Insert/Del...Insert/delete a track for all voices |
| 151 |
Ctrl-Alt-1..............Swap voice's track with voice 1's tracks from crsr down |
| 152 |
Ctrl-Alt-2..............Swap voice's track with voice 2's tracks from crsr down |
| 153 |
Ctrl-Alt-3..............Swap voice's track with voice 3's tracks from crsr down |
| 154 |
"]); |
| 155 |
|
| 156 |
|
| 157 |
ContextHelp genPlayerContextHelp(string title, char*[] descriptions) { |
| 158 |
string text; |
| 159 |
text = "`+1Press F12 again to see the global help.\n\n`+d" ~ title ~ "\n"; |
| 160 |
foreach(idx, char* line; descriptions) { |
| 161 |
text ~= format("\n`0fByte %d: %s", idx + 1, petscii2D(line)); |
| 162 |
} |
| 163 |
text ~= "\n\nPress Alt-H to turn the byte descriptions off."; |
| 164 |
ContextHelp ctx = ContextHelp(title, [text]); |
| 165 |
return ctx; |
| 166 |
} |
| 167 |
|