taud base note def changed (A3@440Hz)

This commit is contained in:
minjaesong
2026-04-23 23:11:09 +09:00
parent 755afb7df4
commit 8d28bde119
4 changed files with 8 additions and 5 deletions

View File

@@ -10,6 +10,9 @@ const taud = require("taud")
font.setHighRom("A:/tvdos/bin/tautfont_high.chr")
const BUILD_DATE = "260423"
const TRACKER_SIGNATURE = "TsvmTaut"+BUILD_DATE // 14-byte string
const MIDDOT = "\u00FA"
const BIGDOT = "\u00F9"
const BULLET = "\u00847u"

View File

@@ -219,8 +219,8 @@ function captureTrackerDataToFile(outFile) {
numPats & 0xFF, (numPats >>> 8) & 0xFF, // numPatterns Uint16 LE
bpmStored, // BPM with 24 bias
tickRate, // initial tick-rate
0x40,0, // basenote
0x13,0xd0,0x82,0x43, // basefreq
0x00,0x4C, // basenote (0x4C00 -- A3)
0x00,0x00,0xDC,0x43, // basefreq (440 Hz)
0, // padding
]

View File

@@ -904,7 +904,7 @@ def assemble_taud(h: S3MHeader, instruments: list, patterns: list) -> bytes:
num_taud_pats_hi,
bpm_stored,
speed,
) + b'\x40\x00' + b'\x13\xd0\x82\x43' + b'\x00'
) + b'\x00\x4C' + b'\x00\x00\xDC\x43' + b'\x00'
assert len(song_table) == TAUD_SONG_ENTRY
# Cue sheet (using remapped pattern indices)

View File

@@ -2210,8 +2210,8 @@ Rows of 16 bytes:
Uint16 Number of patterns (0 is invalid. pattern bin length = numPats * 8 bytes)
Uint8 Initial BPM (bias of -24. 0x00=24, 0xFF=279)
Uint8 Initial Tickrate (0 is invalid)
Uint16 Current Tuning base note (1..65533), assuming octave 3. C3 (the default value) is 0x4000. If zero, assume the default value
Float32 Frequency at the base note. Default (A440) is 261.6255653. If zero, assume the default value
Uint16 Current Tuning base note (1..65533). A3 (the default value) is 0x4C00. If zero, assume the default value
Float32 Frequency at the base note. Default (A440) is 440.0. If zero, assume the default value
Byte[1] Reserved for future versions
Taud device can queue up to 2 "playdata" in its buffer, which can be interpreted as a song.