Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
E
endless-sequencer
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
rorist
endless-sequencer
Commits
fabec821
Commit
fabec821
authored
1 year ago
by
rorist
Browse files
Options
Downloads
Patches
Plain Diff
turn petal on when palying seq
parent
c0e5f275
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
__init__.py
+6
-2
6 additions, 2 deletions
__init__.py
with
6 additions
and
2 deletions
__init__.py
+
6
−
2
View file @
fabec821
...
@@ -159,9 +159,12 @@ class EndlessSequencer(Application):
...
@@ -159,9 +159,12 @@ class EndlessSequencer(Application):
# Light petal
# Light petal
for
i
in
range
(
10
):
for
i
in
range
(
10
):
led_id
=
i
*
4
if
ct
.
petals
[
i
].
pressed
:
if
ct
.
petals
[
i
].
pressed
or
i
-
1
==
self
.
current_sample
:
leds
.
set_all_rgb
(
0
,
0
,
0
)
leds
.
set_all_rgb
(
0
,
0
,
0
)
# Select led range
led_id
=
i
*
4
if
i
==
0
:
range_from
=
self
.
leds_ids
[
led_id
-
3
:]
if
i
==
0
:
range_from
=
self
.
leds_ids
[
led_id
-
3
:]
else
:
range_from
=
self
.
leds_ids
[
led_id
-
3
:
led_id
]
else
:
range_from
=
self
.
leds_ids
[
led_id
-
3
:
led_id
]
leds_range
=
range_from
+
self
.
leds_ids
[
led_id
:
led_id
+
4
]
leds_range
=
range_from
+
self
.
leds_ids
[
led_id
:
led_id
+
4
]
...
@@ -170,6 +173,7 @@ class EndlessSequencer(Application):
...
@@ -170,6 +173,7 @@ class EndlessSequencer(Application):
print
(
"
light petal {}
"
.
format
(
i
))
print
(
"
light petal {}
"
.
format
(
i
))
print
(
"
light leds {}
"
.
format
(
leds_range
))
print
(
"
light leds {}
"
.
format
(
leds_range
))
# Turn on leds
for
led
in
leds_range
:
for
led
in
leds_range
:
# Action boutons
# Action boutons
if
i
not
in
[
0
,
9
]:
if
i
not
in
[
0
,
9
]:
...
...
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