<feed xmlns='http://www.w3.org/2005/Atom'>
<title>oot/tools/audio, branch main</title>
<subtitle>Decompilation of The Legend of Zelda: Ocarina of Time</subtitle>
<link rel='alternate' type='text/html' href='https://git.dog6.net/oot/'/>
<entry>
<title>Audio: Fix note values (#2716)</title>
<updated>2026-03-09T21:22:28+00:00</updated>
<author>
<name>Tharo</name>
<email>tharo10600@gmail.com</email>
</author>
<published>2026-03-09T21:22:28+00:00</published>
<link rel='alternate' type='text/html' href='https://git.dog6.net/oot/commit/?id=970af5600ad343a33caea577daa0d80a758b9933'/>
<id>970af5600ad343a33caea577daa0d80a758b9933</id>
<content type='text'>
Due to the layout of the pitch_frequencies lookup table, note values
computed in extraction were reflected around middle C (midi note
number 60). This didn't matter for matching, values would successfully
roundtrip. However when using samples in external programs or
converting soundfonts to standard formats the note values would lead
to incorrect playback of sounds. This change corrects the note values
so that external programs correctly infer the pitch of the sound when
played at a particular MIDI key.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Due to the layout of the pitch_frequencies lookup table, note values
computed in extraction were reflected around middle C (midi note
number 60). This didn't matter for matching, values would successfully
roundtrip. However when using samples in external programs or
converting soundfonts to standard formats the note values would lead
to incorrect playback of sounds. This change corrects the note values
so that external programs correctly infer the pitch of the sound when
played at a particular MIDI key.</pre>
</div>
</content>
</entry>
<entry>
<title>Allow `atblgen` to process `sequence_order.in` with empty lines in between lines for building on Macos (#2718)</title>
<updated>2026-03-09T20:04:17+00:00</updated>
<author>
<name>Anghelo Carvajal</name>
<email>angheloalf95@gmail.com</email>
</author>
<published>2026-03-09T20:04:17+00:00</published>
<link rel='alternate' type='text/html' href='https://git.dog6.net/oot/commit/?id=bc6d153a21e3fc7a729ea2154f2ff16111d5e704'/>
<id>bc6d153a21e3fc7a729ea2154f2ff16111d5e704</id>
<content type='text'>
The present changes are a direct copy-paste from https://github.com/zeldaret/mm/pull/1850

This fixes building on macos due to a kinda specific issue with Apple clang.

When trying to build on Macos (specifically MacOS 12, Monteray with Apple clang 13.0.0 (clang-1300.0.29.30), idk if other versions have this issue too) `make` stops with the following error from `atblgen`:
```
Failed to match line 1: ""
regexec error: "regexec() failed to match"
Error: Malformed build/n64-us/assets/audio/sequence_order.in?
```

`atblgen` makes the assumption that the `sequence_order.in` file has no extra data, spaces, empty lines, etc. but the file somehow ends up having empty lines between each line on macos.

This file is created by using the C preprocessor to process `include/tables/sequence_table.h`.
In normal circumstances this file should look like this snip,
```
(Sequence_0,NA_BGM_GENERAL_SFX)
(Sequence_1,NA_BGM_AMBIENCE)
(Sequence_2,NA_BGM_TERMINA_FIELD)
(Sequence_3,NA_BGM_CHASE)
(Sequence_4,NA_BGM_MAJORAS_THEME)
```
but it ends up looking like this instead
```
(Sequence_0,NA_BGM_GENERAL_SFX)

(Sequence_1,NA_BGM_AMBIENCE)

(Sequence_2,NA_BGM_TERMINA_FIELD)

(Sequence_3,NA_BGM_CHASE)

(Sequence_4,NA_BGM_MAJORAS_THEME)
```
which `atblgen` doesn't like.

I believe this happens because there are lines with comments between each macro in [`sequence_table.h`](https://github.com/zeldaret/mm/blob/0877ce4adf28a8e73e05c3c58682273b8bf28749/include/tables/sequence_table.h) and for some reason this Apple clang version decided to preserve those empty lines

The fix just makes `atblgen` skip empty lines.

I threw `atblgen` to valgrind to check the fix was working as intended and noted a bunch of memory that was being free before exit, so I fixed them.

I also noted the tools/audio makefile was not using `OPTFLAGS` when building those tools, so I fixed that too.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The present changes are a direct copy-paste from https://github.com/zeldaret/mm/pull/1850

This fixes building on macos due to a kinda specific issue with Apple clang.

When trying to build on Macos (specifically MacOS 12, Monteray with Apple clang 13.0.0 (clang-1300.0.29.30), idk if other versions have this issue too) `make` stops with the following error from `atblgen`:
```
Failed to match line 1: ""
regexec error: "regexec() failed to match"
Error: Malformed build/n64-us/assets/audio/sequence_order.in?
```

`atblgen` makes the assumption that the `sequence_order.in` file has no extra data, spaces, empty lines, etc. but the file somehow ends up having empty lines between each line on macos.

This file is created by using the C preprocessor to process `include/tables/sequence_table.h`.
In normal circumstances this file should look like this snip,
```
(Sequence_0,NA_BGM_GENERAL_SFX)
(Sequence_1,NA_BGM_AMBIENCE)
(Sequence_2,NA_BGM_TERMINA_FIELD)
(Sequence_3,NA_BGM_CHASE)
(Sequence_4,NA_BGM_MAJORAS_THEME)
```
but it ends up looking like this instead
```
(Sequence_0,NA_BGM_GENERAL_SFX)

(Sequence_1,NA_BGM_AMBIENCE)

(Sequence_2,NA_BGM_TERMINA_FIELD)

(Sequence_3,NA_BGM_CHASE)

(Sequence_4,NA_BGM_MAJORAS_THEME)
```
which `atblgen` doesn't like.

I believe this happens because there are lines with comments between each macro in [`sequence_table.h`](https://github.com/zeldaret/mm/blob/0877ce4adf28a8e73e05c3c58682273b8bf28749/include/tables/sequence_table.h) and for some reason this Apple clang version decided to preserve those empty lines

The fix just makes `atblgen` skip empty lines.

I threw `atblgen` to valgrind to check the fix was working as intended and noted a bunch of memory that was being free before exit, so I fixed them.

I also noted the tools/audio makefile was not using `OPTFLAGS` when building those tools, so I fixed that too.</pre>
</div>
</content>
</entry>
<entry>
<title>sampleconv: Improve WAV SMPL chunk handling, properly handle odd chunk sizes (#2689)</title>
<updated>2026-02-17T11:42:54+00:00</updated>
<author>
<name>Tharo</name>
<email>tharo10600@gmail.com</email>
</author>
<published>2026-02-17T11:42:54+00:00</published>
<link rel='alternate' type='text/html' href='https://git.dog6.net/oot/commit/?id=a9a7045e0f85bdad5c9a97eba559fa4ace151fc2'/>
<id>a9a7045e0f85bdad5c9a97eba559fa4ace151fc2</id>
<content type='text'>
* Read WAV SMPL chunks for note info when INST chunks are not available

* Populate the SMPL chunk on conversion to wav

* Properly handle unaligned (odd) WAV chunk sizes</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* Read WAV SMPL chunks for note info when INST chunks are not available

* Populate the SMPL chunk on conversion to wav

* Properly handle unaligned (odd) WAV chunk sizes</pre>
</div>
</content>
</entry>
<entry>
<title>Soundfont Compiler: Implement fine-tuning in the final tuning calculation (#2690)</title>
<updated>2026-02-17T11:00:11+00:00</updated>
<author>
<name>Tharo</name>
<email>tharo10600@gmail.com</email>
</author>
<published>2026-02-17T11:00:11+00:00</published>
<link rel='alternate' type='text/html' href='https://git.dog6.net/oot/commit/?id=7326d556dafcf289c948497df5c9364184ee5431'/>
<id>7326d556dafcf289c948497df5c9364184ee5431</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Seperate baserom segments dir from output dir (#2498)</title>
<updated>2025-03-27T06:20:41+00:00</updated>
<author>
<name>Derek Hensley</name>
<email>hensley.derek58@gmail.com</email>
</author>
<published>2025-03-27T06:20:41+00:00</published>
<link rel='alternate' type='text/html' href='https://git.dog6.net/oot/commit/?id=1b1070d0f41d8f62f7024db27a59d2d4e09612cd'/>
<id>1b1070d0f41d8f62f7024db27a59d2d4e09612cd</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>[iQue] Build some C files with EGCS (#2396)</title>
<updated>2025-01-02T08:35:22+00:00</updated>
<author>
<name>cadmic</name>
<email>cadmic24@gmail.com</email>
</author>
<published>2025-01-02T08:35:22+00:00</published>
<link rel='alternate' type='text/html' href='https://git.dog6.net/oot/commit/?id=9dafc2f2e4cecff745be05b7003f4e5b2e9f2ba9'/>
<id>9dafc2f2e4cecff745be05b7003f4e5b2e9f2ba9</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>[Audio 10/10] Loose ends (#2337)</title>
<updated>2024-12-14T00:26:36+00:00</updated>
<author>
<name>Tharo</name>
<email>17233964+Thar0@users.noreply.github.com</email>
</author>
<published>2024-12-14T00:26:36+00:00</published>
<link rel='alternate' type='text/html' href='https://git.dog6.net/oot/commit/?id=df5d4cb4673bc74d1e2f4d11cf6f5fe8376cd1df'/>
<id>df5d4cb4673bc74d1e2f4d11cf6f5fe8376cd1df</id>
<content type='text'>
* Introduce afile_sizes, generate headers of sizes for soundfonts and sequences

* Initial tools/audio README

* Versioning for samplebank extraction

* Clean up the disassemble_sequence.py runnable interface

* Add static assertions for maximum bank sizes

* Boost optimization for audio tools

* Samplebank XML doc

* Soundfont XML doc

* More docs in sampleconv for vadpcm

* Various tools fixes/cleanup

* VADPCM doc

* Try to fix md formatting

* VADPCM doc can come later

* Fix merge with PR 9

* Fix blobs from MM

* Try to fix bss

* Try fix bss round 2

* Fix sampleconv memset bug

* Suggested documentation tweaks</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* Introduce afile_sizes, generate headers of sizes for soundfonts and sequences

* Initial tools/audio README

* Versioning for samplebank extraction

* Clean up the disassemble_sequence.py runnable interface

* Add static assertions for maximum bank sizes

* Boost optimization for audio tools

* Samplebank XML doc

* Soundfont XML doc

* More docs in sampleconv for vadpcm

* Various tools fixes/cleanup

* VADPCM doc

* Try to fix md formatting

* VADPCM doc can come later

* Fix merge with PR 9

* Fix blobs from MM

* Try to fix bss

* Try fix bss round 2

* Fix sampleconv memset bug

* Suggested documentation tweaks</pre>
</div>
</content>
</entry>
<entry>
<title>[Audio 9/?] Multiversion samplebank and soundfont extraction xmls, 1.0 and 1.1 audio extraction (#2291)</title>
<updated>2024-11-12T13:47:34+00:00</updated>
<author>
<name>Tharo</name>
<email>17233964+Thar0@users.noreply.github.com</email>
</author>
<published>2024-11-12T13:47:34+00:00</published>
<link rel='alternate' type='text/html' href='https://git.dog6.net/oot/commit/?id=2d454933f3de1cef67b23f8896a16f22365924c3'/>
<id>2d454933f3de1cef67b23f8896a16f22365924c3</id>
<content type='text'>
* [Audio 9/?] Multiversion samplebank and soundfont extraction xmls, 1.0 and 1.1 audio extraction

* Rework multiversion samplebanks to reduce duplicates</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* [Audio 9/?] Multiversion samplebank and soundfont extraction xmls, 1.0 and 1.1 audio extraction

* Rework multiversion samplebanks to reduce duplicates</pre>
</div>
</content>
</entry>
<entry>
<title>Fix build on certain Linux distributions (#2257)</title>
<updated>2024-10-02T17:40:38+00:00</updated>
<author>
<name>cadmic</name>
<email>cadmic24@gmail.com</email>
</author>
<published>2024-10-02T17:40:38+00:00</published>
<link rel='alternate' type='text/html' href='https://git.dog6.net/oot/commit/?id=801fe221531da30424f954cae7b9123ca3286443'/>
<id>801fe221531da30424f954cae7b9123ca3286443</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix typos found by codespell (#2229)</title>
<updated>2024-09-26T04:21:00+00:00</updated>
<author>
<name>cadmic</name>
<email>cadmic24@gmail.com</email>
</author>
<published>2024-09-26T04:21:00+00:00</published>
<link rel='alternate' type='text/html' href='https://git.dog6.net/oot/commit/?id=bccb219ea3c8542c160706de70ad540f0822d091'/>
<id>bccb219ea3c8542c160706de70ad540f0822d091</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
