TOOONEEEEE

This commit is contained in:
2026-04-25 05:40:35 +02:00
parent 09b1a6707a
commit 17a3a79c44
3 changed files with 5 additions and 4 deletions
+2 -2
View File
@@ -1,8 +1,8 @@
#include <hardware/pwm.h>
#include <pico/types.h>
#include <stdio.h>
#include "const.h"
#include "state.h"
#include "synth.h"
#include "pwm.h"
@@ -15,7 +15,7 @@ void pwm_isr(void) {
pwm_clear_irq(slice);
float sample = get_sample();
printf("sample: %f\n", sample);
state.dbg_sample = sample;
uint16_t level = (uint16_t)((sample + 1.0f) * 0.5f * 3400.0f);
pwm_set_chan_level(slice, chan, level);