comparison examples/basic_libpd/render.cpp @ 363:6e428d6b57ef prerelease

updated set_startup
author Giulio Moro <giuliomoro@yahoo.it>
date Thu, 09 Jun 2016 01:25:32 +0100
parents f3dd39be15e4
children 9dc5a0ccad25
comparison
equal deleted inserted replaced
362:0372fb8e8309 363:6e428d6b57ef
58 #define LIBPD_DIGITAL_OFFSET 11 // digitals are preceded by 2 audio and 8 analogs (even if using a different number of analogs) 58 #define LIBPD_DIGITAL_OFFSET 11 // digitals are preceded by 2 audio and 8 analogs (even if using a different number of analogs)
59 59
60 void Bela_messageHook(const char *source, const char *symbol, int argc, t_atom *argv){ 60 void Bela_messageHook(const char *source, const char *symbol, int argc, t_atom *argv){
61 if(strcmp(source, "bela_setDigital") == 0){ 61 if(strcmp(source, "bela_setDigital") == 0){
62 // symbol is the direction, argv[0] is the channel, argv[1] (optional) 62 // symbol is the direction, argv[0] is the channel, argv[1] (optional)
63 // is signal(\"sig\" or \"~\") or message(\"mess\", default) rate 63 // is signal("sig" or "~") or message("message", default) rate
64 bool isMessageRate = true; // defaults to message rate 64 bool isMessageRate = true; // defaults to message rate
65 bool direction = 0; // initialize it just to avoid the compiler's warning 65 bool direction = 0; // initialize it just to avoid the compiler's warning
66 bool disable = false; 66 bool disable = false;
67 if(strcmp(symbol, "in") == 0){ 67 if(strcmp(symbol, "in") == 0){
68 direction = INPUT; 68 direction = INPUT;