diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2016-07-06 23:49:07 -0400 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2016-09-27 14:59:30 -0500 |
commit | eff67c8a8fcb69d082fd7b68627cf32250ced156 (patch) | |
tree | 3014911286589e2d4969e8129bcdee420efa1a45 /libs/surfaces/push2/gui.cc | |
parent | 915f937aa4757c63fbb1697eaaf8032abdfa9b43 (diff) |
push2: basics of octave shifting
Diffstat (limited to 'libs/surfaces/push2/gui.cc')
-rw-r--r-- | libs/surfaces/push2/gui.cc | 6 |
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); } } } |