X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=_MIDI.pde;h=79c3860e487aa74489806029fa34eebe65bc1dd1;hb=66067e53a4adab2860ba09f88e2c3f8984ff65ba;hp=9a3ce5cb29f21266e69247ab6d9a2e087084f6af;hpb=1f974cbc418e3c35bb6010e1d7e566a9af63ff48;p=SugarCubes.git diff --git a/_MIDI.pde b/_MIDI.pde index 9a3ce5c..79c3860 100644 --- a/_MIDI.pde +++ b/_MIDI.pde @@ -703,9 +703,13 @@ class APC40MidiOutput implements LXParameter.Listener, GridOutput { while (i < 12) { sendKnob(i++, 0); } - for (int row = 0; row < 7; ++row) { - for (int col = 0; col < 8; ++col) { - setGridState(row, col, 0); + if (focusedPattern instanceof DPat) { + ((DPat)focusedPattern).updateLights(); + } else { + for (int row = 0; row < 7; ++row) { + for (int col = 0; col < 8; ++col) { + setGridState(row, col, 0); + } } } }