ivanpirog / vortextracker

Music tracker for AY/YM chips
50 stars 14 forks source link

Simple player program for TAP export #7

Open TakuikaNinja opened 1 year ago

TakuikaNinja commented 1 year ago

Currently the ZX Spectrum TAP export is a bare-bones export of the player code & music data. I propose the inclusion of a small program (BASIC + assembly) which can:

I believe this would help users who just want to quickly check their songs in emulators or on real hardware without the hassle of manually coding a player program.

Here is a crude example I coded in BASIC while trying to get playback to work:

  10 LOAD "vtplayer" CODE 49152
  20 LOAD "song" CODE 51310
  30 RANDOMIZE USR 49152: REM INIT
  40 PAUSE 1
  50 RANDOMIZE USR 49157: REM PLAY
  60 GO TO 40
  70 RANDOMIZE USR 49160: REM MUTE

I may attempt to make the player program myself but I figured I should ask about it here first. Update: it seems that there is a separate program called tracker2ay which automatically bundles popular ZXS tracker formats into TAP/TZX files with a similar BASIC player.