Skip to content

Releases

Version 0.4.2

Choose a tag to compare

@undisbeliever undisbeliever released this 16 Jul 10:43

Changelog:

  • Fixed no sound in tad-gui on windows if the audio device's sample rate is not 48kHz. #73

Version 0.4.1

Choose a tag to compare

@undisbeliever undisbeliever released this 06 Jul 07:52

Changelog:

  • Fixes no sound effects when playing the blank song (song-id 0).
    Reported by @taradinoc

Version 0.4.0

Choose a tag to compare

@undisbeliever undisbeliever released this 28 Jun 08:45

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 .terrificaudio file format has changed.
    • TAD will automatically convert .terrificaudio files to the new format.
    • The new format is incompatible with TAD v0.3.0 and earlier.

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 VxSRCN BRR sample index.
  • Added main-volume setting to the song-data and bytecode.
    • The echo_i8 bytecode instructions have been renamed to global_i8.

Project Changes:

  • Instruments and samples have been merged to a new BrrSample data 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 and A ADSR envelope commands
    into a single set_instrument_and_adsr bytecode instruction.
  • The MML compiler now merges @ instrument and G GAIN envelope commands
    into a single set_instrument_and_gain bytecode instruction.
  • Added the #MainVolume MML 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

Choose a tag to compare

@undisbeliever undisbeliever released this 10 Apr 10:35

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 wiz dependency and git submodule has been removed.
  • The libsdl2 dependency has been removed.
  • Linux/BSD: ALSA development libraries are now required to compile TAD on Linux/BSD.
    (libasound2-dev on Debian/Ubuntu/Mint or alsa-lib-devel on 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 cpal crate 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-point or --dupe-block-hack arguments.

Version 0.2.0

Choose a tag to compare

@undisbeliever undisbeliever released this 31 Dec 09:03

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 !s will add +4 semitones to the notes in !s (unless the subroutine contains a _ or __ command).
    • _0 c [__+1 c]3 will now play c c+ d d+
    • To restore the old transpose behaviour, either add an #OldTraspose MML header or replace _ with
      _M and __ with __M.
  • MP vibrato and MD detune 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 wav2brr input size

Instrument changes:

  • Added a way to set the first and last note for an instrument in the samples tab

Driver changes:

  • Added portamento_calc and portamento_pitch_calc instructions 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_transpose and adjust_transpose bytecode instructions.
  • 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 #ZenLen or #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 !s will add +4 semitones to the notes in !s (unless the subroutine contains a _ or __ command).
    • _0 c [__+1 c]3 will now play c c+ d d+
  • Added _M channel transpose and __M adjust channel transpose MML commands
  • Added #OldTranspose header to restore the v0.1.1 and earlier transpose behaviour
    by silently converting _ and __ commands to _M and __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 #Transpose header (equivalent to adding _M to the start of every channel and subroutine)
  • Added #KeySignature header (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
    • MP and MD will output an error
  • Improved out-of-range note testing
  • Fixed missing no-instrument error in P pitch or N noise 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 r rest commands now merge into a rest then wait. (The wait bytecode instruction uses less spc700 CPU time than rest instruction)
  • w waits after r rest are now merged by the MML parser. For example r w r w r will be merged into r 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_calc and play_noise.

65816 APIs:

  • Added asar API
  • Moved public lowram variables so they are before the TadPrivate variables

tad-compiler:

  • Added asar-enums command
  • Added asar-export command

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 Pre-release
Pre-release

Choose a tag to compare

@undisbeliever undisbeliever released this 30 Nov 10:55

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
    • MP and MD will output an error
  • Improved out-of-range note testing
  • Fixed missing no-instrument error in P pitch or N noise 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 r rest commands now merge into a rest then wait. (The wait bytecode instruction uses less spc700 CPU time than rest instruction)
  • w waits after r rest are now merged by the MML parser. For example r w r w r will be merged into r 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_calc and play_noise.

Version 0.2.0 beta

Version 0.2.0 beta Pre-release
Pre-release

Choose a tag to compare

@undisbeliever undisbeliever released this 06 Oct 06:31

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 !s will add +4 semitones to the notes in !s (unless the subroutine contains a _ or __ command).
    • _0 c [__+1 c]3 will now play c c+ d d+
    • To restore the old transpose behaviour, either add an #OldTranspose MML header or replace _ with _M and __ with __M.
  • MP vibrato cannot be used in a song that contains a _, __, set_transpose or adjust_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_transpose or adjust_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 #ZenLen or #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 !s will add +4 semitones to the notes in !s (unless the subroutine contains a _ or __ command).
    • _0 c [__+1 c]3 will now play c c+ d d+
  • Added _M channel transpose and __M adjust channel transpose MML commands
  • Added #OldTranspose header to restore the v0.1.1 and earlier transpose behaviour by silently converting _ and __ commands to _M and __M.
  • Added _{} change key signature command
  • Added = natural to MML notes (ignores the key signature)
  • Added #Transpose header (equivalent to adding _M to the start of every channel and subroutine)
  • Added #KeySignature header (equivalent to adding _{} to the start of every channel and subroutine)

Driver changes:

  • Added portamento_calc and portamento_pitch_calc instructions 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_transpose and adjust_transpose bytecode instructions.

BRR changes:

  • Increased the maximum BRR sample size
  • Increased the maximum wav2brr input size

v0.1.1

Choose a tag to compare

@undisbeliever undisbeliever released this 21 Jun 01:16

MML changes:

  • Added an optional delay_in_ticks argument to the ~ and MP vibrato commands
  • Added the K0 disable key-off MML command, allowing key-on without key-off
    (Q quantized notes will still key-off)
  • Added the K1 and K enable 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_pmod and disable_noise have been combined into a single 2-byte instruction.
    The bytecode assembly is unchanged.
  • Added set_vibrato_with_delay instruction
  • Added keyon_next_note instruction

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

waveform screenshot

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

vibrato delay spectrogram

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

v0.1.1-beta.1 Pre-release
Pre-release

Choose a tag to compare

@undisbeliever undisbeliever released this 24 Mar 11:29

MML changes:

  • Added an optional delay_in_ticks argument to the ~ and MP vibrato commands
  • Added the K0 disable key-off MML command, allowing key-on without key-off
    (Q quantized notes will still key-off)
  • Added the K1 and K enable key-off MML commands

Bytecode changes:

  • enable_pmod, disable_pmod and disable_noise have been combined into a single 2-byte instruction.
    The bytecode assembly is unchanged.
  • Added set_vibrato_with_delay instruction
  • Added keyon_next_note instruction

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

waveform screenshot

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

vibrato delay spectrogram

v0.1.0

Choose a tag to compare

@undisbeliever undisbeliever released this 01 Mar 11:24

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 LoaderDataType format
    • Removed SKIP_ECHO_BUFFER_RESET_BIT
    • Changed PLAY_SONG_BIT
    • Added SURROUND_FLAG_BIT
    • Added RESET_GLOBAL_VOLUMES_BIT
  • 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_GetStereoFlag functions
    • Added TadAudioMode enum
    • Added public tad_audioMode variable
    • Tad_flags is now a public variable
    • The RELOAD_COMMON_AUDIO_DATA flag is now checked and cleared in Tad_LoadSong
    • Added RESET_GLOBAL_VOLUMES_ON_SONG_START flag
      • 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)
  • 64tass API changes:
    • tad-variables-private.inc has been renamed to tad-lowram.inc
    • tad-variables-public.inc has been renamed to tad-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_feedback and adjust_echo_feedback instructions
  • Added set_fir_filter, set_fir_tap and adjust_fir_tap instructions
  • Added limit to adjust echo feedback and adjust FIR tap instructions
  • Added set_channel_invert instruction (i MML command)
  • Added set_echo_invert instruction (\ei MML command)
  • Added maximum echo delay to the driver
  • Added set_echo_delay instruction (\edl MML command)
  • The : skip_last_loop can 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 the SET_GLOBAL_MUSIC_VOLUME, SET_GLOBAL_SFX_VOLUME and SET_GLOBAL_VOLUMES IO commands.)
  • Fixed an audible glitch after a PAUSE or PAUSE_MUSIC_PLAY_SFX IO Command.
  • Increased maximum song tick clock to 256 (#Timer MML header and T MML command).
    • A SET_SONG_TIMER IO command with a 0 parameter will set the song tick clock to 256.

MML changes:

  • #EchoVolume now accepts a stereo input
  • #EchoVolume only accepts unsigned (0 - 127) values
  • Added #EchoInvert header
  • Added global echo commands
  • Added #MaxEchoLength header
  • The \asm command requires a space after \asm (breaking change)
  • <ticks> arguments now can be prefixed with l to specify MML lengths instead of tick numbers.
    For example:
    • ql16,18 is equal to q6,18 with a 96 ZenLen
    • Vs+100,l2 is equal to Vs+100,48 with a 96 ZenLen
  • Added ( decrement volume command
  • Added ) increment volume command
  • MD automatic detune range is now +/- 1200 cents
  • A v, V, p or px command 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_QueueCommand and Tad_QueueCommandOverride can now queue IO commands with 2 parameters.
  • Added SET_GLOBAL_MUSIC_VOLUME, SET_GLOBAL_SFX_VOLUME and SET_GLOBAL_VOLUMES IO Commands
  • Added Tad_audioMode global variable and TadAudioMode enum.
    • The old subroutines for setting the audio mode have been removed.
  • Tad_flags is now a public variable
  • The RELOAD_COMMON_AUDIO_DATA flag is now checked and cleared in Tad_LoadSong
  • Added RESET_GLOBAL_VOLUMES_ON_SONG_START flag
  • Added a way to override the default values (see the API's readme file for more details)
  • Renamed SET_SONG_TEMPO IO command to SET_SONG_TIMER (to match the #Timer MML 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