summaryrefslogtreecommitdiff
path: root/libs/surfaces/push2/gui.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2016-07-06 23:49:07 -0400
committerPaul Davis <paul@linuxaudiosystems.com>2016-09-27 14:59:30 -0500
commiteff67c8a8fcb69d082fd7b68627cf32250ced156 (patch)
tree3014911286589e2d4969e8129bcdee420efa1a45 /libs/surfaces/push2/gui.cc
parent915f937aa4757c63fbb1697eaaf8032abdfa9b43 (diff)
push2: basics of octave shifting
Diffstat (limited to 'libs/surfaces/push2/gui.cc')
-rw-r--r--libs/surfaces/push2/gui.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/libs/surfaces/push2/gui.cc b/libs/surfaces/push2/gui.cc
index 5f05c1a3e4..e061bfc2c9 100644
--- a/libs/surfaces/push2/gui.cc
+++ b/libs/surfaces/push2/gui.cc
@@ -127,6 +127,8 @@ P2GUI::P2GUI (Push2& p)
build_pad_table ();
+ set_spacing (12);
+
pack_start (hpacker, false, false);
pack_start (pad_table, true, true);
@@ -410,9 +412,9 @@ P2GUI::build_pad_table ()
for (int row = 0; row < 8; ++row) {
for (int col = 0; col < 8; ++col) {
l = manage (new Label);
- l->set_text (string_compose ("%1, %2", row, col));
+ l->set_text (string_compose ("%1", (int) p2.pad_note (row, col)));
l->show ();
- pad_table.attach (*l, col, col+1, 7 - row, 7 - row + 1);
+ pad_table.attach (*l, col, col+1, row, row + 1);
}
}
}