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
Service Desk
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
dos
flow3r firmware
Commits
08cde977
Commit
08cde977
authored
1 year ago
by
moon2
Browse files
Options
Downloads
Patches
Plain Diff
shoegaze: use directctx
parent
cdd1c2c0
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
python_payload/apps/shoegaze/__init__.py
+19
-4
19 additions, 4 deletions
python_payload/apps/shoegaze/__init__.py
with
19 additions
and
4 deletions
python_payload/apps/shoegaze/__init__.py
+
19
−
4
View file @
08cde977
...
@@ -44,6 +44,7 @@ class ShoegazeApp(Application):
...
@@ -44,6 +44,7 @@ class ShoegazeApp(Application):
self
.
_rand_rot
=
0.0
self
.
_rand_rot
=
0.0
self
.
delay_on
=
True
self
.
delay_on
=
True
self
.
fuzz_on
=
True
self
.
fuzz_on
=
True
self
.
_lofi
=
False
def
_build_synth
(
self
)
->
None
:
def
_build_synth
(
self
)
->
None
:
if
self
.
blm
is
None
:
if
self
.
blm
is
None
:
...
@@ -209,6 +210,8 @@ class ShoegazeApp(Application):
...
@@ -209,6 +210,8 @@ class ShoegazeApp(Application):
if
buttons
.
app
.
left
.
pressed
:
if
buttons
.
app
.
left
.
pressed
:
pass
pass
# self.fuzz_toggle()
# self.fuzz_toggle()
if
buttons
.
app
.
middle
.
pressed
:
self
.
lofi
=
not
self
.
lofi
for
i
in
range
(
1
,
10
,
2
):
for
i
in
range
(
1
,
10
,
2
):
if
petals
[
i
].
whole
.
pressed
:
if
petals
[
i
].
whole
.
pressed
:
...
@@ -232,18 +235,30 @@ class ShoegazeApp(Application):
...
@@ -232,18 +235,30 @@ class ShoegazeApp(Application):
self
.
bass_string
.
decay
=
1000
self
.
bass_string
.
decay
=
1000
self
.
bass_string
.
signals
.
trigger
.
start
()
self
.
bass_string
.
signals
.
trigger
.
start
()
@property
def
lofi
(
self
):
return
self
.
_lofi
@lofi.setter
def
lofi
(
self
,
val
):
self
.
_lofi
=
bool
(
val
)
if
self
.
_lofi
:
sys_display
.
set_mode
(
2313
)
else
:
sys_display
.
set_mode
(
912
)
def
on_enter
(
self
,
vm
:
Optional
[
ViewManager
])
->
None
:
def
on_enter
(
self
,
vm
:
Optional
[
ViewManager
])
->
None
:
super
().
on_enter
(
vm
)
super
().
on_enter
(
vm
)
s
ys_display
.
set_mode
(
2313
)
s
elf
.
lofi
=
self
.
lofi
if
self
.
blm
is
None
:
if
self
.
blm
is
None
:
self
.
_build_synth
()
self
.
_build_synth
()
if
self
.
blm
is
not
None
:
# silly mypy
self
.
blm
.
foreground
=
True
self
.
blm
.
foreground
=
True
def
on_exit
(
self
)
->
None
:
def
on_exit
(
self
)
->
None
:
super
().
on_exit
()
super
().
on_exit
()
if
self
.
blm
is
not
None
:
if
self
.
blm
is
not
None
:
self
.
blm
.
free
=
True
# yeeting the channel in the backend
self
.
blm
.
clear
()
self
.
blm
.
free
=
True
self
.
blm
=
None
self
.
blm
=
None
...
...
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