-
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.
Merge pull request #24 from matejsemancik/feature/galaxy-sketch
feature/galaxy-sketch
- Loading branch information
Showing
9 changed files
with
99 additions
and
66 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,4 +3,7 @@ | |
build/ | ||
out/ | ||
*.iml | ||
local.properties | ||
local.properties | ||
data/midi | ||
data/movies | ||
data/music |
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
2 changes: 1 addition & 1 deletion
2
.../astral/sketches/starfield/GalaxyImage.kt → ...sem/astral/sketches/galaxy/GalaxyImage.kt
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
22 changes: 22 additions & 0 deletions
22
src/main/kotlin/dev/matsem/astral/tools/galaxy/controls/PushButtonGroup.kt
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 |
---|---|---|
@@ -0,0 +1,22 @@ | ||
package dev.matsem.astral.tools.galaxy.controls | ||
|
||
import themidibus.MidiBus | ||
|
||
class PushButtonGroup( | ||
private val midiBus: MidiBus, | ||
val ch: Int, | ||
val ccs: List<Int>, | ||
val listener: (Int) -> Unit | ||
) : GalaxyControl { | ||
|
||
|
||
override fun controllerChange(channel: Int, control: Int, v: Int) { | ||
if (ch == channel && ccs.contains(control) && v == 127) { | ||
listener(ccs.indexOf(control)) | ||
} | ||
} | ||
|
||
override fun update() = Unit | ||
|
||
override fun updatePhone() = Unit | ||
} |
Binary file not shown.