Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Debugging Gitlab issue fix
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
Phileas
Debugging Gitlab issue fix
Commits
31af0c84
Commit
31af0c84
authored
1 year ago
by
moon2
Browse files
Options
Downloads
Patches
Plain Diff
gay drums: fix increment bug
parent
dd4853e3
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!633
gay drums: unbreak incr
Pipeline
#12593
passed
1 year ago
Stage: check
Stage: build
Stage: deploy
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
python_payload/apps/gay_drums/__init__.py
+16
-14
16 additions, 14 deletions
python_payload/apps/gay_drums/__init__.py
with
16 additions
and
14 deletions
python_payload/apps/gay_drums/__init__.py
+
16
−
14
View file @
31af0c84
...
...
@@ -319,14 +319,12 @@ class GayDrums(Application):
return
0
else
:
state
=
self
.
seq
.
trigger_state
(
sequencer_track
,
step
)
if
state
=
=
0
:
if
state
<
=
0
:
return
0
elif
state
==
32767
:
return
3
elif
state
<
16384
:
elif
state
<
17000
:
return
1
else
:
return
2
return
3
def
track_set_state
(
self
,
track
,
step
,
state
):
# lol
...
...
@@ -368,23 +366,27 @@ class GayDrums(Application):
self
.
seq
.
trigger_clear
(
3
,
step
)
step
+=
16
else
:
state
=
self
.
seq
.
trig
ge
r
_state
(
sequencer_
track
,
step
)
state
=
self
.
track_
ge
t
_state
(
track
,
step
)
if
track
==
3
:
if
state
==
0
:
new_state
=
10000
elif
state
>
16500
:
new_state
=
0
else
:
elif
state
==
1
:
new_state
=
20000
else
:
new_state
=
0
else
:
if
state
==
0
:
new_state
=
16000
elif
state
==
32767
:
new_state
=
0
else
:
elif
state
==
1
:
new_state
=
32767
self
.
seq
.
trigger_start
(
sequencer_track
,
step
,
new_state
)
self
.
seq
.
trigger_start
(
sequencer_track
,
step
+
16
,
new_state
)
else
:
new_state
=
0
if
new_state
<=
0
:
self
.
seq
.
trigger_clear
(
sequencer_track
,
step
)
self
.
seq
.
trigger_clear
(
sequencer_track
,
step
+
16
)
else
:
self
.
seq
.
trigger_start
(
sequencer_track
,
step
,
new_state
)
self
.
seq
.
trigger_start
(
sequencer_track
,
step
+
16
,
new_state
)
def
draw_track_step_marker
(
self
,
ctx
:
Context
,
data
:
Tuple
[
int
,
int
])
->
None
:
track
,
step
=
data
...
...
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