home *** CD-ROM | disk | FTP | other *** search
/ Large Pack of OldSkool DOS MOD Trackers / goattracker_2.71.diz < prev    next >
Text File  |  1996-01-01  |  81KB  |  1,913 lines

  1. Goatcompo examplesongs & commandline parameters
  2. -----------------------------------------------
  3.  
  4. Randall: I'll Be A Pimp In Cabrini Green.. (cabrinigreen.sng)  /e1 /s1 /a0ff0
  5. Richard Bayliss: Everlasting Annoyance     (everlasting.sng)   /e0 /s1 /a0f00
  6. Hein: GhostTrackers                           (ghosttrackers.sng) /e0 /s1 /a0f00
  7. Jammer: My Own Hyperspace                  (hyperspace.sng)    /e1 /s1 /a0ff0
  8. Cadaver: On A Sanction From CIA            (sanction.sng)      /e0 /s1 /a0f00
  9. No-XS: Sixpack Of Cola *                   (sixpack.sng)       /e0 /s1 /a0f00
  10.  
  11. * = based on an original song by beek
  12. GoatTracker v2.71
  13. -----------------
  14.  
  15. Editor by Lasse ╓÷rni (loorni@gmail.com)
  16. HardSID 4U support by TΘli Sßndor.
  17. Uses reSID engine by Dag Lem.
  18. Uses reSID distortion / nonlinearity by Antti Lankila.
  19. Uses 6510 crossassembler from Exomizer2 beta by Magnus Lind.
  20. Uses the SDL library.
  21. GoatTracker icon by Antonio Vera.
  22. Command quick reference by Simon Bennett.
  23. Patches by Stefan A. Haubenthal, Valerio Cannone and Raine M. Ekman.
  24.  
  25. Distributed under GNU General Public License
  26. (see the file COPYING for details)
  27.  
  28. Covert BitOps homepage:
  29. http://covertbitops.c64.org
  30.  
  31. GoatTracker 2 SourceForge.net page:
  32. http://sourceforge.net/projects/goattracker2
  33.  
  34.  
  35. Table of contents
  36. -----------------
  37.  
  38. 1. General information
  39. 1.1 Warnings
  40. 1.2 Compatibility with v1.xx
  41.  
  42. 2. Using GoatTracker
  43. 2.1 Command line options
  44. 2.2 Hardware support
  45. 2.3 Keyboard commands
  46. 2.3.1 General keys
  47. 2.3.2 Pattern edit mode
  48. 2.3.2.1 Protracker note-entry mode
  49. 2.3.2.2 DMC note-entry mode
  50. 2.3.3 Song edit mode
  51. 2.3.4 Instrument edit mode
  52. 2.3.5 Table edit mode
  53. 2.3.6 Songname edit mode
  54. 2.4 Mouse control
  55.  
  56. 3. Song data
  57. 3.1 Orderlist data
  58. 3.2 Pattern data
  59. 3.3 Instrument data
  60. 3.4 Table data
  61. 3.4.1 Wavetable
  62. 3.4.2 Pulsetable
  63. 3.4.3 Filtertable
  64. 3.4.4 Speedtable
  65. 3.5 Playback details
  66. 3.6 Miscellaneous tips
  67. 3.6.1 Limit-based modulation steps
  68. 3.6.2 Precalculated note-independent "hifi player" portamento/vibrato
  69. 3.7 Multispeed tips
  70.  
  71. 4. Using the included utilities
  72. 4.1 INS2SND2.EXE
  73. 4.2 SNGSPLI2.EXE
  74. 4.3 MOD2SNG.EXE
  75. 4.4 BETACONV.EXE
  76.  
  77. 5. Using the songs outside the editor
  78. 5.1 Playroutine options
  79.  
  80. 6. File/data formats description
  81. 6.1 GoatTracker v2 song (.SNG) format
  82. 6.1.1 Song header
  83. 6.1.2 Song orderlists
  84. 6.1.3 Instruments
  85. 6.1.4 Tables
  86. 6.1.5 Patterns header
  87. 6.1.6 Patterns
  88. 6.2 GoatTracker v2 instrument (.INS) format
  89. 6.3 Sound effect data format
  90.  
  91. 7. Recompiling
  92.  
  93. 8. Version history
  94.  
  95.  
  96. 1. General information
  97. ----------------------
  98.  
  99. This program is a tracker-like C64 music editor running on Win32 or Linux
  100. platforms (using the SDL library, see http://www.libsdl.org)
  101.  
  102. GoatTracker v2 adds more commands and uniform step programming tables for
  103. waveform/arpeggio, pulse effects, and filter effects. It is likely much more
  104. complex to learn & master than v1.xx.
  105.  
  106. Familiarity with tracker programs in general, hexadecimal notation, and the
  107. C64's SID chip are required. Consult the C64 Programmer's Reference Guide
  108. (http://project64.c64.org) or AAY64 (http://www.the-dreams.de/aay.html) for
  109. SID chip reference.
  110.  
  111. For filesize & library compatibility reasons, precompiled binaries exist only
  112. for Win32 platform.
  113.  
  114. 1.1 Warnings
  115. ------------
  116.  
  117. 1. Always look at the end of this file for changes! Sometimes keyboard commands
  118.    change etc.
  119.  
  120. 2. Always save your songs in the .SNG-format with F11 key if you plan to
  121.    continue editing! Packed & relocated songs (PRG/BIN/SID) can not be loaded
  122.    back into the editor.
  123.  
  124. 3. Even the reSID emulation is in some cases quite far from the output of a
  125.    real SID. Especially if filters are in use, consider strongly testing your
  126.    tune on a C64 or on a HardSID card. (Using filters has always been
  127.    complicated because every SID tends to sound different.)
  128.  
  129. 4. The editor will stop playing if:
  130.    - The song restart position is illegal (beyond end of song)
  131.    - The sequence of orderlist commands is incorrect
  132.      * In a sequence of both TRANSPOSE & REPEAT, TRANSPOSE must come first
  133.      * The last thing before a RST-endmark should be a pattern number
  134.    - Gateoff timer value is too high compared to song tempo.
  135.    - The song tries to jump directly onto a table row containing a jump (FF xx),
  136.      either with instrument pointers or 8XY, 9XY, AXY commands.
  137.    - The song tries to execute pattern commands 0XY, 8XY or EXY from the
  138.      wavetable.
  139.    These all are error conditions, and trying to pack/relocate such song should
  140.    give an error message.
  141.  
  142. 5. Using delayed wavetable or no wavechange (0x 00, where x is 0-F) in the
  143.    first step of instrument wavetable is unsupported and may result in missing
  144.    notes.
  145.  
  146. 6. When using a playroutine with unbuffered SID-writes (Standard /w unbuffered
  147.    or Minimal) and encountering ADSR-bugs after packing/relocating, you can try
  148.    either:
  149.    1) Set pulse-startpos to nonzero value in the troublesome instruments and
  150.       change the 1stFrame Wave parameter of some instrument slightly, for
  151.       example from $09 to $0B, to disable a playroutine optimization. The
  152.       idea in this is to make the noteinit routine take more CPU cycles.
  153.    2) Use a playroutine with buffered writes to pack/relocate.
  154.    3) Try hardrestart attack parameter $F for alternative SID register write
  155.       order.
  156.  
  157. 7. From v2.18 onwards, wavetable left side values have changed. Delay can
  158.    now be maximum 16 frames (values $00-$0F), and waveform register values
  159.    $00-$0F (inaudible) have been mapped to table values $E0-$EF. For example,
  160.    testbit + gate would be $E9. You need to manually convert values $08-$0F
  161.    from your old songs!
  162.  
  163. 8. From v2.2 onwards, a new table (speedtable) has been added. The portamento,
  164.    vibrato and funktempo commands use it. Old songs will be converted upon
  165.    loading to use the speedtable. Note the keyboard command SHIFT+RETURN
  166.    to convert the old style parameters.
  167.  
  168. 9. From v2.4 onwards, pulse modulation speed has 1 bit added accuracy, so
  169.    you need to double pulsespeeds when composing new songs. Old songs will
  170.    be converted automatically.
  171.  
  172. 10. From v2.59 onwards, gateoff timer parameter high bit disables hardrestart
  173.    and bit $40 disables gateoff. Old songs & instruments will be converted
  174.    automatically.
  175.  
  176. 11. From v2.62 onwards, realtime calculated portamento/vibrato speeds are
  177.    supported. This is activated by having the high bit ($80) set in the speed-
  178.    table left side. Naturally, this means that very high portamento speeds (>=
  179.    $8000) or vibrato speeds (>= $80) become unavailable, but these should not 
  180.    be very useful anyway.
  181.    
  182. 12. From v2.68 onwards, SID write order has been tweaked for better stability
  183.    regarding badlines. This has the consequence, however, that notes with 
  184.    attack 0 & release 1 may ADSR-bug. In this case, try hardrestart attack 
  185.    parameter $F for alternative SID register write order.
  186.  
  187. 1.2 Compatibility with v1.xx
  188. ----------------------------
  189.  
  190. GoatTracker v2 can load v1.xx songs and instruments, but it saves only in v2
  191. format. Some subtleties (like tricks involving instrument changes) will not
  192. play back exactly like in v1.xx.
  193.  
  194. The only major feature removal is that of the arpeggio command in v2.
  195. Everything that this command does can also be done with wavetables, and the
  196. import feature converts all arpeggio commands to corresponding wavetable
  197. programs.
  198.  
  199.  
  200. 2. Using GoatTracker
  201. --------------------
  202.  
  203. 2.1 Command line options
  204. ------------------------
  205.  
  206. Start Goattracker V2 by typing GOATTRK2 in the command prompt, followed by the
  207. songname to be loaded at startup (optional) and any command line options you
  208. may want. For example "goattrk2 dojo.sng -s1 -e1" to set 1x-speed mode and SID
  209. model 8580 and to load "dojo.sng" on startup.
  210.  
  211. -Axx Set hard restart ADSR parameter in hex. DEFAULT=0F00
  212. -Bxx Set sound buffer length in milliseconds DEFAULT=100
  213. -Cxx Use CatWeasel MK3 PCI SID (0 = off, 1 = on)
  214. -Dxx Pattern row display (0 = decimal, 1 = hexadecimal)
  215. -Exx Set emulated SID model (0 = 6581 1 = 8580) DEFAULT=6581
  216. -Fxx Set custom SID clock cycles per second (0 = use PAL/NTSC default)
  217. -Gxx Set pitch of A-4 in Hz (0 = use default frequencytable, close to 440Hz)
  218. -Hxx Use HardSID (0 = off, 1 = HardSID ID0 2 = HardSID ID1 etc.)
  219. -Ixx Set reSID interpolation (0 = off, 1 = on, 2 = distortion, 3 = distortion & on) DEFAULT=off
  220. -Kxx Note-entry mode (0 = PROTRACKER 1 = DMC) DEFAULT=PROTRK.
  221. -Lxx SID memory location in hex. DEFAULT=D400
  222. -Mxx Set sound mixing rate DEFAULT=44100
  223. -Oxx Set pulse optimization/skipping (0 = off, 1 = on) DEFAULT=on
  224. -Rxx Set realtime command optimization/skipping (0 = off, 1 = on) DEFAULT=on
  225. -Sxx Set speed multiplier (0 for 25Hz, 1 for 1x, 2 for 2x etc.)
  226. -Txx Set HardSID interactive mode sound buffer length in milliseconds
  227.      DEFAULT=20, max.buffering=0
  228. -Uxx Set HardSID playback mode sound buffer length in milliseconds
  229.      DEFAULT=400, max.buffering=0
  230. -Vxx Set finevibrato conversion (0 = off, 1 = on) DEFAULT=on
  231. -Xxx Set window type (0 = window, 1 = fullscreen) DEFAULT=window
  232. -Zxx Set random reSID write delay in cycles (0 = off) DEFAULT=off
  233. -N   Use NTSC timing
  234. -P   Use PAL timing (DEFAULT)
  235. -W   Write emulated sound output to a file SIDAUDIO.RAW
  236. -?   Show command line options
  237. -??  Standalone online help window
  238.  
  239. Try the command line options if there are any problems. For example, if you
  240. experience choppy audio you can increase audio buffering with -B option. SDL
  241. seems to have trouble with some soundcards under Windows; you might want to
  242. try even a 500ms buffer, or tweak the hardware acceleration level of the
  243. soundcard (from Control Panel). Also, reSID interpolation will take remarkably
  244. more CPU time and could cause the sound and/or editing to get choppy.
  245.  
  246. Finevibrato mode is on by default. You can change this behaviour with -V
  247. option. Note that finevibrato mode only affects the conversion of old style
  248. vibrato parameters to speedtable format.
  249.  
  250. Pulse optimization -O determines if pulsetable execution will be skipped when
  251. getting new notes or a new pattern. By default it is on. Be warned that
  252. turning it off will increase the rastertime requirements of packed/relocated
  253. songs greatly!
  254.  
  255. Realtime command optimization -R determines if portamento, vibrato & instrument
  256. vibrato will be skipped on tick 0 of each pattern row. By default it is on, as
  257. this is how tracker programs have operated traditionally. Turning it off makes
  258. the commands sound same regardless of tempo but will increase rastertime use.
  259.  
  260. The hard restart ADSR parameter will especially affect how rapid passages of
  261. notes will sound like. 0000 is probably too hard to be useful, except perhaps
  262. with gateoff timer value 1. 0F00 (default) is a lot softer, and 0F01 adds also
  263. a little bit of release to the gateoff phase for even softer sound. 000F makes
  264. the note start very pronounced.
  265.  
  266. Hard restart parameter with attack at maximum (F) enables the use of an
  267. alternative playroutine, where waveform is written before ADSR. This can give
  268. more reliable note triggering, especially for very fast releases 0 & 1, but 
  269. may change the characteristics of the note's decay & release.
  270.  
  271. 2.2 Hardware support
  272. --------------------
  273.  
  274. HardSID support is available with the /H option (use first HardSID = -H1,
  275. second = -H2 etc., return to emulated output = -H0). You must have the HardSID
  276. drivers installed to use this feature.
  277.  
  278. CatWeasel MK3 PCI SID support is available with -C option (-C1 to turn on).
  279.  
  280. To use the PC64 cable, you need Daniel Illgen's HardSID-DLL-Clone. Available at
  281. http://dawork.synchronus.de/
  282.  
  283. To enable better support of multispeeds and cycle-exact timing on HardSID
  284. (currently Win32 only), download an enhanced HardSID.dll:
  285.  
  286. For HardSID ISA/PCI cards -
  287. http://sourceforge.net/project/showfiles.php?group_id=9266&release_id=61843
  288.  
  289. For HardSID 4U -
  290. http://www.hardsid.com
  291.  
  292. Cycle-exact HardSID buffer length is separately configurable for interactive
  293. mode (-T option) & playback mode (-U option).
  294.  
  295. HardSID interactive mode:
  296. Low latency mode for jamming and accurate GUI display. Interactive mode can
  297. be activated during song/pattern playback by enabling jamming (space key).
  298.  
  299. HardSID playback mode:
  300. High stability mode to avoid interruptions caused by other applications/poor
  301. drivers/weaker CPU. GUI display is less accurate in this mode. Set the -U
  302. parameter to zero to achieve the maximum stability (less accurate GUI).
  303.  
  304. 2.3 Keyboard commands
  305. ---------------------
  306.  
  307. This program is mainly operated on keyboard. For a list of keyboard commands
  308. press F12 (online help) in the tracker or see the table below:
  309.  
  310. NOTE: SHIFT & CTRL are interchangeable in the commands. You can also use [ ]
  311. or ( ) instead of < >.
  312.  
  313. 2.3.1 General keys
  314. ------------------
  315.  
  316. F1        Play from beginning
  317. F2        Play from current pos.
  318. F3        Play one pattern from current pos.
  319. F4        Stop playing & silence all sounds
  320. F5        Go to pattern editor
  321. F6        Go to song editor
  322. F7        Go to instrument/table editor
  323. F8        Go to songname editor
  324. F9        Pack, relocate & save PRG,SID etc.
  325. F10       Load song (Pattern/Song/Songname mode) or instrument (Instrument mode)
  326. F11       Save song (Pattern/Song/Songname mode) or instrument (Instrument mode)
  327. F12       Online help screen. Press F12 again to toggle context mode
  328. SHIFT+F1  Play from beginning /w follow play
  329. SHIFT+F2  Play from current pos. /w follow play
  330. SHIFT+F3  Play one pattern from current pos. /w follow play
  331. SHIFT+F4  Mute current channel
  332. SHIFT+F5  Decrease speed multiplier
  333. SHIFT+F6  Increase speed multiplier
  334. SHIFT+F7  Edit hardrestart ADSR parameter
  335. SHIFT+F8  Switch between 6581 and 8580 SID models
  336. SHIFT+,.  Move song startposition on all channels and restart last playmode
  337. TAB       Cycle between editing modes (forwards)
  338. SHIFT+TAB Cycle between editing modes (backwards)
  339. INS       Insert row (Press INS/DEL on endmark to change pattern/song length)
  340. DEL       Delete row
  341. SHIFT+ESC Optimize musicdata, or clear musicdata & set default pattern length
  342. ESC       Exit program
  343.  
  344. 2.3.2 Pattern edit mode
  345. -----------------------
  346.  
  347. - +         Select instrument
  348. / *         Select octave
  349. < >         Select pattern
  350. BACKQUOTE   Select channel
  351. 0-9 & A-F   Enter parameters
  352. SPACE       Switch between jam/editmode
  353. RETURN      (also CAPSLOCK) Insert keyoff
  354.             Enter table (when cursor is over a table-utilizing command)
  355.             Enter instrument (when cursor is over a nonzero instrument number)
  356. SHIFT+RET.  Insert keyon
  357.             Convert portamento/vibrato/funktempo old style parameter to a
  358.             speedtable entry (when cursor is over the command)
  359.             Go into an empty table entry (when parameter is zero on a
  360.             table-utilizing command)
  361. BACKSPACE   Insert rest
  362. SHIFT+BKSP. Insert rest and clear commands
  363. SHIFT+SPACE Play from cursor position
  364. SHIFT+Q     Transpose halfstep up
  365. SHIFT+A     Transpose halfstep down
  366. SHIFT+W     Transpose octave up
  367. SHIFT+S     Transpose octave down
  368. SHIFT+O     Shrink pattern (divide size by 2)
  369. SHIFT+P     Expand pattern (multiply size by 2)
  370. SHIFT+J     Join pattern with next pattern in orderlist
  371. SHIFT+K     Split pattern from edit position
  372. SHIFT+H     Calculate "hifi" left/right shifted speedtable entry for
  373.             portamento or vibrato
  374. SHIFT+I     Invert selection / whole pattern if no selection
  375. SHIFT+CRSR UP,DOWN Mark pattern
  376. SHIFT+CRSR LEFT,RIGHT Select pattern
  377. SHIFT+L     Mark/unmark entire pattern
  378. SHIFT+M,N   Choose highlighting step size
  379. SHIFT+X,C,V Cut,copy,paste pattern
  380. SHIFT+E,R   Copy,paste commands
  381. SHIFT+Z     Cycle autoadvance-mode
  382.  
  383. For pattern joining to work properly, select the pattern you want to join with
  384. the next from the orderlist first (by pressing RETURN on it). Both joining and
  385. splitting will rearrange pattern numbers (for example if you split pattern 00,
  386. pattern 01 will be created and old patterns 01-xx will be shifted forward in
  387. the pattern order)
  388.  
  389. SHIFT+SPACE will play from the pattern onwards if playback was previously
  390. stopped, but if it is pressed while in pattern play mode, it will stay in
  391. the current pattern.
  392.  
  393. There are 2 modes for note entering:
  394.  
  395. 2.3.2.1 Protracker note-entry mode
  396. ----------------------------------
  397.  
  398. This is the default or activated with command line option /K0. There are two
  399. rows of a piano keyboard:
  400.  
  401.   Lower octave     Higher octave
  402.  S D  G H  K L    2 3  5 6 7  9 0
  403. Z X CV B NM , .  Q W ER T Y UI O P
  404.  
  405. Octave (0-7) is selected with / and * keys on the numeric keypad.
  406.  
  407. In this mode there are 2 different autoadvance-modes (the mode can be seen from
  408. the color of the jam/editmode indicator)
  409.  
  410. GREEN - Advance when entering notes & command-databytes
  411. RED - Do not advance automatically
  412.  
  413. 2.3.2.2 DMC note-entry mode
  414. ---------------------------
  415.  
  416. Activated with command line option /K1, there is one row of piano keyboard
  417.  
  418.  W E  T Y U  O P
  419. A S DF G H JK L
  420.  
  421. and octave of a note (sets default octave at the same time) is changed with
  422. number keys 0-7.
  423.  
  424. In this mode there are 3 different autoadvance-modes:
  425.  
  426. GREEN - Advance when entering notes, octaves or command-databytes
  427. YELLOW - Advance when entering notes or command-databytes, not octaves
  428. RED - Do not advance automatically
  429.  
  430. 2.3.3 Song edit mode
  431. --------------------
  432.  
  433. < >         Select subtune
  434. - +         Insert Transpose down/up command (shown as -/+ in the orderlist)
  435. 0-9 & A-F   Enter pattern numbers
  436. SPACE       Set start position for F2 key
  437. BACKSPACE   Set end position for F2 key
  438. RETURN      Go to pattern
  439. SHIFT+R     Insert Repeat command (shown as "R" in the order-list)
  440. SHIFT+CRSR LEFT/RIGHT Mark orderlist
  441. SHIFT+1,2,3 Swap current channel orderlist with channel 1,2,3
  442. SHIFT+X,C,V Cut,copy,paste channel orderlist
  443. SHIFT+L     Mark/unmark entire orderlist
  444. SHIFT+SPACE Set start position on all channels
  445. SHIFT+RET.  Go to pattern on all channels
  446.  
  447. SHIFT+SPACE or SHIFT+BACKSPACE set the start/end mark on all channels to
  448. the same position. To clear the endmark, press BACKSPACE again on it or
  449. at/before the startmark.
  450.  
  451. 2.3.4 Instrument edit mode
  452. --------------------------
  453.  
  454. < >         Select instrument
  455. - +         Select instrument
  456. / *         Select octave
  457. F7          Go to table editor
  458. 0-9 & A-F   Enter parameters
  459. SPACE       Play test note
  460. SHIFT+SPACE Silence test note
  461. RETURN      Go to table position indicated by wave/pulse/filter/vibratopos.
  462. SHIFT+N     Edit instrument name
  463. SHIFT+S     Smart paste an instrument
  464. SHIFT+U     Unlock/lock table scrolling
  465. SHIFT+X,C,V Cut,copy,paste instrument
  466. SHIFT+DEL   (also SHIFT+BACKSPACE) Delete instrument & tabledata
  467. SHIFT+RET.  Set tablepointer to empty position or convert old style vibrato
  468.             parameter
  469.  
  470. The test note will be played on the channel you last were on in the pattern
  471. editor. To hear filtering as intended, be sure to play it on a channel that has
  472. been selected for filtering in the filter parameters.
  473.  
  474. Note that cut,copy,paste instrument do not touch the tabledata, just for the
  475. case you need it in another instrument. If you want to completely get rid of
  476. an instrument + its associated tabledata, press SHIFT+DEL.
  477.  
  478. If wave/pulse/filter/vibrato param. is zero and you press RETURN over
  479. it, you will move to the first free location in the corresponding table. If
  480. you press SHIFT+RETURN, also the instrument parameter will be set accordingly.
  481.  
  482. If vibrato parameter is nonzero and you press SHIFT+RETURN over it, it will
  483. be interpreted as an old style vibrato parameter (left nybble speed, right
  484. nybble depth) and converted to a speedtable entry.
  485.  
  486. "Smart paste" will convert instrument numbers in all patterns if you "move" an
  487. instrument by cut/pasting it.
  488.  
  489. 2.3.5 Table edit mode
  490. ---------------------
  491.  
  492. < >         Select instrument
  493. - +         Select instrument
  494. / *         Select octave
  495. BACKQUOTE   Select table
  496. F7          Go to instrument editor
  497. 0-9 & A-F   Enter parameters
  498. SPACE       Play test note
  499. SHIFT+SPACE Silence test note
  500. RETURN      Go back to wave/pulse/filterpos. parameter
  501. SHIFT+Q,A   Transpose speedtable portamento speed halfstep up/down
  502. SHIFT+W,S   Transpose speedtable portamento speed octave up/down,
  503.             or multiply/divide pulse/filterspeed by 2
  504. SHIFT+L     Convert <limit,speed> modulation step to <time,speed>
  505. SHIFT+N     Negate speed parameter (pulse/filtertable) or relative note
  506.             (wavetable)
  507. SHIFT+O     Optimize current table (remove unused entries)
  508. SHIFT+R     Convert note between absolute/relative in wavetable
  509. SHIFT+U     Unlock/lock table scrolling
  510.  
  511. If you need to insert rows in the beginning of an instrument's wave/pulse/
  512. filtertable, press SHIFT+INS instead of just INS: this way table pointers
  513. pointing to the table first row will not move.
  514.  
  515. For easier programming of negative modulation speeds in pulse/filtertables, you
  516. can first enter a positive speed positive value ($00-$7F) and then press
  517. SHIFT+N to negate it.
  518.  
  519. Conversion between relative and absolute notes will use the basenote C-0 if
  520. octave is 0, C-1 if octave is 1 and so on.
  521.  
  522. When table scrolling is unlocked, each table maintains its separate view
  523. position. To indicate this mode, a "U" letter is visible in the bottom right
  524. part of the screen. By default table scrolling is locked.
  525.  
  526. 2.3.6 Songname edit mode
  527. ------------------------
  528.  
  529. Use cursor UP/DOWN to move between song, author & copyright strings, and
  530. other keys to edit them.
  531.  
  532. 2.4 Mouse control
  533. -----------------
  534.  
  535. By clicking with the left mouse button, you can select the data to edit.
  536.  
  537. By dragging with middle or right mouse button, you can mark orderlist/pattern/
  538. tabledata.
  539.  
  540. Some values like octave or subtune/pattern numbers can be incremented with
  541. the left mouse button and decremented with the right.
  542.  
  543. By holding the middle/right mouse button in the status bar, a menu becomes
  544. active. Continue to hold and click with left button to select options.
  545.  
  546. In the fileselector, confirm loading or entering a directory by double-
  547. clicking. Doubleclick outside the selector to cancel.
  548.  
  549.  
  550. 3. Song data
  551. ------------
  552.  
  553. 3.1 Orderlist data
  554. ------------------
  555.  
  556. A song can consist of up to 32 subtunes. For each subtune's each channel, there
  557. is an orderlist which determines in what order patterns are to be played. In
  558. addition to pattern numbers, there can be TRANSPOSE & REPEAT commands and
  559. finally there is a RST (RESTART) endmark followed by restart position. The
  560. maximum length of an orderlist is 254 pattern numbers/commands + the endmark.
  561.  
  562. TRANSPOSE is measured in halftones. Transpose up (shown as +X) can be 0-14
  563. halftones and transpose down (shown as -X) can be 1-15. Transpose is
  564. automatically reset only when starting the song, not when looping.
  565.  
  566. A REPEAT command (shown as RX) will repeat the pattern following it 1-16 times.
  567. "Repeat 16 times" is displayed as R0.
  568.  
  569. There are some rules for orderlist command order:
  570.  
  571. - If there are both TRANSPOSE and REPEAT commands before a pattern number,
  572.   TRANSPOSE must come first.
  573.  
  574. - The last thing before the RST-endmark must be a pattern number. If you need
  575.   to reset transpose on song repeat, do it in the beginning of the repeat loop.
  576.  
  577. In case of wrong order, the editor will halt playback. This tells that the
  578. resulting packed/relocated song would play incorrectly.
  579.  
  580. 3.2 Pattern data
  581. ----------------
  582.  
  583. Patterns are single-channel only for flexibility & low memory use. They contain
  584. the actual notes, instrument changes & sound commands. A pattern can have
  585. variable length, up to 128 rows. There can be 208 different patterns in a song.
  586.  
  587. The explanation of a pattern row:
  588.  
  589.  Note name
  590.  |
  591.  | Octave
  592.  | |
  593.  | | Instrument number ($01 - $3F, or $00 for no change)
  594.  | | |
  595.  | | |  Command ($0 - $F)
  596.  | | |  |
  597.  | | |  | Databyte
  598.  | | |  | |
  599.  C-1 00 0 00
  600.  
  601. The highest note available in a pattern is G#7. To reach the top three notes
  602. (A-7 to B-7), you can use transpose.
  603.  
  604. In place of a normal note, there can also be one of these special "notes":
  605.  
  606.  ... Rest
  607.  --- Key off (clear gatebit mask)
  608.  +++ Key on (set gatebit mask)
  609.  
  610. The actual state of the gatebit will be the gatebit mask ANDed with data from
  611. the wavetable. A key on cannot set the gatebit if it was explicitly cleared
  612. at the wavetable.
  613.  
  614. Commands 1XY-4XY and FXY bear some resemblance to Soundtracker/Protracker/
  615. Fasttracker effect commands. However, they are different in some ways, so
  616. read their descriptions! Note that there is no "databyte $00 uses the last
  617. databyte"-action in the commands.
  618.  
  619. Command 0XY: Do nothing. Databyte will always be $00.
  620.  
  621. Command 1XY: Portamento up. XY is an index to a 16-bit speed value in the
  622.              speedtable.
  623.  
  624. Command 2XY: Portamento down. XY is an index to a 16-bit speed value in the
  625.              speedtable.
  626.  
  627. Command 3XY: Toneportamento. Raise or lower pitch until target note has been
  628.              reached. XY is an index to a 16-bit speed value in the
  629.              speedtable, or $00 for "tie-note" effect (move pitch instantly to
  630.              target note)
  631.  
  632. Command 4XY: Vibrato. XY is an index to the speed table, where left side
  633.              determines how long until the direction changes (speed)
  634.              and right side determines the amount of pitch change on each tick
  635.              (depth).
  636.  
  637. Command 5XY: Set attack/decay register to value XY.
  638.  
  639. Command 6XY: Set sustain/release register to value XY.
  640.  
  641. Command 7XY: Set waveform register to value XY. If a wavetable is actively
  642.              changing the channel's waveform at the same time, will be
  643.              ineffective.
  644.  
  645. Command 8XY: Set wavetable pointer. $00 stops wavetable execution.
  646.  
  647. Command 9XY: Set pulsetable pointer. $00 stops pulsetable execution.
  648.  
  649. Command AXY: Set filtertable pointer. $00 stops filtertable execution.
  650.  
  651. Command BXY: Set filter control. X is resonance and Y is channel bitmask.
  652.              $00 turns filter off and also stops filtertable execution.
  653.  
  654. Command CXY: Set filter cutoff to XY. Can be ineffective if the filtertable is
  655.              active and also changing the cutoff.
  656.  
  657. Command DXY: Set mastervolume to Y, if X is $0. If X is not $0, value XY is
  658.              copied to the timing mark location, which is playeraddress+$3F.
  659.  
  660. Command EXY: Funktempo. XY is an index to the speedtable, tempo will alternate
  661.              between left side value and right side value on subsequent pattern
  662.              steps. Sets the funktempo active on all channels, but you can use
  663.              the next command to override this per-channel.
  664.  
  665. Command FXY: Set tempo. Values $03-$7F set tempo on all channels, values $83-
  666.              $FF only on current channel (subtract $80 to get actual tempo).
  667.              Tempos $00-$01 recall the funktempo values set by EXY command.
  668.  
  669. Master volume is by default the maximum ($F), but it is only reset when loading
  670. a new song or clearing songdata in the editor, not every time playback starts.
  671. If you change mastervolume, you have to reset it manually in the beginning of
  672. your song.
  673.  
  674. If the command is not 1XY-4XY, instrument vibrato will be active.
  675.  
  676. Note that the one-shot commands 5XY-FXY allow the previous 1XY-4XY command or
  677. instrument vibrato to continue "underneath" them. In section 3.6 (hints & tips)
  678. there is an example of this.
  679.  
  680. 3.3 Instrument data
  681. -------------------
  682.  
  683. You can use up to 63 different instruments in a song. Each instrument is
  684. defined by 9 parameters:
  685.  
  686. Attack/Decay          $0 is fastest attack or decay, $F is slowest
  687.  
  688. Sustain/Release       Sustain level $0 is silent and $F is the loudest. Release
  689.                       behaves like Attack & Decay (F slowest).
  690.  
  691. Wavetable Pos         Wavetable startposition. Value $00 stops the wavetable
  692.                       execution and is not very useful.
  693.  
  694. Pulsetable Pos        Pulsetable startposition. Value $00 will leave pulse
  695.                       execution untouched.
  696.  
  697. Filtertable Pos       Filtertable startposition. Value $00 will leave filter
  698.                       execution untouched. In most cases it makes sense to have
  699.                       a filter-controlling instrument only on one channel at a
  700.                       time.
  701.  
  702. Vibrato Param         Instrument vibrato parameter. An index to the speedtable,
  703.                       see command 4XY.
  704.  
  705. Vibrato Delay         How many ticks until instrument vibrato starts. Value $00
  706.                       turns instrument vibrato off.
  707.  
  708. HR/Gate Timer         How many ticks before note start note fetch, gateoff and
  709.                       hard restart happen. Can be at most tempo-1. So on tempo 4
  710.                       highest acceptable value is 3. Bitvalue $80 disables hard
  711.                       restart and bitvalue $40 disables gateoff.
  712.  
  713. 1stFrame Wave         Waveform used on init frame of the note, usually $09 (gate
  714.                       + testbit). Values $00, $FE and $FF have special meaning:
  715.                       leave waveform unchanged and additionally set gate off
  716.                       ($FE), gate on ($FF), or gate unchanged ($00).
  717.  
  718. In case of illegal (too high) gateoff timer values, the song playback is
  719. stopped.
  720.  
  721. ADSR settings are crucial to getting any sound at all. If all of them are zero
  722. just a very short "click" will be heard. Here is a diagram to help you
  723. visualize the Attack, Decay, Sustain & Release phases:
  724.  
  725.      V      /\            |<- gatebit reset (key-off) at this point
  726.      O     /  \           |
  727.      L    /    \__________|
  728.      U   /                |\
  729.      M  /                 | \
  730.      E /                  |  \
  731. TIME ---------------------------->
  732.          A   D      S       R
  733.  
  734. Some ADSR examples:
  735.  
  736.   A/D 09 Will produce a sound that starts from full volume right away and fades
  737.   S/R 00 to silence automatically. By increasing the Decay value, the fade will
  738.          last longer.
  739.  
  740.   A/D 00 A sound that goes very fast from full volume to sustain level 8.
  741.   S/R 8A If you increase the Decay value, it will go to the sustain level
  742.          slower. After key-off, starts fading out with speed A.
  743.  
  744.   A/D CC A sound that rises slowly to maximum volume, then decays slowly to the
  745.   S/R AF sustain level A and after key-off, fades out to silence very slowly.
  746.  
  747. Instrument legato works as following: When HR/Gate Timer parameter has bit $40
  748. set, no hard restart or gateoff will be performed. When 1st Frame Wave is also
  749. $00, no 1st frame waveform will be set and gate flag is untouched. However wave/
  750. pulse/filterpointers and ADSR are initialized normally. You can also use this in
  751. conjunction with command 8XY to set another wavetable pointer for the note.
  752.  
  753. 3.4 Table data
  754. --------------
  755.  
  756. Tables control the execution of instruments' waveform/arpeggio changes, pulse
  757. modulation, and filter modulation. All the tables are controlled by the left
  758. side bytes, while the right side byte specifies additional parameters.
  759.  
  760. Note that you should never jump directly onto a table jump command (FF) either
  761. with instrument parameters or pattern commands 8XY, 9XY, AXY. Otherwise,
  762. results are undefined.
  763.  
  764. 3.4.1 Wavetable
  765. ---------------
  766.  
  767. Wavetable left side:   00    Leave waveform unchanged
  768.                        01-0F Delay this step by 1-15 frames
  769.                        10-DF Waveform values
  770.                        E0-EF Inaudible waveform values $00-$0F
  771.                        F0-FE Execute command 0XY-EXY. Right side is parameter.
  772.                        FF    Jump. Right side tells position ($00 = stop)
  773.  
  774. Wavetable right side:  00-5F Relative notes
  775.                        60-7F Negative relative notes (lower pitch)
  776.                        80    Keep frequency unchanged
  777.                        81-DF Absolute notes C#0 - B-7
  778.  
  779. Short explanation of waveform bitvalues:
  780. 01 = Gatebit. When on, initiates attack/decay/sustain phase. When off,
  781.      initiates the release phase.
  782. 02 = Synchronize. Creates weird effects using output of another channel
  783. 04 = Ring modulation. Creates weird effects using output of another channel.
  784.      Most effective with the triangle waveform.
  785. 08 = Testbit. Silences sound and resets the oscillator.
  786. 10 = Triangle waveform.
  787. 20 = Sawtooth waveform.
  788. 40 = Pulse waveform.
  789. 80 = Noise waveform.
  790.  
  791. All waveforms except noise can be combined (for example triangle+pulse), but
  792. the effect will be different on 6581 and 8580 SID chips, so use caution.
  793.  
  794. The way how the channels work with synchronize/ringmod:
  795. - When used on channel 1, channel 3's output modulates the sound.
  796. - When used on channel 2, channel 1's output modulates the sound.
  797. - When used on channel 3, channel 2's output modulates the sound.
  798.  
  799. Wavetable delay or no wavechange should not be used in the first step of
  800. instrument wavetable. Otherwise, missing notes may be caused. On the other
  801. hand, if you use 8XY command to jump into a wavetable program, those are
  802. allowed.
  803.  
  804. Using wavetable delay or a wavetable step with no frequency change allows
  805. realtime commands & instrument vibrato to be executed together with wave-
  806. table. Be warned that this has the potential for large rastertime usage!
  807.  
  808. You can execute pattern commands from the wavetable. Right side
  809. is the command parameter. Note that commands 0XY (do nothing), 8XY (set
  810. wavetable pointer) and EXY (funktempo) are illegal and should not be used.
  811. When executing a command, no wave/note will be changed on the same frame.
  812.  
  813. Some examples of wave tables (all examples start on table step 1)
  814.  
  815.   01: 21 00 Sawtooth waveform on note's original pitch.
  816.   02: FF 00
  817.  
  818.   01: 41 00 A flute sound with pulse on the first tick and triangle on all
  819.   02: 11 00 the rest.
  820.   03: FF 00
  821.  
  822.   01: 41 01 A "koto" sound that is one halfstep higher on the first tick and
  823.   02: 40 00 on original pitch the next. Gatebit is also cleared on the second
  824.   03: FF 00 tick.
  825.  
  826.   01: 81 D0 A snaredrum sound, using all absolute notes so it does not depend
  827.   02: 41 AA on which note it's played. Use pulsewidth 800 for best result.
  828.   03: 41 A4
  829.   04: 80 D4
  830.   05: 80 D1
  831.   06: FF 00
  832.  
  833.   01: 81 DF A pulse sound on original pitch, preceded with a short noise (like
  834.   02: 41 00 a hi-hat or something) that has always an absolute pitch of B-7.
  835.   03: FF 00
  836.  
  837.   01: 41 00 A 4-note looping arpeggio sound with pulse waveform. Note that
  838.   02: 00 04 waveform does not change in the looping part.
  839.   03: 00 07
  840.   04: 00 0C
  841.   05: 00 00
  842.   06: FF 02
  843.  
  844.   01: 21 00 A delayed minor chord arpeggio with sawtooth waveform. Each step
  845.   02: 02 03 takes 3 ticks.
  846.   03: 02 07
  847.   04: 02 00
  848.   05: FF 02
  849.  
  850.   01: 41 00 Use pulse first, but then switch between pulse & triangle every 5
  851.   02: 03 80 ticks while frequency remains unchanged (allowing for vibrato &
  852.   03: 11 80 slides).
  853.   04: 03 80
  854.   05: 41 80
  855.   06: FF 02
  856.  
  857.   01: 81 CF Short noise in the beginning, sawtooth, after a short delay change
  858.   02: 21 00 sustain/release (via pattern command 6XY) to $2A.
  859.   03: 08 00
  860.   04: F6 2A
  861.   05: FF 00
  862.  
  863.  
  864. 3.4.2 Pulsetable
  865. ----------------
  866.  
  867. Pulsetable left side:  01-7F Pulse modulation step. Left side indicates time
  868.                              and right side the speed (signed 8-bit value).
  869.                        8X-FX Set pulse width. X is the high 4 bits, right
  870.                              side tells the 8 low bits.
  871.                        FF    Jump. Right side tells position ($00 = stop)
  872.  
  873. Some examples of pulse tables (all examples start on table step 1)
  874.  
  875.   01: 88 00 Set pulse value $800 (middle)
  876.   02: FF 00 Stop pulse execution
  877.  
  878.   01: 80 10 Set pulse value $010 (very thin)
  879.   02: 20 40 For 32 ticks, increase pulse with speed $0040 (64)
  880.   03: 40 E0 For 64 ticks, decrease pulse with speed $FFE0 (-32)
  881.   04: 40 20 For 64 ticks, increase pulse with speed $0020 (32)
  882.   05: FF 03 Jump back to step 03 for a nice loop
  883.  
  884. 3.4.3 Filtertable
  885. -----------------
  886.  
  887. Filtertable left side: 00    Set cutoff, indicated by right side
  888.                        01-7F Filter modulation step. Left side indicates time
  889.                              and right side the speed (signed 8-bit value)
  890.                        80-F0 Set filter parameters. Left side high nybble
  891.                              tells the passband ($90 = lowpass, $A0 = bandpass
  892.                              etc.) and right side tells resonance/channel
  893.                              bitmask, as in command BXY.
  894.                        FF    Jump. Right side tells position ($00 = stop)
  895.  
  896. If "Set filter parameters" is followed by "Set cutoff" directly below, both
  897. will be executed on the same frame.
  898.  
  899. Some examples of filter tables (all examples start on table step 1)
  900.  
  901.   01: 90 F1 Set lowpass, resonance F, channel bitmask 1 (filter channel 1 only)
  902.   02: 00 40 Set cutoff to $40
  903.   03: FF 00 Stop filter execution
  904.  
  905.   01: 80 00 No passband selected, resonance 0, bitmask 0 (no filtered channels)
  906.   02: FF 00 Stop filter execution
  907.  
  908.   01: A0 87 Set bandpass, resonance 8, channel bitmask 7 (filter all channels)
  909.   02: 00 00 Set cutoff to $00
  910.   03: 7F 01 Increase cutoff with speed $01 for 127 ticks
  911.   04: 7F 01 Continue cutoff increase
  912.   05: 7F FF Then decrease back to starting position (speed $FF = -1)...
  913.   06: 7F FF
  914.   07: FF 03 ...and loop back to step 03
  915.  
  916.   01: C0 F2 Set highpass, resonance F, channel bitmask 2 (filter channel 2)
  917.   02: 00 F0 Set cutoff to $F0
  918.   03: 90 F2 On the next frame, change to lowpass...
  919.   04: 00 50 ...and set cutoff $50
  920.   05: FF 00 Stop filter execution
  921.  
  922. Note that the second example could also be achieved simply with pattern command
  923. B00 (set filter control, and stop filter execution, because parameter was $00)
  924.  
  925. 3.4.4 Speedtable
  926. ----------------
  927.  
  928. The speedtable is shared by vibrato, portamento and funktempo. No jump commands
  929. exist.
  930.  
  931. For vibrato:          XX YY Left side tells how long until vibrato direction
  932.                             changes (speed), right side is the value added to
  933.                             pitch each tick (depth).
  934.  
  935. For portamento:       XX YY A 16-bit value added to pitch each tick. Left side
  936.                             is the MSB and the right side the LSB.
  937.  
  938. For funktempo:        XX YY Two 8-bit tempo values that are alternated on each
  939.                             pattern row, starting from the left side.
  940.  
  941. For both vibrato and portamento, if XX has the high bit ($80) set, note 
  942. independent vibrato depth / portamento speed calculation is enabled, and YY
  943. specifies the divisor (higher value -> lower result and more rastertime taken).
  944.  
  945. Vibrato examples:
  946.  
  947.   01: 03 40 Vibrato with speed $03 and depth $40. Corresponds to old vibrato
  948.             parameter $34
  949.   01: 05 04 Speed $05 and depth $04. Slow shallow vibrato, suitable for bass
  950.             notes. Not possible to achieve with old parameters.
  951.   01: 83 04 Speed $03, note-independent depth enabled, depth divisor 4 right-
  952.             shifts (division by 16).
  953.  
  954. Portamento examples:
  955.  
  956.   01: 00 20 Portamento with speed $0020, corresponds to old parameter $08
  957.             (4 * $08 = $0020).
  958.   01: 01 00 Portamento with speed $0100, corresponds to old parameter $40
  959.             (4 * $40 = $0100).
  960.   01: 4F FF Portamento with speed $4fff, loops the pitch highbyte very fast
  961.             so that a SEUCK-like "space" effect is heard. Not possible to
  962.             achieve with old parameters.
  963.   01: 80 01 Note-independent speed enabled, speed divisor 1 rightshift
  964.             (division by 2).
  965.  
  966. Funktempo examples:
  967.  
  968.   01: 09 06 Play tempo $09 on even pattern steps and $06 on odd steps,
  969.             corresponds to old parameter $96.
  970.  
  971.   01: 24 18 The same funktempo adjusted for 4x-multispeed. Not possible to
  972.             achieve with old parameters.
  973.  
  974. Note that you can enter old style vibrato parameters, portamento speeds and
  975. funktempo to patterns & instruments, and when cursor is over the parameter,
  976. press SHIFT+RETURN to create a new speedtable entry corresponding to that
  977. parameter. The parameter will now be overwritten by a speedtable pointer.
  978.  
  979.  
  980. 3.5 Playback details
  981. --------------------
  982.  
  983. Each pattern row is divided into as many 50Hz/60Hz "ticks" as the tempo
  984. indicates. Some ticks are reserved for special actions, and to conserve raster-
  985. time, certain realtime effects/commands (pulse, vibrato, portamento) are
  986. skipped at the same time. Let's assume a tempo of 6 and gateoff timer value 2
  987. and look at what happens on each tick:
  988.  
  989. Tick    Actions
  990. 0       - Initialization of new notes (no audible sound yet)
  991.         - Orderlist advance if necessary
  992.         - Pulsetable execution only if no orderlist advance
  993.         - Wavetable execution
  994.         - "One-shot" commands 5XY-FXY
  995.  
  996. 1       - New notes become audible
  997.         - Pulsetable execution
  998.         - Wavetable or realtime pattern commands 1XY-4XY
  999.  
  1000. 2,3     - Pulsetable execution
  1001.         - Wavetable or realtime pattern commands 1XY-4XY
  1002.  
  1003. 4       - New notes fetched from the pattern
  1004.         - Gateoff and hard restart for new notes
  1005.           (2 ticks before first frame, as gateoff timer indicates)
  1006.         - No pulsetable execution
  1007.         - Wavetable or realtime pattern commands 1XY-4XY
  1008.  
  1009. 5       - Pulsetable execution
  1010.         - Wavetable or realtime pattern commands 1XY-4XY
  1011.  
  1012. Filtertable is executed on each tick regardless of what the channels are doing.
  1013. Wavetable is never skipped, so arpeggios/drumsounds should always play OK.
  1014.  
  1015. With the commandline parameter /O0 (or by clicking the "PO" text on the status
  1016. bar) you can disable pulse skipping. This leads to increased rastertime use but
  1017. can be good for example with tempo 3 tunes.
  1018.  
  1019. Likewise, with the commandline parameter /R0 (or by clicking the "RO" text on
  1020. the status bar) you can disable realtime pattern command skipping on tick 0.
  1021.  
  1022. 3.6 Miscellaneous tips
  1023. ----------------------
  1024.  
  1025. - Patterns will take less memory the less there are command changes. When the
  1026.   song is packed/relocated, for example a long vibrato or portamento command
  1027.   needs to be stored only once as long as the parameter stays the same on
  1028.   subsequent pattern rows.
  1029.  
  1030. - Using instrument vibrato can make 4XY commands unnecessary and save even
  1031.   more memory. Use realtime calculated note-independent speed (see speedtable
  1032.   section) if you want the vibrato to have the same magnitude regardless of 
  1033.   the note.
  1034.  
  1035. - In the instrument parameters, there is no option to stop pulse execution
  1036.   directly. So if you have for example a sawtooth instrument, there might be
  1037.   an "unnecessary" pulsemodulation going on underneath and wasting rastertime.
  1038.   There are two ways you can stop this:
  1039.   1) Make a short pulseprogram like this and use it in the instrument:
  1040.      01: 80 00 Set pulse $000
  1041.      02: FF 00 Stop pulse execution
  1042.   2) Use pattern command 900 to stop pulse execution
  1043.  
  1044. - If you have a realtime command (vibrato/portamento), you can put "one-shot"
  1045.   commands 5XY-FXY inbetween and the realtime command will be unaffected. An
  1046.   example:
  1047.  
  1048.   C-4 01000
  1049.   --- 00401 Begin vibrato with speedtable index $01
  1050.   --- 00401
  1051.   --- 00401
  1052.   --- 0065A Set sustain/release to $5A. Vibrato executes also on this step!
  1053.   --- 00401 Continue vibrato normally
  1054.   --- 00401
  1055.  
  1056.   However, the vibrato would stop immediately if command 0 was encountered.
  1057.  
  1058. - Normally tempo 3 is the fastest you can use. However, by using the funktempo
  1059.   command you can get tempo 2. To do this, create a following speedtable entry:
  1060.   02 02, and point your funktempo command to it. You also need to use gateoff
  1061.   timer 1 in all instruments and disable the pulse-optimization skipping.
  1062.  
  1063. - For very optimized songdata & player you can refrain from using any pattern
  1064.   commands and rely on the instruments' step-programming. Even in this case, you
  1065.   can set song startup default tempo with the Attack/Decay parameter of the last
  1066.   instrument (63), if you otherwise leave this instrument unused.
  1067.  
  1068. 3.6.1 Limit-based modulation steps
  1069. ----------------------------------
  1070.  
  1071. You can enter pulse/filter modulation steps in limit-based format, and convert
  1072. them to time-based with SHIFT+L. For example, you could enter the following in
  1073. the pulsetable:
  1074.  
  1075.   01: 84 00 Set initial pulse to $400
  1076.   02: C0 10 Modulate pulse to $C00 with speed $0010
  1077.   03: 40 10 Modulate pulse back to $400 with speed $0010
  1078.  
  1079. Now position the cursor on step 02 and press SHIFT+L twice, to convert both of
  1080. the modulation steps to usual time-based steps. If necessary, the steps will
  1081. be expanded to several (if the resulting time parameter is over $7F.)
  1082.  
  1083. Remember that the player only understands time-based steps and you always have
  1084. to convert limit-based steps before they play correctly!
  1085.  
  1086. 3.6.2 Precalculated note-independent "hifi player" portamento/vibrato
  1087. ---------------------------------------------------------------------
  1088.  
  1089. From v2.62 onwards, GoatTracker actually supports realtime calculated note 
  1090. independent portamento and vibrato speeds, see speedtable section for this. 
  1091. However, this makes the player bigger and much slower. You can still also use 
  1092. the old method of manually precalculating needed note-independent speeds with 
  1093. the SHIFT+H function, which this section is about.
  1094.  
  1095. The idea is to take the frequency difference between 2 adjacent notes in
  1096. the frequency table and manipulate it by bit shifting left (multiply) or
  1097. right (divide).
  1098.  
  1099. To use, you need a portamento or vibrato command in the pattern, and the note
  1100. you wish to base the calculation on on the current pattern step or before it
  1101. (before it only for toneportamento) The amount of shift is determined by the
  1102. command parameter. A number in the left nybble means shift left and right
  1103. nybble right shift. When you press Shift+H while the cursor is on the command,
  1104. a speedtable entry is created, and the parameter is replaced with a speedtable
  1105. index.
  1106.  
  1107. Some examples:
  1108.  
  1109.   C-3 00110 Take the frequency difference between C-3 & C#3 and shift it left
  1110.             1 times (multiply by 2.)
  1111.  
  1112.   E-4 00000
  1113.   ... 00000
  1114.   G-4 00302 Take the frequency difference between E-4 & F-4 and shift it right
  1115.             2 times (divide by 4.)
  1116.  
  1117. 3.7 Multispeed tips
  1118. -------------------
  1119.  
  1120. - When making multispeed songs, remember to multiply your tempos and also the
  1121.   gateoff timer values! For example, gateoff timer is normally 2, but in a 2X-
  1122.   speed tune the same gateoff length would be achieved with value 4.
  1123.  
  1124. - If you want to keep vibrato the same compared to 1X-speed, you must multiply
  1125.   vibrato speed by the speed multiplier, and divide vibrato depth by the
  1126.   multiplier. Remember also to divide portamento and pulse/filter modulation
  1127.   speeds as necessary.
  1128.  
  1129. - When importing a v1.xx multispeed song, you also need to multiply the
  1130.   gateoff timers.
  1131.  
  1132. - In the instruments, using Attack 0 might result in a very silent first row of
  1133.   the wavetable. You could try increasing the attack, or adding one or more
  1134.   rows of E9 00 (testbit+gate) to the beginning of the wavetable.
  1135.  
  1136.  
  1137. 4. Using the included utilities
  1138. -------------------------------
  1139.  
  1140. 4.1 INS2SND2.EXE
  1141. ----------------
  1142.  
  1143. INS2SND2.EXE converts GoatTracker v1.xx or v2 instruments (.INS-files) into
  1144. sound effects, outputting the data as source code or binary.
  1145.  
  1146. Usage: INS2SND <instrumentfile> <sourcecodefile> <options>
  1147. Options:
  1148. -b output in binary
  1149. -c output in CovertScript format (deprecated)
  1150.  
  1151. Default output is C64 assembler (DASM) style source code
  1152.  
  1153. Look at section 6.3 or run the program without parameters to see the
  1154. limitations of the sound effect system.
  1155.  
  1156. 4.2 SNGSPLI2.EXE
  1157. ----------------
  1158.  
  1159. SNGSPLI2.EXE splits the patterns of a GoatTracker v2 song into smaller pieces
  1160. for memory use optimization. It is comfortable to compose with large patterns
  1161. but usually more efficient memory-wise to use small patterns. Remember! Always
  1162. keep the original song because a pattern-splitted song is much harder to edit
  1163. further.
  1164.  
  1165. Usage: SNGSPLI2 <source> <destination> [target len]
  1166.  
  1167. For example, if a pattern is 64 rows long and the target length is 16, it will
  1168. be split into 4 pieces. A pattern that falls below 2 x target length, will not
  1169. be split at all.
  1170.  
  1171. 4.3 MOD2SNG.EXE
  1172. ---------------
  1173.  
  1174. Dedicated exclusively to T.M.R, this program converts the pattern & orderlist
  1175. data of 4-channel, 31-instrument MOD-files into GoatTracker .SNG files. You
  1176. must choose one channel to leave out, and obviously instruments are not
  1177. converted, except for their names. You can also specify a transpose in
  1178. halfsteps.
  1179.  
  1180. Usage: MOD2SNG <mod> <sng> [channel] [transpose]
  1181.        [channel] is the channel to leave out (1-4), default 4
  1182.        [transpose] is the halfstep transpose added to notes, default 0
  1183.  
  1184. 4.4 BETACONV.EXE
  1185. ----------------
  1186.  
  1187. Converts GT v2 beta songs to new format used by GT v2 RC1 onwards. Old format
  1188. had 47 instruments max. and new has 63 max. Additionally, depending on what
  1189. beta version you used, you can choose to halve vibrato depths and pulse speeds
  1190. to make them play correct in the current version. Warning: the conversion is
  1191. irreversible, so have backups if you overwrite the old versions.
  1192.  
  1193. Usage: BETACONV <source> <destination> [vibdepth] [pulse]
  1194.        [vibdepth] decides whether to halve vibdepth (1=yes 0=no), default 0
  1195.        [pulse] decides whether to halve pulse speed (1=yes 0=no), default 0
  1196.  
  1197.  
  1198. 5. Using the songs outside the editor
  1199. -------------------------------------
  1200.  
  1201. Press F9 in the editor to enter the packer/relocator. Choose playroutine
  1202. options, startaddress, zeropage address (need 2 consecutive locations) and file
  1203. format (PRG/BIN/SID), then type the filename.
  1204.  
  1205. If you use patterns longer than 64 rows, there is the possibility that
  1206. relocation fails because of too complex patterns. Each pattern row can be 0-4
  1207. bytes packed, and the total amount of bytes per one pattern may not exceed 256.
  1208.  
  1209. If wave/pulse/filtertables overflow past row 255 without a jump command or there
  1210. are other serious errors, you get a warning screen and have to fix the error.
  1211.  
  1212. The relocator optimizes & removes when saving:
  1213. - Unused patterns
  1214. - Unused instruments
  1215. - Unused table-entries
  1216. - Selfcontained (ie. no jumps to/from outside) duplicate parts of tables
  1217. - Player code not needed in the playback of the song
  1218.  
  1219. Look at /examples/example1.prg - example4.prg to get an idea how much these
  1220. playroutines take rastertime. No promises!
  1221.  
  1222. The basic functions independent of playroutine options are:
  1223.  
  1224. Init music:
  1225.  
  1226.         LDA #subtunenumber       ;Starting from 0
  1227.         JSR startaddress
  1228.  
  1229. Play one frame of music:
  1230.  
  1231.         JSR startaddress+3
  1232.  
  1233. 5.1 Playroutine options
  1234. -----------------------
  1235.  
  1236. BUFFERED SID-WRITES - Instead of writing each SID value as soon as possible,
  1237. waits for the end of the channel's execution on each frame and then writes the
  1238. registers in one go. Improves sound stability but takes more memory & raster-
  1239. time.
  1240.  
  1241. SOUND EFFECT SUPPORT - Adds a sound effect engine for use in games. Implies
  1242. buffered writes. To use, call in the following way:
  1243.  
  1244.         LDA #<effect        ;Start address of sound effect data
  1245.         LDY #>effect
  1246.         LDX #channel        ;0, 7 or 14 for channels 1-3
  1247.         JSR startaddress+6
  1248.  
  1249. The sound effects have a hardcoded priority system based on their start
  1250. addresses. A sound higher up in memory (bigger address) will never be
  1251. interrupted with a sound lower in memory.
  1252.  
  1253. VOLUME CHANGE SUPPORT - Adds a routine in the player's jumptable to change the
  1254. master volume level. To use, call in the following way:
  1255.  
  1256.         LDA #volume        ;0-15
  1257.         JSR startaddress+6 ;(startaddress+9 with sound effect support)
  1258.  
  1259. Note that the master volume command (DXY) also modifies this same location,
  1260. so it will clash if you also change the volume manually.
  1261.  
  1262. STORE AUTHOR-INFO - Writes the "AUTHOR" string from songname editor to the
  1263. location range (startaddress+$20 - startaddress+$3F). Also enables timing mark
  1264. support. A timing mark is a mastervolume command (DXY) with parameter $10-$FF.
  1265. This parameter will be copied into startaddress+$3F when the command is
  1266. encountered in playback.
  1267.  
  1268. USE ZEROPAGE GHOSTREGS - Instead of writing to the SID, a memory range in the
  1269. zeropage is used for holding the SID register data. This can then be copied
  1270. in the main program to the SID, for example to enable the playroutine & music
  1271. data to reside under the I/O area. Implies buffered writes. A reverse copy loop
  1272. should be used after each call to the playroutine:
  1273.  
  1274.         LDX #$18
  1275. copy:   LDA ghostregs,x
  1276.         STA $D400,x
  1277.         DEX
  1278.         BPL copy
  1279.  
  1280. The copy loop can also be unrolled for more speed.
  1281.  
  1282. Note that when you use the alternative hardrestart method & playroutine (hard-
  1283. restart attack parameter F) the copy loop should not be in reverse order but
  1284. should be for each channel: wave, frequency, pulsewidth, and ADSR last.
  1285.  
  1286. If you are using both sound effect support and ghostregisters, there exists
  1287. a possibility of sound errors in the case that a sound effect has finished,
  1288. and the same channel starts a new pulse-waveform note without setting an
  1289. initial pulsewidth value (for example, like in the beginning of Sanxion loader
  1290. tune). This is because the ghostregisters are shared between music & sound
  1291. effect playback, and the sound effect has already overwritten the previous
  1292. pulse width.
  1293.  
  1294. DISABLE OPTIMIZATIONS - The relocator removes saved playroutine code based on
  1295. what effects & commands the song uses, resulting in a smaller playroutine
  1296. accordingly. If you encounter anomalies in the sound (such as ADSR bugs caused
  1297. by unpredictable timing variation) you can try disabling the optimizations.
  1298. Normally this is not necessary, but is included just in case.
  1299.  
  1300.  
  1301. 6. File/data formats description
  1302. --------------------------------
  1303.  
  1304. The sections in the files appear in the sequential order in which they are
  1305. described.
  1306.  
  1307. 6.1 GoatTracker v2 song (.SNG) format
  1308. -------------------------------------
  1309.  
  1310. 6.1.1 Song header
  1311. -----------------
  1312.  
  1313. Offset  Size    Description
  1314. +0      4       Identification string GTS5
  1315. +4      32      Song name, padded with zeros
  1316. +36     32      Author name, padded with zeros
  1317. +68     32      Copyright string, padded with zeros
  1318. +100    byte    Number of subtunes
  1319.  
  1320. 6.1.2 Song orderlists
  1321. ---------------------
  1322.  
  1323. The orderlist structure repeats first for channels 1,2,3 of first subtune,
  1324. then for channels 1,2,3 of second subtune etc., until all subtunes
  1325. have been gone thru.
  1326.  
  1327. Offset  Size    Description
  1328. +0      byte    Length of this channel's orderlist n, not counting restart pos.
  1329. +1      n+1     The orderlist data:
  1330.                 Values $00-$CF are pattern numbers
  1331.                 Values $D0-$DF are repeat commands
  1332.                 Values $E0-$FE are transpose commands
  1333.                 Value $FF is the RST endmark, followed by a byte that indicates
  1334.                 the restart position
  1335.  
  1336. 6.1.3 Instruments
  1337. -----------------
  1338.  
  1339. Offset  Size    Description
  1340. +0      byte    Amount of instruments n
  1341.  
  1342. Then, this structure repeats n times for each instrument. Instrument 0 (the
  1343. empty instrument) is not stored.
  1344.  
  1345. Offset  Size    Description
  1346. +0      byte    Attack/Decay
  1347. +1      byte    Sustain/Release
  1348. +2      byte    Wavepointer
  1349. +3      byte    Pulsepointer
  1350. +4      byte    Filterpointer
  1351. +5      byte    Vibrato param. (speedtable pointer)
  1352. +6      byte    Vibraro delay
  1353. +7      byte    Gateoff timer
  1354. +8      byte    Hard restart/1st frame waveform
  1355. +9      16      Instrument name
  1356.  
  1357. 6.1.4 Tables
  1358. ------------
  1359.  
  1360. This structure repeats for each of the 4 tables (wavetable, pulsetable,
  1361. filtertable, speedtable).
  1362.  
  1363. Offset  Size    Description
  1364. +0      byte    Amount n of rows in the table
  1365. +1      n       Left side of the table
  1366. +1+n    n       Right side of the table
  1367.  
  1368. 6.1.5 Patterns header
  1369. ---------------------
  1370.  
  1371. Offset  Size    Description
  1372. +0      byte    Number of patterns n
  1373.  
  1374. 6.1.6 Patterns
  1375. --------------
  1376.  
  1377. Repeat n times, starting from pattern number 0.
  1378.  
  1379. Offset  Size    Description
  1380. +0      byte    Length of pattern in rows m
  1381. +1      m*4     Groups of 4 bytes for each row of the pattern:
  1382.                 1st byte: Notenumber
  1383.                           Values $60-$BC are the notes C-0 - G#7
  1384.                           Value $BD is rest
  1385.                           Value $BE is keyoff
  1386.                           Value $BF is keyon
  1387.                           Value $FF is pattern end
  1388.                 2nd byte: Instrument number ($00-$3F)
  1389.                 3rd byte: Command ($00-$0F)
  1390.                 4th byte: Command databyte
  1391.  
  1392. 6.2 GoatTracker v2 instrument (.INS) format
  1393. -------------------------------------------
  1394.  
  1395. Offset  Size    Description
  1396. +0      4       Identification string GTI5
  1397. +4      byte    Attack/Decay
  1398. +5      byte    Sustain/Release
  1399. +6      byte    Wavepointer
  1400. +7      byte    Pulsepointer
  1401. +8      byte    Filterpointer
  1402. +9      byte    Vibrato param. (speedtable pointer)
  1403. +10     byte    Vibrato delay
  1404. +11     byte    Gateoff timer
  1405. +12     byte    Hard restart/1st frame waveform
  1406. +13     16      Instrument name
  1407.  
  1408. After the instrument data, this structure repeats for each of the 4 tables
  1409. (wavetable, pulsetable, filtertable, speedtable).
  1410.  
  1411. Offset  Size    Description
  1412. +0      byte    Amount n of rows in the table
  1413. +1      n       Left side of the table
  1414. +1+n    n       Right side of the table
  1415.  
  1416. Note that the tables are a partial snapshot of the current song the instrument
  1417. was saved from, so upon loading they have to be relocated to the current free
  1418. table locations.
  1419.  
  1420. 6.3 Sound effect data format
  1421. ----------------------------
  1422.  
  1423. Offset  Size    Description
  1424. +0      byte    Attack/Decay
  1425. +1      byte    Sustain/Release
  1426. +2      byte    Pulse width. This value has nybbles reversed from what it looks
  1427.                 like in the editor so a middle pulse $800 will be stored as $08,
  1428.                 and the sound effect routine will put this value to both $D402
  1429.                 and $D403 registers.
  1430. +3      ?       Wavetable. Contains note/waveform pairs (different order than
  1431.                 in instrument wavetable), from which the waveform can be
  1432.                 omitted if unchanged, as the value ranges do not overlap:
  1433.                         Value $00 ends the sound effect
  1434.                         Values $01-$81 are waveforms
  1435.                         Values $82-$DF are absolute notes D-0 - B-7
  1436.                 Note that a note cannot be omitted to store only waveform
  1437.                 changes!
  1438.  
  1439. As you can see, the sound effect format is very simplistic. When converting an
  1440. instrument to a sound effect with INS2SND2, following things cause an error
  1441. message:
  1442.  
  1443. - If the resulting sound effect is more than 128 bytes
  1444. - If the instrument's wavetable contains relative notes, absolute notes C-0 or
  1445.   C#0, or waveforms > 129 ($81)
  1446.  
  1447. The instrument's pulsewidth modulation & filter settings will be completely
  1448. discarded.
  1449.  
  1450.  
  1451. 7. Recompiling
  1452. --------------
  1453.  
  1454. To recompile for Win32, you need the MinGW development environment, use the
  1455. file src/makefile.win as makefile.
  1456.  
  1457. To recompile for Linux, use src/makefile.
  1458.  
  1459. In both cases you need the SDL development libraries in addition to the SDL
  1460. runtime, see http://www.libsdl.org.
  1461.  
  1462. Compile first the utilities (datafile & dat2inc) from the src/bme directory,
  1463. and place them to your path.
  1464.  
  1465.  
  1466. 8. Version history
  1467. ------------------
  1468.  
  1469. v2.0Beta  - Original public release
  1470.  
  1471. v2.0      - Fixed crash in DMC-note entry mode.
  1472.           - Fixed v1.xx import pulse conversion, a case where pulse startpos
  1473.             was lower than the pulse low limit was not converted right.
  1474.           - Fixed instrument gatetimer becoming zero (can lead to tempo bugs)
  1475.             when cutting an instrument (SHIFT+X)
  1476.           - Fixed order of SID writes to make editor & C64 playroutine behave
  1477.             as similarly as possible.
  1478.           - Fixed removal of table-entries (when loading an instrument) in
  1479.             case another instrument uses them too.
  1480.           - Fixed toneportamento (3XY) with wavetable delays.
  1481.           - Fixed funktempo in packed/relocated songs.
  1482.           - Fixed behaviour of + & - keys while editing instrument name.
  1483.           - Fixed pattern editor transpose functions.
  1484.           - Added SHIFT+DEL to delete an instrument + its tabledata.
  1485.           - Added SHIFT+INS to insert rows on table first row without having to
  1486.             adjust tablepointers afterwards.
  1487.           - Added SHIFT+W,S for octave transpose.
  1488.           - Added SHIFT+1,2,3 to swap orderlists between channels.
  1489.           - Added SHIFT+BACKSPACE to clear a whole pattern row.
  1490.           - Added optimized playroutines, that will be used if all instruments
  1491.             have the same gateoff timer & 1st wave parameters.
  1492.           - Added duplicate check for v1.xx pulse conversion.
  1493.           - Added BETACONV-utility for conversion from beta format.
  1494.           - Added reSID interpolation option /I.
  1495.           - Added hexadecimal pattern row display option /D.
  1496.           - Added SID memory location parameter /L.
  1497.           - reSID interpolation is on by default.
  1498.           - Changed appearance of pattern special notes (rest, keyoff/on)
  1499.           - Increased amount of instruments to 63 and changed song dataformat.
  1500.           - v1.xx import converts arpeggios to instruments as long as there is
  1501.             room.
  1502.           - Vibrato depth changed back to same as in v1.xx.
  1503.           - Pulse modulation speeds are doubled.
  1504.           - Upon startup, songdata erase, or importing v1.xx data, gatetimer
  1505.             will be set to 2 * multiplier as opposed to just 2.
  1506.           - Optimized size & speed of all playroutines (initialization,
  1507.             checking for new note fetch, pulsetable execution).
  1508.           - Wavetable delay or no-wavechange on first step of instrument is
  1509.             definitely unsupported now! Protection to allow this conflicted
  1510.             with 3XY command.
  1511.  
  1512. v2.01     - Added under-IO gamemusic playroutine.
  1513.  
  1514. v2.02     - Added RETURN when instrument tableparameter (wave/pulse/filter) is
  1515.             0 to get you to the first free table location. SHIFT+RETURN will
  1516.             additionally also set the instrument tableparameter.
  1517.           - Added "set mastervolume"-jump to gamemusic routines.
  1518.           - Improved sound effect handling, when an effect is interrupted by
  1519.             another (less silence between sounds).
  1520.  
  1521. v2.03     - Added execution of realtime commands & instrument vibrato during
  1522.             wavetable delay.
  1523.           - Added wavetable right side value $80 to keep frequency unchanged
  1524.             (as a consequence, the note C-0 will cause the same effect).
  1525.           - Added relocator optimizations: all unnecessary data is stripped
  1526.             when packing/relocating.
  1527.           - Playroutines size-optimized.
  1528.           - Explanation of how different gatetimer values can lead to playback
  1529.             going out of sync (section 3.3).
  1530.           - reSID interpolation is no longer on by default :)
  1531.  
  1532. v2.04     - Added a questionable 25Hz mode (/S0)
  1533.           - Execution of commands on wavetable delay is completely reworked
  1534.             and more consistent now.
  1535.           - Note C-0 is usable again.
  1536.  
  1537. v2.05     - Added instrument legato feature (Hardres/1stwave parameter $00).
  1538.           - ADSR writes moved farther away from wave writes in the standard
  1539.             playroutine noteinit, lessening possibility of ADSR bugs.
  1540.           - Song initialization and pulsetable execution speed/sizeoptimized.
  1541.  
  1542. v2.06     - Packer/relocator tolerates up to 256 bytes long patterns now.
  1543.           - Optimized playroutine sizes.
  1544.  
  1545. v2.07     - Fixed transpose reset with F2/F3 song start (should not happen).
  1546.           - Fixed varying tempo on channels with F2/F3 song start.
  1547.           - Added warning screen to packer/relocator if table execution
  1548.             overflows.
  1549.           - Added writing of PAL/NTSC and 6581/8580 flags according to PSID V2
  1550.             NG specification.
  1551.           - -mwindows added to linker options for no displaying of DOS prompt
  1552.             window (in win32 version).
  1553.  
  1554. v2.08     - Added finevibrato mode (/V command line option).
  1555.           - Optimized playroutine sizes & speed.
  1556.  
  1557. v2.09     - Fixed max.pattern length in Clear Musicdata operation.
  1558.           - Added Minimal playroutine.
  1559.           - First wave value $80 also acts as a proper legato instrument now.
  1560.           - Optimized playroutine sizes & speed.
  1561.           - SID chip type & timing (PAL/NTSC) displayed on top row.
  1562.  
  1563. v2.1      - Added SHIFT+N for negating pulse/filter modulation speeds.
  1564.           - Added no-funktempo & no-octave0 optimizations to playroutines (a
  1565.             total of 8 sub-types for each playroutine).
  1566.           - Maximum speed is 16X now.
  1567.           - Separate song/instrument/packed song directories are remembered
  1568.             during session.
  1569.           - Pathname is displayed in the fileselector.
  1570.           - Filters ** and *.* display all files in the fileselector.
  1571.           - Song entered on commandline will be loaded at startup.
  1572.           - Song filename currently being edited is shown in the titlebar.
  1573.           - Currently edited song filename will be used as default in the
  1574.             "SAVE SONG" and "SAVE MUSIC+PLAYROUTINE" dialogs.
  1575.           - Instrument name will also be used as instrument filename as default
  1576.             in the "SAVE INSTRUMENT" dialog.
  1577.           - UPX used for compression of win32 executables.
  1578.           - Included a short reference of waveform bits (manual only).
  1579.           - Configuration file has clearer structure.
  1580.  
  1581. v2.11     - Added SHIFT+S for smart instrument paste (converts instrument
  1582.             numbers in all patterns, after cut/pasting an instrument).
  1583.           - Added SHIFT+L which allows to write <limit,speed> pulse/filter
  1584.             modulation steps and then convert them to the proper <time,speed>
  1585.             format.
  1586.  
  1587. v2.12     - Playroutine 1 has buffered SID-writes.
  1588.           - Octave 0 is not disabled in routines with sound FX (no matter what
  1589.             the relocator says...)
  1590.  
  1591. v2.13     - Standard playroutine now both in unbuffered and buffered flavors.
  1592.  
  1593. v2.15     - Added SHIFT+I for inverting current pattern selection / whole
  1594.             pattern.
  1595.  
  1596. v2.16     - Fixed octave selection with / * for laptop keyboards.
  1597.           - Empty patterns referenced in the orderlist will be saved when
  1598.             saving a song.
  1599.           - Save dialog will reappear if writing the song/instrument/executable
  1600.             music failed.
  1601.           - Optimized handling of "packed rests" in the playroutines.
  1602.           - Added < > for instrument selection in instrument/table edit modes.
  1603.  
  1604. v2.17     - Fixed initialization of instrument vibrato.
  1605.           - Playroutines size-optimized.
  1606.  
  1607. v2.18     - Wavetable left side values changed. Delay is now $01-$0F and
  1608.             inaudible waveforms (register values $00-$0F) have been mapped to
  1609.             table values $E0-$EF. Old songs using values $08-$0F have to be
  1610.             manually converted!
  1611.  
  1612. v2.2      - Added the speedtable for more precise control of vibrato,
  1613.             portamento and funktempo.
  1614.           - Added SHIFT+O to optimize the speedtable (remove unused entries).
  1615.           - Added SHIFT+R to convert between absolute/relative notes in
  1616.             the wavetable.
  1617.           - Added SHIFT+RETURN in pattern/instrument editor to convert old
  1618.             style portamento, vibrato and funktempo parameters to speedtable
  1619.             entries.
  1620.           - SHIFT+R will paste several effect rows if there is data in pattern
  1621.             copybuffer.
  1622.           - Editing during Follow Play is possible.
  1623.           - Song and instrument format modified for 4 tables. Old 3-table
  1624.             data will be loaded but not saved anymore.
  1625.  
  1626. v2.21     - Fixed NTSC CIA timer value for SID files.
  1627.           - Shift+E will copy several effect rows if pattern has been marked.
  1628.  
  1629. v2.22     - Shift+N will also negate relative wavetable notes.
  1630.           - When converting oldstyle parameters to speedtable entries with
  1631.             SHIFT+RETURN, the speedtable view will shift to the new entry if
  1632.             one was created.
  1633.  
  1634. v2.23     - Fixed SHIFT+INS in wavetable (inserts $E9 $00 now as it should).
  1635.           - Added SHIFT+U to unlock table scrolling.
  1636.           - Added SHIFT+F5/F6 to change speed multiplier.
  1637.  
  1638. v2.24     - Added SHIFT+F7 to edit the hardrestart ADSR parameter.
  1639.           - Added SHIFT+F8 to switch between 6581 and 8580 SID models.
  1640.  
  1641. v2.25     - Added detail to table overflow error message in relocator.
  1642.           - Added stop of playback if a tablepointer gets pointed directly to a
  1643.             jump (would bug in packed/relocated tune).
  1644.           - Added relocator error message for the above case.
  1645.           - Added relocator error message for illegal song restart position.
  1646.           - Not possible to save erroneous packed/relocated songs anymore
  1647.             (now that there is adequate error location).
  1648.           - Added SHIFT+,. to move song startposition on all channels and
  1649.             restart last playmode.
  1650.  
  1651. v2.26     - Fixed relocator complaining of FF parameter in speedtable.
  1652.           - To increase stability, in multispeed mode relocator does not use the
  1653.             "same gatetimer/1st wave" optimization.
  1654.           - Changed Shift+O to optimize the currently edited table, not just
  1655.             speedtable.
  1656.           - Added an option to optimize everything with the SHIFT+ESC clear
  1657.             function. This clears unused patterns, instruments and table-entries.
  1658.  
  1659. v2.27     - Fixed optimize function with different pattern lengths.
  1660.           - Added marking & copy/pasting orderlist data like patterns & tables.
  1661.  
  1662. v2.28     - Added sort of mouse control.
  1663.           - Sound reinitialization when changing multiplier or other parameters
  1664.             is now faster.
  1665.  
  1666. v2.29Beta - Internal reorganization.
  1667.           - New assembler-based relocator that leaves out unused portions of
  1668.             player code.
  1669.           - Instead of choosing a player version, one can choose combinations
  1670.             of player features.
  1671.           - Relocator does not save selfcontained duplicate parts of tables.
  1672.           - Added keys 0-9 & A-Z in the fileselector to move to the
  1673.             corresponding part of the filelist (if found).
  1674.           - Added SHIFT+H to calculate left/right shifted "hifi" speedtable
  1675.             values, according to the frequency of a note.
  1676.  
  1677. v2.3      - Fixed songdata optimize function.
  1678.           - Fixed relocator with no-hardrestart instrument in slot 1.
  1679.           - Fixed relocator handling of effect C (Set cutoff).
  1680.  
  1681. v2.31     - Fixed effect copy/paste.
  1682.           - Added possibility to disable pulseskipping with /O command line
  1683.             option. Warning: causes huge rastertime increase.
  1684.           - Tempo 2 is allowed. See the tips section (3.6) for details.
  1685.  
  1686. v2.32     - Maximum pattern length increased to 128. Do not complain of
  1687.             "pattern too complex" errors :)
  1688.           - Optimized playroutine init in case of only 1 subtune.
  1689.  
  1690. v2.33     - Fixed a bug where relocator was checking pattern 208 (illegal).
  1691.           - Optimized playroutine in case there is no keyoff/keyon used.
  1692.           - Optimized playroutine in case there are no pattern effects used.
  1693.           - Optimized playroutine channel variables in case there is no
  1694.             transpose, repeat, wavedelay and pattern effects.
  1695.           - If not using the last instrument (63), you can control song
  1696.             startup default tempo by using its Attack/Decay parameter.
  1697.  
  1698. v2.34     - Added relocator optimization for using 1 or 2 channels only. To
  1699.             enable, you must use only channels 1 or 1,2 and not be using sound
  1700.             effect support or zeropage ghostregs.
  1701.           - Turning off buffered writes in relocator options works now even
  1702.             if sound effects or zeropage ghostregs are selected (they will be
  1703.             turned off too).
  1704.  
  1705. v2.35     - Auto-creation of speedtable entries will always generate a new
  1706.             entry (except for song loading), duplicate values will be optimized
  1707.             by the relocator.
  1708.           - Pressing SHIFT+RETURN over a speedtable-using pattern command while
  1709.             the parameter is zero, goes to the next empty speedtable entry and
  1710.             sets the command parameter to point to that entry.
  1711.  
  1712. v2.4      - Added one bit of accuracy to pulse modulation speed. A new song-
  1713.             format (identifier GTS4) reflects this, old songs will be converted
  1714.             upon loading.
  1715.           - Added possibility to execute pattern commands from the wavetable.
  1716.  
  1717. v2.41     - Fixed player code assembly errors when using some pattern commands
  1718.             only from the wavetable.
  1719.           - Fixed player code bug with command B when command A is not used.
  1720.           - Fixed SHIFT+O removing table entries pointed to from wavetable
  1721.             pattern commands.
  1722.  
  1723. v2.42     - Fixed frequency table size determination.
  1724.           - Changed behaviour of keyoff in pattern editing changed to use
  1725.             releasenote() like the instrument editor.
  1726.           - Added SHIFT+RETURN when parameter is zero to get you into an empty
  1727.             table entry for 8, 9 and A pattern commands as well.
  1728.           - Added adjustment of table views when changing instrument number
  1729.             in unlocked table scrolling mode.
  1730.           - Added RETURN over nonzero instrument number (in patterns) to go
  1731.             editing that instrument.
  1732.  
  1733. v2.43     - Added duplicate pattern detection/removal to song optimize.
  1734.           - Added pattern shrink/expand (SHIFT+O,P).
  1735.           - Added pattern join/split (SHIFT+J,K).
  1736.  
  1737. v2.44     - Fixed editor playroutine to not execute tick n commands, when a
  1738.             command has already been executed through the wavetable.
  1739.  
  1740. v2.45     - Added possibility to disable realtime pattern command optimization
  1741.             at tick 0 (/Rxx command line option or click the "RO" text on the
  1742.             statusbar) for tempo-independent portamento & vibrato.
  1743.           - To make room on the status bar for the realtime optimization
  1744.             status indicator, finevibrato & pulse optimization indicators have
  1745.             been shortened to "FV" and "PO".
  1746.  
  1747. v2.46     - Added transpose of speedtable portamento speeds (SHIFT+Q,A,W,S)
  1748.             SHIFT+W,S (octave transpose, multiply/divide by 2) also work in
  1749.             pulse & filtertable.
  1750.           - When editing the wavetable, RETURN & SHIFT+RETURN work for wave-
  1751.             table executed commands as in patterns (go to table position
  1752.             pointed by command, create new speedtable entries)
  1753.  
  1754. v2.47     - Added experimental random delay to write of reSID registers, in
  1755.             order to make potential ADSR-bugging on C64 audible. The
  1756.             amount of delay in cycles can be adjusted with /Z command line
  1757.             option.
  1758.           - SHIFT+L in pulsetable creates repeated "set tempo" commands if
  1759.             speed is greater than 127.
  1760.  
  1761. v2.48     - Fixed playroutine to use configurable baseaddress again.
  1762.  
  1763. v2.49     - Added /G command line option, guard 1stwave/gatetimer parameters.
  1764.             When this is on (default), only silent waveforms can be entered
  1765.             as firstwave (only thing that makes sense) and editing gatetimer
  1766.             of one instrument affects all of them, as otherwise bugs in
  1767.             playback result easily. Use /G0 to turn off.
  1768.  
  1769. v2.5      - Fixed "optimize everything" removing the tempo setting in
  1770.             instrument 63.
  1771.           - Fixed default tempo of multispeed tunes in packer/relocator.
  1772.  
  1773. v2.51     - Fixed packing of empty patterns when not using any effects.
  1774.           - Fixed differing gatetimer value in instruments causing playback
  1775.             going out of sync.
  1776.           - /G command line option no longer has to keep gatetimer values the
  1777.             same.
  1778.           - Added high bit of gatetimer value to control whether wavetable
  1779.             execution starts right on the note init frame. If used, will cause
  1780.             significant rastertime increase.
  1781.  
  1782. v2.52     - SHIFT+ENTER in orderlist view takes the next available pattern
  1783.             if pressed on a repeat or transpose command.
  1784.           - Added SHIFT+SPACE in pattern editor to start playback on a specific
  1785.             pattern row.
  1786.  
  1787. v2.53     - Fixed F3 to always play the currently visible patterns.
  1788.           - Added BACKSPACE in the orderlist editor to set playback end position.
  1789.             Only effective when starting playback from position, not beginning.
  1790.  
  1791. v2.54     - Fixed SHIFT+F3.
  1792.           - Changed SHIFT+, . to update the pattern view.
  1793.           - Changed SHIFT+SPACE to remain in pattern playback mode, if it was
  1794.             active.
  1795.  
  1796. v2.55     - Added BACKSPACE in the fileselector to go to the parent dir.
  1797.  
  1798. v2.56     - Song filename cleared on songdata erase.
  1799.           - Added /F to set custom SID clock frequency.
  1800.           - Graphics output routines no longer compare text screen buffer to 
  1801.             previous to find out if it should be updated.
  1802.             
  1803. v2.57     - Added alternative hardrestart method & playroutine that is used when
  1804.             HR attack parameter is at maximum (FF00 or F800 for example) - this 
  1805.             can in theory give better reliability.
  1806.             
  1807. v2.58     - Cleanup, removal of a few questionable features:
  1808.             * Gatetimer high bit to start wavetable immediately
  1809.             * Guard 1stwave parameter
  1810.             
  1811. v2.59     - Songformat version update (GTS5/GTI5)
  1812.           - Gateoff timer parameter bits control now hardrestart disable ($80)
  1813.             & gateoff disable ($40).
  1814.           - 1stFrame Wave can be any from $01-$8F, $00 to leave both waveform
  1815.             & gateflag unchanged, or $FE / $FF to control gateflag but leave
  1816.             waveform unchanged.
  1817.  
  1818. v2.6      - Fixed pattern default length selection display when decrementing
  1819.             from a length of 100 or higher.
  1820.           - Fixed mouse selection of pattern when adjusting an adjacent channel.
  1821.           - Fixed help screen instructions.
  1822.           - Changed resolution to 800x600.
  1823.           - Changed all songname rows to be displayed at the same time.
  1824.           - Changed mouse control to allow pattern column selection even when
  1825.             left mouse button is held down.
  1826.           - Changed speed of PageUp/PageDown scrolling to be faster.
  1827.           - Optimized graphics output.
  1828.           - BME library is no longer needed.
  1829.  
  1830. v2.61     - Added the backquote key (top-left on keyboard) to select channel
  1831.             in pattern edit mode, and to select table in table edit mode. Use 
  1832.             with SHIFT to go backwards.
  1833.           - Added SHIFT+channel number to mute channels in pattern edit mode.
  1834.           
  1835. v2.62     - Added possibility for realtime calculated note independent (hifi)
  1836.             portamento & vibrato. Warning: has potential for huge rastertime
  1837.             increase.
  1838.             
  1839. v2.63     - Fixed note independent portamento & vibrato to use the last note
  1840.             set in wavetable for calculations, instead of the last note in
  1841.             patterndata.
  1842.             
  1843. v2.64     - Fixed paste in table (SHIFT+V) working also without SHIFT pressed.
  1844.  
  1845. v2.65     - Fixed raw keycodes over 511 interpreted as some other keys in the
  1846.             0-511 range.
  1847.  
  1848. v2.66Beta - Initial cycle-exact HardSID support (Win32 only)
  1849.           - Permit running without sound.
  1850.           
  1851. v2.67     - Configurable cycle-exact HardSID buffer length (separate for inter-
  1852.             active and playback mode, see /T and /U command line options)  
  1853.             
  1854. v2.68     - Fixed set tempo -command overwriting frequencytable in 1 or 2
  1855.             channel modes.
  1856.           - Fixed sound uninit crash with multicore processors (?)
  1857.           - SID register write order tweaked to resemble JCH NewPlayer 21.
  1858.           - Unbuffered playroutine optimized & modified to resemble buffered
  1859.             mode timing more.
  1860.           - New reSID-fp engine (with distortion & nonlinearity) from Antti
  1861.             Lankila integrated. Activated with /I command line option parameters
  1862.             2 & 3.
  1863.           - Command quick reference by Simon Bennett included.
  1864.           
  1865. v2.69     - Fixed click bug in reSID audio output.
  1866.           - Newest reSID-fp code integrated.
  1867.           - reSID-fp filter parameters adjustable from the configuration file.
  1868.  
  1869. v2.70     - Hotfix for the new HardSID UPlay/Uno devices from TΘli Sßndor.
  1870.           - Fixed possible crash on some versions of the HardSID dll.
  1871.  
  1872. v2.71     - Added keycode fix patch from Valerio Cannone.
  1873.           - Added fullscreen switch patch from Raine M. Ekman (see /X option)
  1874.           - Added context mode to online help patch from Raine M. Ekman.
  1875.           - Added /G command line option for setting A-4 pitch.This is reSID, a reverse engineered software emulation of the MOS6581 SID
  1876. (Sound Interface Device). This chip was used in the Commodore 64 computer.
  1877.  
  1878. reSID is free software. See the file COPYING for copying permission.
  1879.  
  1880. reSID is a C++ library containing a complete emulation of the SID chip.
  1881. This library can be linked into programs emulating the MOS6510 MPU to
  1882. play music made for the Commodore 64 computer. reSID has been successfully
  1883. linked into VICE, a full-fledged Commodore 64 emulator, and SIDPLAY, a
  1884. popular SID tune player. The VICE home page is:
  1885. http://www.cs.cmu.edu/~dsladic/vice/
  1886. A patch for SIDPLAY can be found on the SIDPLAY home page:
  1887. http://www.geocities.com/SiliconValley/Lakes/5147/
  1888.  
  1889. Various SID emulators exist, however reSID should still be of great
  1890. interest to Commodore 64 nostalgics. The emulator engine is cycle-based,
  1891. emulating the internal operations of the SID chip. SID's audio filter is
  1892. modeled as an actual two-integrator-loop biquadratic filter circuit.
  1893. The engine has been developed based on available information on SID, sampling
  1894. of the OSC3 and ENV3 registers, filter theory, and meticulous testing.
  1895. In short, a scientific approach has been taken to model the SID chip as
  1896. accurately as possible.
  1897.  
  1898. To our knowledge reSID is by far the most accurate SID emulator ever created.
  1899. This comes at a price; what is considered a fairly fast CPU at the time of
  1900. this writing is needed to run the emulator.
  1901. Please distribute this file with the SDL runtime environment:
  1902.  
  1903. The Simple DirectMedia Layer (SDL for short) is a cross-platfrom library
  1904. designed to make it easy to write multi-media software, such as games and
  1905. emulators.
  1906.  
  1907. The Simple DirectMedia Layer library source code is available from:
  1908. http://www.libsdl.org/
  1909.  
  1910. This library is distributed under the terms of the GNU LGPL license:
  1911. http://www.gnu.org/copyleft/lesser.html
  1912.  
  1913.