-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f3a5d0a
commit 6b99698
Showing
5 changed files
with
33 additions
and
86 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,16 @@ | ||
from .backend_wrappers import * | ||
from shoop_py_backend import LoopMode | ||
|
||
def is_playing_mode(mode): | ||
return mode in [LoopMode.Playing.value, LoopMode.PlayingDryThroughWet.value] | ||
return mode in [int(LoopMode.Playing), int(LoopMode.PlayingDryThroughWet)] | ||
|
||
def is_recording_mode(mode): | ||
return mode in [LoopMode.Recording.value, LoopMode.RecordingDryIntoWet.value] | ||
return mode in [int(LoopMode.Recording), int(LoopMode.RecordingDryIntoWet)] | ||
|
||
def is_running_mode(mode): | ||
return mode in [ | ||
LoopMode.Playing.value, | ||
LoopMode.Replacing.value, | ||
LoopMode.Recording.value, | ||
LoopMode.RecordingDryIntoWet.value, | ||
LoopMode.PlayingDryThroughWet.value | ||
int(LoopMode.Playing), | ||
int(LoopMode.Replacing), | ||
int(LoopMode.Recording), | ||
int(LoopMode.RecordingDryIntoWet), | ||
int(LoopMode.PlayingDryThroughWet) | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters