ctlrscript: added track volume

This commit is contained in:
Harry van Haaren 2016-12-04 19:58:07 +00:00
parent 46b022431e
commit 6a73a6d14a
2 changed files with 23 additions and 5 deletions

View file

@ -68,6 +68,11 @@ void luppp_do(enum EVENT_ID id, void* e)
ev->value); ev->value);
break; break;
} }
case EVENT_TRACK_VOLUME: {
struct event_track_volume *ev = (struct event_track_volume *)e;
jack->getLogic()->trackVolume(ev->track, ev->value);
break;
}
default: break; default: break;
} }
} }

View file

@ -29,22 +29,35 @@
enum EVENT_ID { enum EVENT_ID {
EVENT_NOP = 0, EVENT_NOP = 0,
EVENT_TRACK_VOLUME,
EVENT_TRACK_SEND, EVENT_TRACK_SEND,
EVENT_TRACK_SEND_ACTIVE, EVENT_TRACK_SEND_ACTIVE,
}; };
struct event_track_volume {
int track;
float value;
};
struct event_track_send {
int track;
int send;
float value;
};
struct event_track_send_active { struct event_track_send_active {
int track; int track;
int send; int send;
int active; int active;
}; };
struct event_track_send { /*
int track; struct event {
int send; enum EVENT_ID event_id;
float value; union {
struct event_track_send track_send;
struct event_track_send_active track_send_active;
}; };
};
*/
void luppp_do(enum EVENT_ID id, void* event_struct); void luppp_do(enum EVENT_ID id, void* event_struct);
void luppp_write_midi(void *ctlr, unsigned char* midi); void luppp_write_midi(void *ctlr, unsigned char* midi);