summaryrefslogtreecommitdiffstats
path: root/src/synth_gui.c
diff options
context:
space:
mode:
authorgrm <grm@eyesin.space>2025-03-03 19:51:46 +0200
committergrm <grm@eyesin.space>2025-03-03 19:51:46 +0200
commita07981e1721a497a4542ac9ab63032b3ccbd1952 (patch)
tree6590347bb14f8c86dec94766158ff708b627b86a /src/synth_gui.c
parent370160c6241abe29265e6e9fb851d571aab8d10e (diff)
downloadsynth-project-a07981e1721a497a4542ac9ab63032b3ccbd1952.tar.gz
synth-project-a07981e1721a497a4542ac9ab63032b3ccbd1952.tar.bz2
synth-project-a07981e1721a497a4542ac9ab63032b3ccbd1952.zip
ws updating webapgeHEADmaster
Diffstat (limited to 'src/synth_gui.c')
-rw-r--r--src/synth_gui.c36
1 files changed, 36 insertions, 0 deletions
diff --git a/src/synth_gui.c b/src/synth_gui.c
index 215b8f5..e1f3101 100644
--- a/src/synth_gui.c
+++ b/src/synth_gui.c
@@ -874,6 +874,7 @@ void
rayrun(synth_t *synth){
PaTime current_time = 0;
PaTime prev_time = 0;
+ int mod = 0;
osc_sound(0);
@@ -889,6 +890,41 @@ rayrun(synth_t *synth){
keyboard(synth);
mouse(synth);
+ if (true || mod++ % 10 == 0) {
+ char b[256];
+ sprintf(b, "wvt_pos:%d", synth->wvt_pos);
+ ws_send_message(b);
+ sprintf(b, "cci:%d", synth->cci);
+ ws_send_message(b);
+ sprintf(b, "autogain:%d", synth->autogain);
+ ws_send_message(b);
+ sprintf(b, "x:%f", synth->x);
+ ws_send_message(b);
+ sprintf(b, "midi_active_n:%d", synth->midi_active_n);
+ ws_send_message(b);
+ sprintf(b, "octave:%d", synth->octave);
+ ws_send_message(b);
+ sprintf(b, "delay:%d", synth->delay);
+ ws_send_message(b);
+ sprintf(b, "deli:%d", synth->deli);
+ ws_send_message(b);
+ sprintf(b, "f_adsr_enabled:%d", synth->f_adsr_enabled);
+ ws_send_message(b);
+ sprintf(b, "filter:%d", synth->filter);
+ ws_send_message(b);
+ sprintf(b, "biquad:%d", synth->biquad);
+ ws_send_message(b);
+ sprintf(b, "clamp:%d", synth->clamp);
+ ws_send_message(b);
+ sprintf(b, "modi:%d", synth->modi);
+ ws_send_message(b);
+ sprintf(b, "geni:%d", synth->geni );
+ ws_send_message(b);
+ sprintf(b, "active:%d", synth->active);
+ ws_send_message(b);
+ sprintf(b, "sound_active:%d", synth->sound_active);
+ ws_send_message(b);
+ }
// Draw
//----------------------------------------------------------------------------------
if (synth->gui.screen == SCREEN_MAIN)