projects
/
ardour.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
1db04f486e91755103013fd4a86f292657f4f81d
[ardour.git]
/
libs
/
surfaces
/
push2
/
buttons.cc
1
#include "ardour/session.h"
2
3
#include "push2.h"
4
5
using namespace ArdourSurface;
6
7
void
8
Push2::button_play ()
9
{
10
if (session->transport_rolling ()) {
11
transport_stop ();
12
} else {
13
transport_play ();
14
}
15
}
16
17
void
18
Push2::button_recenable ()
19
{
20
std::cerr << "RE toggle\n";
21
rec_enable_toggle ();
22
}
23
24
void
25
Push2::button_up ()
26
{
27
scroll_up_1_track ();
28
}
29
30
void
31
Push2::button_down ()
32
{
33
scroll_dn_1_track ();
34
}