1 |
/* -*- c++ -*- |
/* -*- c++ -*- |
2 |
* Copyright (C) 2006-2011 Andreas Persson |
* Copyright (C) 2006-2015 Andreas Persson |
3 |
* |
* |
4 |
* This program is free software; you can redistribute it and/or |
* This program is free software; you can redistribute it and/or |
5 |
* modify it under the terms of the GNU General Public License as |
* modify it under the terms of the GNU General Public License as |
47 |
void update(gig::Instrument* instrument); |
void update(gig::Instrument* instrument); |
48 |
gig::Region* first(); |
gig::Region* first(); |
49 |
gig::Region* next(); |
gig::Region* next(); |
50 |
bool operator() (gig::Region* x, gig::Region* y) { |
bool operator() (gig::Region* x, gig::Region* y) const { |
51 |
return x->KeyRange.low < y->KeyRange.low; |
return x->KeyRange.low < y->KeyRange.low; |
52 |
} |
} |
53 |
}; |
}; |
73 |
sigc::signal<void, int/*key*/, int/*velocity*/>& signal_keyboard_key_released(); |
sigc::signal<void, int/*key*/, int/*velocity*/>& signal_keyboard_key_released(); |
74 |
|
|
75 |
gig::Region* get_region() { return region; } |
gig::Region* get_region() { return region; } |
76 |
|
void set_region(gig::Region* region); |
77 |
|
|
78 |
void on_note_on_event(int key, int velocity); |
void on_note_on_event(int key, int velocity); |
79 |
void on_note_off_event(int key, int velocity); |
void on_note_off_event(int key, int velocity); |