summaryrefslogtreecommitdiffstats
path: root/src/synth.c
diff options
context:
space:
mode:
authorgrm <grm@eyesin.space>2025-02-22 02:36:27 +0200
committergrm <grm@eyesin.space>2025-02-22 02:36:27 +0200
commit500b9a07b93d6cd3e771edc5698e06d163da60f1 (patch)
tree08aace91a7ec7600b254b986bf5458362dab33f3 /src/synth.c
parent04b3dbe0a339c42d7b2085bcd6149e9277d699a1 (diff)
downloadsynth-project-500b9a07b93d6cd3e771edc5698e06d163da60f1.tar.gz
synth-project-500b9a07b93d6cd3e771edc5698e06d163da60f1.tar.bz2
synth-project-500b9a07b93d6cd3e771edc5698e06d163da60f1.zip
a year of changes (web, better soundcard handling, biquad)
Diffstat (limited to 'src/synth.c')
-rw-r--r--src/synth.c24
1 files changed, 5 insertions, 19 deletions
diff --git a/src/synth.c b/src/synth.c
index f7ae019..1b5187b 100644
--- a/src/synth.c
+++ b/src/synth.c
@@ -23,33 +23,19 @@
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
-/* audio */
-#include <string.h>
-#include <portaudio.h>
-
-#include <portmidi.h>
-
-/* graphics */
-#include "synth_gui.h"
-
-/* synth */
#include "synth_engine.h"
-#include "midi.h"
-
-#define NUM_SECONDS (1)
-
-#define WAVE_SIZE (44100)
+#include "synth_gui.h"
+#include "web.h"
int
main(void) {
- midi_t midi;
-
synth_t * synth = init_synth();
- init_midi(&midi, synth);
+ init_web(synth);
+
rayrun(synth);
- terminate_midi(&midi);
+ free_web();
free_synth(synth);
return 0;