Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
flow3r firmware
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
flow3r
flow3r firmware
Commits
8dd6910c
Commit
8dd6910c
authored
1 year ago
by
q3k
Browse files
Options
Downloads
Patches
Plain Diff
bl00mbox: make tinysynth less spammy
parent
890ca6dc
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
components/bl00mbox/buds/tinysynth/tinysynth.c
+0
-4
0 additions, 4 deletions
components/bl00mbox/buds/tinysynth/tinysynth.c
with
0 additions
and
4 deletions
components/bl00mbox/buds/tinysynth/tinysynth.c
+
0
−
4
View file @
8dd6910c
...
@@ -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
){
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment