Can anyone run the monome 256 using libmonome using just a c script. In the past with help, I’ve managed to see on the command line the monome has been connected but I cant get any further. I need to know if someone can do a step by step, how to get button presses, lights blinking ect using libmonome I pressume but with just a c file execution please.
So, that worked for installing the library using homebrew, but I’m still having trouble building examples/test.c
First I ran the LIBRARY_PATH command from @alesaccola. Then I ran gcc -o test examples/test.c, which resulted in
Undefined symbols for architecture x86_64:
"_monome_led_all", referenced from:
_main in test-6a9c2d.o
"_monome_led_col", referenced from:
_test_led_col_8 in test-6a9c2d.o
_test_led_col_16 in test-6a9c2d.o
"_monome_led_intensity", referenced from:
_fade_out in test-6a9c2d.o
_main in test-6a9c2d.o
"_monome_led_map", referenced from:
_test_led_map in test-6a9c2d.o
"_monome_led_ring_map", referenced from:
_test_led_ring_set in test-6a9c2d.o
"_monome_led_row", referenced from:
_test_led_row_8 in test-6a9c2d.o
_test_led_row_16 in test-6a9c2d.o
"_monome_led_set", referenced from:
_test_led_on_off in test-6a9c2d.o
"_monome_open", referenced from:
_main in test-6a9c2d.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
No luck it runs for a minute no responce when a buttons pressed then the program terminates. I tried Tinyosc from here: https://github.com/mhroth/tinyosc but no result.
Almost I recovers a post I made earlier in the year “Monome RPI2” where I had help running monome on the RPI but couldnt get a c programe running with that. I havent any of it that also works on mac… heres the link: http://llllllll.co/t/monome-rpi-2/2006
Has anyone successfully run the monome off c alone? If so please share how you managed it, the much needed help will be appreciated. Ive compiled libmonome on the pi top, but not sure where I can go from there. The mac doesn’t yet compile as you can see from this photo. (not sure how to resolve that yet)
Thanks
Talk about a necrobump! I think this is the right topic, though.
I’m able to address the LEDs of my Arc just fine, but the encoder delta callback doesn’t appear to be working. Any thoughts would be appreciated here.
consolidating relevant lines of code, here’s what I have:
// in headers
#define DEFAULT_MONOME_DEVICE "/dev/tty.usbserial-m1100276"
// in main -
arc = monome_open(DEFAULT_MONOME_DEVICE);
void * bb = NULL; // do I need this?
monome_register_handler(arc, MONOME_ENCODER_DELTA, delta, bb);
// later...
void delta(const monome_event_t *e) {
delta_counter++;
}
also reviving libmonome c programming. its very fun and its so great that libmonome works seamlessly on so many platforms I’m currently using it with Bela.
the test code simple.c and test.c work without problems. (i.e. monome_led_set works and monome_led_intensity works). though, I am having trouble getting monome_led_level_map and monome_led_level_set to work. both don’t have any errors, but neither will light up the grid in any way.
I’m using the latest version of libmonome (c63d65e6a166a34308bda08c1525fdf68a72e8c4) and serialosc (e92a07889ac9ca13fb25c6b13c96f8df5b19c968) and compiled in a standard way.