Repository navigation
Releases
Version 0.4.2
Changelog:
- Fixed no sound in tad-gui on windows if the audio device's sample rate is not 48kHz. #73
Version 0.4.1
Changelog:
- Fixes no sound effects when playing the blank song (song-id 0).
Reported by @taradinoc
Version 0.4.0
Version 0.4.0 combines instrument and sample lists into a single BrrSample list and rewrites the samples tab.
To simplify sample creation, the new samples tab automatically tunes newly created samples and allows the user to drag & drop an external file into the samples list.
20260628-new-samples-tab.mp4
Changelog
BREAKING CHANGES::
- The
.terrificaudiofile format has changed.- TAD will automatically convert
.terrificaudiofiles to the new format. - The new format is incompatible with TAD v0.3.0 and earlier.
- TAD will automatically convert
Audio driver changes:
- The 256 pitch table entry limit has been removed.
The pitch table offset is now 16-bit. - The instrument ID is now equal to the S-DSP
VxSRCNBRR sample index. - Added main-volume setting to the song-data and bytecode.
- The
echo_i8bytecode instructions have been renamed toglobal_i8.
- The
Project Changes:
- Instruments and samples have been merged to a new
BrrSampledata structure.- Sample source, pitch-table and envelope data are now separate structs.
- TAD v0.4.0 projects are not compatible with 0.3.0 and below.
GUI changes:
- The samples tab has been rewritten.
- Added a "Open new sample" button to the samples tab (located above the sample list).
- The samples tab now automatically tunes the sample after opening the source file.
- Added drag and drop files to the samples tab.
- Dragging a single file onto the samples tab list will create a new sample using that file.
- Files cannot be dragged into the editor widget.
- The sample analyser window and samples tab have been merged.
- The sample analyser spectrum now uses logarithmic scaling.
- Fixed the sample analyser outputting a 0Hz peak on biased samples
(ie, a square wave with no negative values).
MML Changes:
- The MML compiler now merges
@instrument andAADSR envelope commands
into a singleset_instrument_and_adsrbytecode instruction. - The MML compiler now merges
@instrument andGGAIN envelope commands
into a singleset_instrument_and_gainbytecode instruction. - Added the
#MainVolumeMML header. - Added
\mvol,\mvol+and\mvol-MML commands (set/increment/decrement main volume).
Bytecode assembly changes:
- Added
set_main_volume. - Added
adjust_main_volume. - Added
adjust_main_volume_limit.
BRR encoder changes:
- Dupe-block-hack now accepts non-zero loop points.
Version 0.3.0
This version does not add new features, instead I made 2 major back end changes: The audio driver has been ported to spc-700 assembly and tad-gui now uses the cpal crate to play audio.
Details about the assembly port can be found on my website.
BREAKING CHANGES:
- TAD now requires rust 1.85 or higher.
- The
wizdependency and git submodule has been removed. - The
libsdl2dependency has been removed. - Linux/BSD: ALSA development libraries are now required to compile TAD on Linux/BSD.
(libasound2-devon Debian/Ubuntu/Mint oralsa-lib-develon Fedora)
Changelog:
- The audio driver has been ported to spc-700 assembly using a custom made spc-700 assembler.
- The new audio driver is byte identical to the wiz audio driver.
- The audio thread now resamples the emulated TAD output to a 48000Hz sample rate.
- tad-gui now uses the
cpalcrate to play audio.
Bugfixes:
- Fixed transposition analysis in the compiler.
- Fixed a panic in the sample analyser window when analysing a small non-looping sample.
- Fixed wav2brr unable to parse
--loop-pointor--dupe-block-hackarguments.
Version 0.2.0
This release stabilises the _ and __ MML transpose breaking change, the _{} change key signature command and the new 16-bit countdown timer from v0.2.0 beta releases.
Changes (since v0.1.1)
BREAKING CHANGES:
_and__MML transpose commands now change a semitone offset inside the audio driver._and__transpose now affect loops and subroutines._+4 !swill add +4 semitones to the notes in!s(unless the subroutine contains a_or__command)._0 c [__+1 c]3will now playc c+ d d+- To restore the old transpose behaviour, either add an
#OldTrasposeMML header or replace_with
_Mand__with__M.
MPvibrato andMDdetune cents cannot be used when driver transpose is active.- A portamento's slide length has a maximum 255 ticks when driver transpose is active.
- The audio driver sleep countdownTimer is now a 16-bit value
- Bytecode instructions that sleep are variable sized and can hold an 8-bit or 16-bit duration/length argument
- The maximum length of an MML command is 65535 ticks (after commands have been merged)
BRR changes:
- Increased the maximum BRR sample size
- Increased the maximum
wav2brrinput size
Instrument changes:
- Added a way to set the first and last note for an instrument in the samples tab
Driver changes:
- Added
portamento_calcandportamento_pitch_calcinstructions that can
automatically calculate the portamento velocity if the pitch slide is <= 255
ticks long. - Added a transpose semitone offset to all play-note and portamento-note instructions
- The transpose setting can be changed with the
set_transposeandadjust_transposebytecode instructions.
- The transpose setting can be changed with the
- The audio driver sleep countdownTimer is now a 16-bit value
- Bytecode instructions that sleep are now variable sized and can hold an 8-bit or 16-bit duration/length argument
- The key-off logic has been rewritten
MML changes:
- Fixed a typo in the MML syntax document
- The default whole note length can be set with
#ZenLenor#Zenlen #headers can now be lower case or lower camel case
(ie,#title,#echolength,#echoLength)#headers can now contain hexadecimal numbers- Duplicate header error messages show the line of the original header
- Portamentos can now be played in a subroutine with an unknown instrument.
_and__transpose commands now change a semitone offset inside the driver._+4 !swill add +4 semitones to the notes in!s(unless the subroutine contains a_or__command)._0 c [__+1 c]3will now playc c+ d d+
- Added
_Mchannel transpose and__Madjust channel transpose MML commands - Added
#OldTransposeheader to restore the v0.1.1 and earlier transpose behaviour
by silently converting_and__commands to_Mand__M. - Added
_{}change key signature command - Added major and minor scales to the
_{}key signature command - Added
=natural to MML notes (ignores the key signature) - Added
#Transposeheader (equivalent to adding_Mto the start of every channel and subroutine) - Added
#KeySignatureheader (equivalent to adding_{}to the start of every channel and subroutine) - Fixed malformed MML taking too long to compile by limiting unlooped waits or rests to 8192 ticks.
- Added a driver-transpose and instrument-tuning loop analysis step to the compiler.
If a loop changes the instrument tuning or enables driver transpose:- Portamento velocity will be calculated by the audio driver and the portamento's slide length will have a maximum 255 ticks
MPandMDwill output an error
- Improved out-of-range note testing
- Fixed missing no-instrument error in
Ppitch orNnoise commands - The maximum length of an MML command is 65535 ticks (after commands have been merged)
- Long MML commands and no-longer converted into loops
- Multiple
rrest commands now merge into a rest then wait. (Thewaitbytecode instruction uses less spc700 CPU time thanrestinstruction) wwaits afterrrest are now merged by the MML parser. For exampler w r w rwill be merged intor w1.- A rest immediately after an unslurred note is silently converted into a wait
- Continue compiling songs after subroutine errors
Bytecode assembly changes:
- The maximum length of a
<duration>argument is 65535 ticks - Improved out-of-range note testing in bytecode assembly sound effects
- Fixed missing no-instrument error in
play_pitch,portamento_pitch,portamento_pitch_calcandplay_noise.
65816 APIs:
- Added asar API
- Moved public lowram variables so they are before the
TadPrivatevariables
tad-compiler:
- Added
asar-enumscommand - Added
asar-exportcommand
GUI changes:
- Improved the unsaved changes dialogs
- Fixed set start ticks to cursor button (F9)
- Added a search bar to the editors (Ctrl+F)
- Added find & replace to the editors (Ctrl+R)
- Added a lag counter to the Audio Driver State window (F11)
- Added wavelength input to the instrument editor
SPC export changes:
- The default fadeout is now 8 seconds if the song loops
Version 0.2.0 beta 2
Version 0.2.0 beta 2
This testing release adds 2 transpose analysis passes to the MML compiler, allowing it to detect out-of-range notes caused by driver-transpose. It also changes the bytecode format to accept 8 and 16 bit durations, increasing the maximum instruction sleep length to 65535 ticks.
Changelog
BREAKING CHANGES:
- The audio driver sleep countdownTimer is now a 16-bit value
- Bytecode instructions that sleep are variable sized and can hold an 8-bit or 16-bit duration/length argument
- The maximum length of an MML command is 65535 ticks (after commands have been merged)
Driver changes:
- The audio driver sleep countdownTimer is now a 16-bit value
- Bytecode instructions that sleep are now variable sized and can hold an 8-bit or 16-bit duration/length argument
- The key-off logic has been rewritten
MML changes:
- Fixed malformed MML taking too long to compile by limiting unlooped waits or rests to 8192 ticks.
- Added a driver-transpose and instrument-tuning loop analysis step to the compiler.
If a loop changes the instrument tuning or enables driver transpose:- Portamento velocity will be calculated by the audio driver and the portamento's slide length will have a maximum 255 ticks
MPandMDwill output an error
- Improved out-of-range note testing
- Fixed missing no-instrument error in
Ppitch orNnoise commands - The maximum length of an MML command is 65535 ticks (after commands have been merged)
- Long MML commands and no-longer converted into loops
- Multiple
rrest commands now merge into a rest then wait. (Thewaitbytecode instruction uses less spc700 CPU time thanrestinstruction) wwaits afterrrest are now merged by the MML parser. For exampler w r w rwill be merged intor w1.- A rest immediately after an unslurred note is silently converted into a wait
Bytecode assembly changes:
- The maximum length of a
<duration>argument is 65535 ticks - Improved out-of-range note testing in bytecode assembly sound effects
- Fixed missing no-instrument error in
play_pitch,portamento_pitch,portamento_pitch_calcandplay_noise.
Version 0.2.0 beta
This beta build was released to open the new _ and __ transpose behaviour for public testing. It is not fully implemented yet.
If a song uses _ or __ transpose then portamento pitch calculations and MP vibrato are disabled. The restriction will be relaxed in the next release.
_ and __ transpose now changes a setting inside the audio driver, allowing it to be used in subroutines and loops.
This is a breaking change. To restore the old transpose behaviour either add an #OldTranspose MML header or replace _ with _M and __ with __M.
20251006a-transpose.mp4
Version 0.2.0 also adds a _{} change key signature MML command.
20251006b-key-signature.mp4
Changelog
BREAKING CHANGES:
_and__MML transpose commands now change a semitone offset inside the audio driver._and__transpose now affect loops and subroutines._+4 !swill add +4 semitones to the notes in!s(unless the subroutine contains a_or__command)._0 c [__+1 c]3will now playc c+ d d+- To restore the old transpose behaviour, either add an
#OldTransposeMML header or replace_with_Mand__with__M.
MPvibrato cannot be used in a song that contains a_,__,set_transposeoradjust_transpose.
(This restriction will be relaxed in the next production release.)- A portamento's slide length has a maximum 255 ticks if the song contains a
_,__,set_transposeoradjust_transpose.
(This restriction will be relaxed in the next production release.)
MML changes:
- Fixed a typo in the MML syntax document
- The default whole note length can be set with
#ZenLenor#Zenlen #headers can now be lower case or lower camel case (ie,#title,#echolength,#echoLength)- Duplicate header error messages show the line of the original header
- Portamentos can now be played in a subroutine with an unknown instrument.
_and__transpose commands now change a semitone offset inside the driver._+4 !swill add +4 semitones to the notes in!s(unless the subroutine contains a_or__command)._0 c [__+1 c]3will now playc c+ d d+
- Added
_Mchannel transpose and__Madjust channel transpose MML commands - Added
#OldTransposeheader to restore the v0.1.1 and earlier transpose behaviour by silently converting_and__commands to_Mand__M. - Added
_{}change key signature command - Added
=natural to MML notes (ignores the key signature) - Added
#Transposeheader (equivalent to adding_Mto the start of every channel and subroutine) - Added
#KeySignatureheader (equivalent to adding_{}to the start of every channel and subroutine)
Driver changes:
- Added
portamento_calcandportamento_pitch_calcinstructions that can automatically calculate the portamento velocity if the pitch slide is <= 255 ticks long. - Added a transpose semitone offset to all play-note and portamento-note instructions.
- The transpose setting can be changed with the
set_transposeandadjust_transposebytecode instructions.
- The transpose setting can be changed with the
BRR changes:
- Increased the maximum BRR sample size
- Increased the maximum
wav2brrinput size
v0.1.1
MML changes:
- Added an optional delay_in_ticks argument to the
~andMPvibrato commands - Added the
K0disable key-off MML command, allowing key-on without key-off
(Qquantized notes will still key-off) - Added the
K1andKenable key-off MML commands - A broken chord can now be slurred.
{{ceg}}&will slur the last note in the broken chord loop.
Bytecode changes:
enable_pmod,disable_pmodanddisable_noisehave been combined into a single 2-byte instruction.
The bytecode assembly is unchanged.- Added
set_vibrato_with_delayinstruction - Added
keyon_next_noteinstruction
GUI changes:
- Added FFT offset and size widgets to the sample analyser window
This release adds
A way to key-on notes without key-off (K0 disables key-off in MML).
CAUTION: This can cause popping for some samples and/or envelopes.
c c c r8 K0 c c c
An optional delay to vibrato that delays vibrato on every note.
A MP150,2,16 c d e r8
A ~80,2,16 c d e r8
Broken chords can now be slurred. The last note in the broken-chord loop will be slurred (no key-off).
A {{ceg}} & {{gbd}} & r w
A {{ceg}},,0 & {{gbd}},,0 & r w
v0.1.1-beta.1
MML changes:
- Added an optional delay_in_ticks argument to the
~andMPvibrato commands - Added the
K0disable key-off MML command, allowing key-on without key-off
(Qquantized notes will still key-off) - Added the
K1andKenable key-off MML commands
Bytecode changes:
enable_pmod,disable_pmodanddisable_noisehave been combined into a single 2-byte instruction.
The bytecode assembly is unchanged.- Added
set_vibrato_with_delayinstruction - Added
keyon_next_noteinstruction
This release adds
A way to key-on notes without key-off (K0 disables key-off in MML)
c c c r8 K0 c c c
An optional delay to vibrato that delays vibrato on every note.
A MP150,2,16 c d e r8
A ~80,2,16 c d e r8
v0.1.0
This release stabilises the MML and bytecode assembly syntax and behaviour.
CAUTION: The loader and 65816 APIs have changed. If you are using a 65816 API, you will need to update it.
Changelog
Breaking Changes:
- Subroutine file header is now MML containing sound effect subroutines
- Changed
LoaderDataTypeformat- Removed
SKIP_ECHO_BUFFER_RESET_BIT - Changed
PLAY_SONG_BIT - Added
SURROUND_FLAG_BIT - Added
RESET_GLOBAL_VOLUMES_BIT
- Removed
- Removed
blank-song.bin(Tad_BlankSong_Bin).
The blank song is now a single zero byte embedded in the ca65/64tass/pvsneslib API code. - The song data format has changed.
- API changes:
- Removed
Tad_SetMono,Tad_SetStereo,Tad_GetStereoFlagfunctions - Added
TadAudioModeenum - Added public
tad_audioModevariable Tad_flagsis now a public variable- The
RELOAD_COMMON_AUDIO_DATAflag is now checked and cleared inTad_LoadSong - Added
RESET_GLOBAL_VOLUMES_ON_SONG_STARTflag- Useful for when a level or menu lowers the volume and the global volumes are normally at maximum.
- Private variables and functions are now prefixed with
TadPrivate_(tadPrivate_for PvSnesLib API)
- Removed
- 64tass API changes:
tad-variables-private.inchas been renamed totad-lowram.inctad-variables-public.inchas been renamed totad-zeropage.inc
Audio driver changes:
- Stereo echo volume
- If audio mode is mono, the two channels will be averaged together
- Added set echo volume instructions
- Added adjust echo volume instructions
- Added
set_echo_feedbackandadjust_echo_feedbackinstructions - Added
set_fir_filter,set_fir_tapandadjust_fir_tapinstructions - Added limit to adjust echo feedback and adjust FIR tap instructions
- Added
set_channel_invertinstruction (iMML command) - Added
set_echo_invertinstruction (\eiMML command) - Added maximum echo delay to the driver
- Added
set_echo_delayinstruction (\edlMML command) - The
:skip_last_loopcan now jump more than 256 bytes - Added sound effect subroutines
- Sound effects playing noise will mute music noise.
- Added surround audio mode
- Surround mode allows for the left or right channels to be individually inverted.
- In stereo mode, the left and right channels are both inverted if the mono invert-flag is set.
- Added global music and sound-effect volumes.
(See theSET_GLOBAL_MUSIC_VOLUME,SET_GLOBAL_SFX_VOLUMEandSET_GLOBAL_VOLUMESIO commands.) - Fixed an audible glitch after a
PAUSEorPAUSE_MUSIC_PLAY_SFXIO Command. - Increased maximum song tick clock to 256 (
#TimerMML header andTMML command).- A
SET_SONG_TIMERIO command with a 0 parameter will set the song tick clock to 256.
- A
MML changes:
#EchoVolumenow accepts a stereo input#EchoVolumeonly accepts unsigned (0 - 127) values- Added
#EchoInvertheader - Added global echo commands
- Added
#MaxEchoLengthheader - The
\asmcommand requires a space after\asm(breaking change) <ticks>arguments now can be prefixed withlto specify MML lengths instead of tick numbers.
For example:ql16,18is equal toq6,18with a 96 ZenLenVs+100,l2is equal toVs+100,48with a 96 ZenLen
- Added
(decrement volume command - Added
)increment volume command MDautomatic detune range is now +/- 1200 cents- A
v,V,porpxcommand without a parameter is now an error
GUI changes:
- Fixed a rust bytecode interpreter desync where global instructions were executed in the wrong order.
- Fixed play-from-cursor not playing the note immediately after the cursor
- Fixed a sound effect containing a new-sound-effect token (
\n===) not saving and loading correctly.
The new-sound-effect token will be silently transformed into a comment when the sound-effects file is saved to disk. - Added audio driver state sub-window (F11).
- Fixed F9 keyboard shortcut conflict
- F9 copies cursor position to the song start position in the song tab
- Shift+F9 copies the cursor position to the song start position and mutes the other channels
- F10 opens the sound effects window
- F11 opens the audio driver state window
API changes:
Tad_QueueCommandandTad_QueueCommandOverridecan now queue IO commands with 2 parameters.- Added
SET_GLOBAL_MUSIC_VOLUME,SET_GLOBAL_SFX_VOLUMEandSET_GLOBAL_VOLUMESIO Commands - Added
Tad_audioModeglobal variable andTadAudioModeenum.- The old subroutines for setting the audio mode have been removed.
Tad_flagsis now a public variable- The
RELOAD_COMMON_AUDIO_DATAflag is now checked and cleared inTad_LoadSong - Added
RESET_GLOBAL_VOLUMES_ON_SONG_STARTflag - Added a way to override the default values (see the API's readme file for more details)
- Renamed
SET_SONG_TEMPOIO command toSET_SONG_TIMER(to match the#TimerMML header)
Known Bugs
- Sample Analyser spectrum can only analyse the first 32768 samples in a long BRR sample
- The driver state window does not work if the song contains an error

