Begin midi engine

This commit is contained in:
2026-02-25 12:16:31 -05:00
parent 789e2b678b
commit 6656b6d0b2
7 changed files with 118 additions and 18 deletions

View File

@@ -40,9 +40,12 @@ The platform and renderer layers are C-style APIs with opaque handles. `platform
This project is written in C-style C++. We use `.cpp` files and a small subset of C++ features (default struct values, function overloading, namespaces where useful) but avoid the rest. No classes, no inheritance, limit templates, no exceptions, no RAII, avoid STL containers or algorithms. Data is plain structs. Functions operate on those structs, or pointers to them.
Opening braces go on the same line as the function signature (K&R style), not on the next line.
Memory should be managed with arena allocators where possible rather than individual `malloc`/`free` or `new`/`delete` calls. Arenas make allocation fast, avoid fragmentation, and simplify cleanup.
Memory is managed with arena allocators where possible rather than individual `malloc`/`free` or `new`/`delete` calls. Arenas make allocation fast, avoid fragmentation, and simplify cleanup.
### Syntax Style
- Opening braces go on the same line as the function signature (K&R style), not on the next line.
- use CAPS_SNAKE_CASE for constants, lower_snake_case for functions and variables, and CapsCamelCase for types.
## Dependencies