mirror of
https://github.com/vale981/openAV-Luppp
synced 2025-03-05 17:11:40 -05:00
-Fixed Sidechain KEY button in GUI
This commit is contained in:
parent
d9ae0129fc
commit
1dca11851f
2 changed files with 19 additions and 8 deletions
|
@ -144,7 +144,7 @@ class LightButton : public Fl_Button
|
|||
}
|
||||
return 1;
|
||||
case FL_PUSH:
|
||||
_highlight = 1;
|
||||
|
||||
do_callback();
|
||||
return 1;
|
||||
case FL_DRAG: {
|
||||
|
|
|
@ -60,16 +60,27 @@ void gtrack_reverb_cb(Fl_Widget *w, void *data)
|
|||
|
||||
void gtrack_side_cb(Fl_Widget *w, void *data)
|
||||
{
|
||||
/*
|
||||
GTrack* track = (GTrack*) data;
|
||||
|
||||
bool b = ((Avtk::Dial*)w)->value();
|
||||
float v = float( b );
|
||||
printf("track %i post send %s, %f\n", track->ID, b ? "true" : "false", v );
|
||||
Avtk::LightButton* d = (Avtk::LightButton*)w;
|
||||
//d->value( d->value() );
|
||||
|
||||
|
||||
bool b = d->value();
|
||||
if ( b < 0.5 )
|
||||
{
|
||||
EventTrackSend e( track->ID, SEND_SIDE, 1.0f );
|
||||
writeToDspRingbuffer( &e );
|
||||
}
|
||||
else
|
||||
{
|
||||
EventTrackSend e( track->ID, SEND_SIDE, 0.0f );
|
||||
writeToDspRingbuffer( &e );
|
||||
}
|
||||
|
||||
printf("track %i post send %s\n", track->ID, b ? "true" : "false" );
|
||||
|
||||
|
||||
EventTrackSend e( track->ID, SEND_SIDE, v );
|
||||
writeToDspRingbuffer( &e );
|
||||
*/
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue