Fichiers audio, journal, annales

This commit is contained in:
Adrien Guatto
2025-11-04 18:33:00 +01:00
parent abf505668e
commit 88595d288f
21 changed files with 1326 additions and 0 deletions

27
cours/audio/mathext.h Normal file
View File

@@ -0,0 +1,27 @@
#ifndef MATHEXT_H
#define MATHEXT_H
#include "stdbool.h"
#include "assert.h"
#include "pervasives.h"
#include "hept_ffi.h"
DECLARE_HEPT_FUN(Mathext, float, (int), float o);
DECLARE_HEPT_FUN(Mathext, int, (float), int o);
DECLARE_HEPT_FUN(Mathext, floor, (float), float o);
DECLARE_HEPT_FUN(Mathext, sin, (float), float o);
DECLARE_HEPT_FUN(Mathext, cos, (float), float o);
DECLARE_HEPT_FUN(Mathext, atan2, (float, float), float o);
DECLARE_HEPT_FUN(Mathext, hypot, (float, float), float o);
DECLARE_HEPT_FUN(Mathext, sqrt, (float), float o);
DECLARE_HEPT_FUN(Mathext, pow, (float, float), float o);
DECLARE_HEPT_FUN(Mathext, modulo, (int, int), int o);
DECLARE_HEPT_FUN(Mathext, piano_freq_of_key, (int), float f);
static const float Mathext__pi = 3.14115;
#endif /* MATHEXT_H */