Skip to content

Instantly share code, notes, and snippets.

View Aeva's full-sized avatar

Aeva Aeva

View GitHub Profile
@rygorous
rygorous / gist:9aac91598af0a94ab4693210291e1f94
Created December 10, 2025 05:37
Reference r2 FFT code
static size_t const kMaxN = 2048; // This is the largest straight FFT we support
struct complexf
{
float re;
float im;
complexf() {}
complexf(float r) : re(r), im(0.0f) {}
complexf(float r, float i) : re(r), im(i) {}
@aparrish
aparrish / gb_midi_hz.txt
Created January 8, 2025 20:13
midi notes and closest corresponding tones that the game boy can generate, along with the difference in frequency between the midi note and the actual game boy frequency. more or less the same thing as http://www.devrs.com/gb/files/sndtab.html but in a friendlier format. more info and math on pandocs https://gbdev.io/pandocs/Audio_Registers.html
midi name gb gbhex gbfreq diff
0 C-0 0 0x000 64.00 55.82
1 C#0 0 0x000 64.00 55.34
2 D-0 0 0x000 64.00 54.82
3 D#0 0 0x000 64.00 54.28
4 E-0 0 0x000 64.00 53.70
5 F-0 0 0x000 64.00 53.09
6 F#0 0 0x000 64.00 52.44
7 G-0 0 0x000 64.00 51.75
8 G#0 0 0x000 64.00 51.02
Below I collected relevant links and papers more or less pertaining to the subject of tetrahedral meshes.
It's an ever-growing list.
------------------------------
Relevant links:
http://en.wikipedia.org/wiki/Types_of_mesh
http://en.wikipedia.org/wiki/Tetrahedron
http://en.wikipedia.org/wiki/Simplicial_complex