Macro layout

From TriloTracker
Jump to: navigation, search
[HEADER]
  00 - Length                          ; length of the marco (0..63)
  01 - Restart                         ; restart position (loop) (0..63)
  02 - Waveform                        ; related waveform (0..31)
[/HEADER]
[ROW] 0..<Length-1>                    ; each row is 4 bytes.
 +00- [  N | ND | ND | Nv | Nv | Nv | Nv | Nv ] 
 +01- [  T | TD | VD | VD | Vv | Vv | Vv | Vv ] 
 +02- [  Tv| Tv | Tv | Tv | Tv | Tv | Tv | Tv ] 
 +03- [  Vl| .. | .. | .. | Tv | Tv | Tv | Tv ]
[/ROW]
N = noise output (1=enabled).
T = tone output (1=enabled).
ND = noise deviation (00=base value, 10=add value, 11=subtract value).
TD = tone deviation (0=add value, 1=subtract value).
Nv = 5bit noise value (0x00-0x1f).
Tv = 12bit tone value (0x000-0xfff).
VD = volume deviation (00=base value, 10=add value, 11=subtract value).
Vv = 4bit volume value (0x0-0xf).
Vl = FM voice link.


Notepad red.png NOTE: Noise only has effect on the PSG.
Waveform only has effect on the SCC.