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
ba3a2bc5
Commit
ba3a2bc5
authored
1 year ago
by
moon2
Committed by
q3k
1 year ago
Browse files
Options
Downloads
Patches
Plain Diff
fixed gc issue on tinysynth
parent
f218b790
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
micropython/ports/esp32/badge23_mp_synth.c
+1
-1
1 addition, 1 deletion
micropython/ports/esp32/badge23_mp_synth.c
python_payload/cap_touch_demo.py
+2
-2
2 additions, 2 deletions
python_payload/cap_touch_demo.py
with
3 additions
and
3 deletions
micropython/ports/esp32/badge23_mp_synth.c
+
1
−
1
View file @
ba3a2bc5
...
...
@@ -26,7 +26,7 @@ STATIC void tinysynth_print(const mp_print_t *print, mp_obj_t self_in, mp_print_
STATIC
mp_obj_t
tinysynth_make_new
(
const
mp_obj_type_t
*
type
,
size_t
n_args
,
size_t
n_kw
,
const
mp_obj_t
*
args
)
{
mp_arg_check_num
(
n_args
,
n_kw
,
2
,
2
,
true
);
synth_tinysynth_obj_t
*
self
=
m_new_obj
(
synth_tinysynth_obj_t
);
synth_tinysynth_obj_t
*
self
=
m_new_obj
_with_finaliser
(
synth_tinysynth_obj_t
);
self
->
base
.
type
=
&
synth_tinysynth_type
;
self
->
osc
.
decay_steps
=
50
;
self
->
osc
.
attack_steps
=
3
;
...
...
This diff is collapsed.
Click to expand it.
python_payload/cap_touch_demo.py
+
2
−
2
View file @
ba3a2bc5
...
...
@@ -3,8 +3,8 @@ from hardware import *
set_global_volume_dB
(
0
)
synths
=
[]
for
i
in
range
(
10
):
synths
+=
[
tinysynth
(
440
+
50
*
i
,
1
)]
for
i
in
range
(
5
):
synths
+=
[
tinysynth
(
440
,
1
)]
chords
=
[[
0
,
3
,
7
,
10
,
12
],[
-
2
,
2
,
5
,
8
,
10
],[
i
-
2
,
3
,
7
,
10
,
14
],[
-
4
,
0
,
3
,
8
,
12
],[
-
1
,
2
,
5
,
7
,
11
]]
...
...
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