Skip to content
Snippets Groups Projects
Commit 8dd6910c authored by q3k's avatar q3k
Browse files

bl00mbox: make tinysynth less spammy

parent 890ca6dc
No related branches found
No related tags found
No related merge requests found
...@@ -18,7 +18,6 @@ int16_t run_trad_env(trad_env_t * env){ ...@@ -18,7 +18,6 @@ int16_t run_trad_env(trad_env_t * env){
if(tmp < env->env_counter){ // overflow if(tmp < env->env_counter){ // overflow
tmp = ~((uint32_t) 0); // max out tmp = ~((uint32_t) 0); // max out
env->env_phase = TRAD_ENV_PHASE_DECAY; env->env_phase = TRAD_ENV_PHASE_DECAY;
printf("decay \n");
} }
env->env_counter = tmp; env->env_counter = tmp;
break; break;
...@@ -32,7 +31,6 @@ int16_t run_trad_env(trad_env_t * env){ ...@@ -32,7 +31,6 @@ int16_t run_trad_env(trad_env_t * env){
if(env->env_counter <= env->sustain){ if(env->env_counter <= env->sustain){
env->env_counter = env->sustain; env->env_counter = env->sustain;
env->env_phase = TRAD_ENV_PHASE_SUSTAIN; env->env_phase = TRAD_ENV_PHASE_SUSTAIN;
printf("sustain \n");
} }
break; break;
case TRAD_ENV_PHASE_SUSTAIN: case TRAD_ENV_PHASE_SUSTAIN:
...@@ -165,7 +163,6 @@ void trad_osc_set_freq_semitone(trad_osc_t * osc, float tone){ ...@@ -165,7 +163,6 @@ void trad_osc_set_freq_semitone(trad_osc_t * osc, float tone){
void trad_osc_set_freq_Hz(trad_osc_t * osc, float freq){ void trad_osc_set_freq_Hz(trad_osc_t * osc, float freq){
osc->freq = (freq/(SYNTH_SAMPLE_RATE)) * (~((uint64_t) 0)); osc->freq = (freq/(SYNTH_SAMPLE_RATE)) * (~((uint64_t) 0));
printf("freq: %llu \n" , osc->freq);
} }
void trad_osc_set_waveform(trad_osc_t * osc, uint8_t waveform){ void trad_osc_set_waveform(trad_osc_t * osc, uint8_t waveform){
...@@ -174,7 +171,6 @@ void trad_osc_set_waveform(trad_osc_t * osc, uint8_t waveform){ ...@@ -174,7 +171,6 @@ void trad_osc_set_waveform(trad_osc_t * osc, uint8_t waveform){
void trad_osc_set_attack_ms(trad_osc_t * osc, float ms){ void trad_osc_set_attack_ms(trad_osc_t * osc, float ms){
osc->env.attack = (1000./ms/(SYNTH_SAMPLE_RATE)) * (~((uint32_t) 0)) ; osc->env.attack = (1000./ms/(SYNTH_SAMPLE_RATE)) * (~((uint32_t) 0)) ;
printf("atk: %u \n" , osc->env.attack);
} }
void trad_osc_set_decay_ms(trad_osc_t * osc, float ms){ void trad_osc_set_decay_ms(trad_osc_t * osc, float ms){
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment