-Fixed Sidechain KEY button in GUI

main
Harry van Haaren 2013-09-11 02:06:33 +01:00
parent d9ae0129fc
commit 1dca11851f
2 changed files with 19 additions and 8 deletions

View File

@ -144,7 +144,7 @@ class LightButton : public Fl_Button
}
return 1;
case FL_PUSH:
_highlight = 1;
do_callback();
return 1;
case FL_DRAG: {

View File

@ -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 );
*/
}