mirror of
https://github.com/vale981/openAV-Luppp
synced 2025-03-05 09:01:39 -05:00
-Updated Goptions, removed prints
This commit is contained in:
parent
a3f9eda1d4
commit
211df0fa0f
7 changed files with 15 additions and 14 deletions
|
@ -25,7 +25,7 @@
|
|||
// State save / load
|
||||
//#define DEBUG_STATE 1
|
||||
|
||||
// Jack print controller out MIDI
|
||||
// Jack print controller out MIDI, loading etc
|
||||
//#define DEBUG_MIDI 1
|
||||
|
||||
|
||||
|
|
|
@ -826,10 +826,10 @@ Binding* GenericMIDI::setupBinding( cJSON* binding )
|
|||
else if ( strcmp( actionJson->valuestring, "grid:launch_scene" ) == 0 ) {
|
||||
tmp->action = Event::GRID_LAUNCH_SCENE;
|
||||
}
|
||||
else if ( strcmp( actionJson->valuestring, "grid:selectclipevent" ) == 0 ) {
|
||||
else if ( strcmp( actionJson->valuestring, "grid:special_clip_event" ) == 0 ) {
|
||||
tmp->action = Event::GRID_SELECT_CLIP_EVENT;
|
||||
}
|
||||
else if ( strcmp( actionJson->valuestring, "grid:selectclipenable" ) == 0 ) {
|
||||
else if ( strcmp( actionJson->valuestring, "grid:select_clip_enable" ) == 0 ) {
|
||||
tmp->action = Event::GRID_SELECT_CLIP_ENABLE;
|
||||
}
|
||||
else if ( strcmp( actionJson->valuestring, "master:volume" ) == 0 ) {
|
||||
|
|
|
@ -68,7 +68,6 @@ void LupppGUI::trackSend(int t, int send, float r)
|
|||
|
||||
void LupppGUI::specialScene(int t, int s)
|
||||
{
|
||||
printf("special cene writing event\n");
|
||||
EventGridSelectNewChosen e( t, s );
|
||||
writeToGuiRingbuffer( &e );
|
||||
}
|
||||
|
|
|
@ -104,11 +104,8 @@ void ControllerUpdater::setTrackSend(int t, int send, float v)
|
|||
void ControllerUpdater::specialScene(int t, int scene)
|
||||
{
|
||||
for(unsigned int i = 0; i < c.size(); i++)
|
||||
{
|
||||
printf("calling on c %i, %s\n", i, c.at(i)->getName().c_str() );
|
||||
c.at(i)->specialScene(t, scene);
|
||||
}
|
||||
}
|
||||
|
||||
void ControllerUpdater::masterInputToActive(int to, bool v)
|
||||
{
|
||||
|
|
|
@ -57,6 +57,8 @@ const char* Event::getPrettyName( int type )
|
|||
case GRID_EVENT:{ return EventGridEvent::prettyName; }
|
||||
case GRID_LAUNCH_SCENE:{ return EventGridLaunchScene::prettyName; }
|
||||
|
||||
case METRONOME_ACTIVE:{ return EventMetronomeActive::prettyName; }
|
||||
|
||||
default: return 0;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -202,10 +202,7 @@ void handleGuiEvents()
|
|||
if ( availableRead >= sizeof(EventGridSelectNewChosen) ) {
|
||||
EventGridSelectNewChosen ev;
|
||||
jack_ringbuffer_read( rbToGui, (char*)&ev, sizeof(EventGridSelectNewChosen) );
|
||||
|
||||
LUPPP_NOTE("New special, %i, %i", ev.track, ev.scene);
|
||||
|
||||
|
||||
//LUPPP_NOTE("New special, %i, %i", ev.track, ev.scene);
|
||||
for(int i = 0; i < NTRACKS; i++)
|
||||
{
|
||||
gui->getTrack(i)->getClipSelector()->setSpecial( i == ev.track ? ev.scene : -1 );
|
||||
|
|
|
@ -146,9 +146,10 @@ static void selectLoadController(Fl_Widget* w, void* data)
|
|||
fnfc.directory( s.str().c_str() ); // default directory to use
|
||||
// Show native chooser
|
||||
switch ( fnfc.show() ) {
|
||||
case -1: printf("ERROR: %s\n", fnfc.errmsg()); break; // ERROR
|
||||
case 1: printf("CANCEL\n"); break; // CANCEL
|
||||
default: printf("Loading controller at %s\n", fnfc.filename());
|
||||
case -1: /*printf("ERROR: %s\n", fnfc.errmsg());*/ break; // ERROR
|
||||
case 1: /*printf("CANCEL\n"); */ break; // CANCEL
|
||||
default:
|
||||
//printf("Loading controller at %s\n", fnfc.filename());
|
||||
path = fnfc.filename();
|
||||
break;
|
||||
}
|
||||
|
@ -299,7 +300,12 @@ void ControllerUI::addBinding( Binding* b )
|
|||
// add individual bindings as they're made
|
||||
const char* tmp = Event::getPrettyName( b->action );
|
||||
if ( !tmp )
|
||||
{
|
||||
#ifdef DEBUG_MIDI
|
||||
LUPPP_NOTE("new binding, action string returned NULL, action number %i ", b->action );
|
||||
#endif
|
||||
return;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue