100 |
sigc::mem_fun(*this, &LinuxSamplerPlugin::NotifySampleReferenceChanged) |
sigc::mem_fun(*this, &LinuxSamplerPlugin::NotifySampleReferenceChanged) |
101 |
); |
); |
102 |
|
|
103 |
|
app->signal_keyboard_key_hit().connect( |
104 |
|
sigc::mem_fun(*this, &LinuxSamplerPlugin::__onVirtualKeyboardKeyHit) |
105 |
|
); |
106 |
|
app->signal_keyboard_key_released().connect( |
107 |
|
sigc::mem_fun(*this, &LinuxSamplerPlugin::__onVirtualKeyboardKeyReleased) |
108 |
|
); |
109 |
|
|
110 |
// register a timeout job to gigedit's main loop, so we can poll the |
// register a timeout job to gigedit's main loop, so we can poll the |
111 |
// the sampler periodically for MIDI events (I HOPE it works on all |
// the sampler periodically for MIDI events (I HOPE it works on all |
112 |
// archs, because gigedit is actually running in another thread than |
// archs, because gigedit is actually running in another thread than |
144 |
NotifySamplesToBeRemoved(samples); |
NotifySamplesToBeRemoved(samples); |
145 |
} |
} |
146 |
|
|
147 |
|
void LinuxSamplerPlugin::__onVirtualKeyboardKeyHit(int Key, int Velocity) { |
148 |
|
SendNoteOnToSampler(Key, Velocity); |
149 |
|
} |
150 |
|
|
151 |
|
void LinuxSamplerPlugin::__onVirtualKeyboardKeyReleased(int Key, int Velocity) { |
152 |
|
SendNoteOffToSampler(Key, Velocity); |
153 |
|
} |
154 |
|
|
155 |
bool LinuxSamplerPlugin::IsTypeSupported(String sTypeName, String sTypeVersion) { |
bool LinuxSamplerPlugin::IsTypeSupported(String sTypeName, String sTypeVersion) { |
156 |
return sTypeName == gig::libraryName() && |
return sTypeName == gig::libraryName() && |
157 |
sTypeVersion == gig::libraryVersion(); |
sTypeVersion == gig::libraryVersion(); |