repositories
/
SugarCubes.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Refactor MIDI stuff so deck focusing is listenable and controllable
[SugarCubes.git]
/
DanUtil.pde
diff --git
a/DanUtil.pde
b/DanUtil.pde
index d3f9ac05186e314f3a302f229ac90d65f736a7fa..c27eaed0adacc2c26cd541c499f0d2d7899b5911 100644
(file)
--- a/
DanUtil.pde
+++ b/
DanUtil.pde
@@
-121,7
+121,6
@@
public class DGlobals {
void controllerChangeReceived(rwmidi.Controller cc) {
if (cc.getCC() == 7 && btwn(cc.getChannel(),0,7)) { Sliders[cc.getChannel()] = 1.*cc.getValue()/127.; }
void controllerChangeReceived(rwmidi.Controller cc) {
if (cc.getCC() == 7 && btwn(cc.getChannel(),0,7)) { Sliders[cc.getChannel()] = 1.*cc.getValue()/127.; }
-
else if (cc.getCC() == 15 && cc.getChannel() == 0) {
lx.engine.getDeck(1).getCrossfader().setValue( 1.*cc.getValue()/127.);
}
else if (cc.getCC() == 15 && cc.getChannel() == 0) {
lx.engine.getDeck(1).getCrossfader().setValue( 1.*cc.getValue()/127.);
}
@@
-157,7
+156,6
@@
public class DGlobals {
double Tap1 = 0;
double getNow() { return millis() + 1000*second() + 60*1000*minute() + 3600*1000*hour(); }
double Tap1 = 0;
double getNow() { return millis() + 1000*second() + 60*1000*minute() + 3600*1000*hour(); }
-
void noteOffReceived(Note note) {
if (CurPat == null) return;
int row = DG.mapRow(note.getPitch()), col = note.getChannel();
void noteOffReceived(Note note) {
if (CurPat == null) return;
int row = DG.mapRow(note.getPitch()), col = note.getChannel();