Coder Social home page Coder Social logo

Can't get examples to work about libmonome HOT 2 CLOSED

monome avatar monome commented on June 22, 2024
Can't get examples to work

from libmonome.

Comments (2)

simonvanderveldt avatar simonvanderveldt commented on June 22, 2024

@amackera I know this is an old issue, but I just ran into this issue as well. Seems like we have/had the same issue.
What does serialoscd tell you on the console? On which port is your grid registered? serialoscd should say something like

serialosc [m<serialnr>]: connected, server running on port <someport>

The issue lies within the examples, which are hardcoded to expect the monome to be reachable on port 8080 (see for example

#define DEFAULT_MONOME_DEVICE "osc.udp://127.0.0.1:8080/monome"
) and the fact that your grid probably isn't registered on that port.

So to make the examples work your grid should listen to port 8080 (on the same machine). To do so stop serialoscd and edit ~/.config/serialosc/m<serialnr>.conf.
Update it so the port setting in the server section is set to 8080.

server {
  port = 8080
}

Now start serialoscd again, plugin your grid and you should see that it's now made available on port 8080

serialosc [m<serialnr>]: connected, server running on port 8080

Now the examples should work.

A quick overview of what they do/should show you:
./test should give a nice lightshow
./simple seems to do nothing, but will light up the buttons you press
./life currently not working, but normally you just press a bunch of buttons at once and watch it unfold. See #49 for a fix for it
./torture Probably what it says on the tin, crashes my grid pretty much immediately :(

from libmonome.

tehn avatar tehn commented on June 22, 2024

examples need an overhaul if this is the case. and the general structure of the examples.

libmonome examples should be non-serialosc examples. any example that requires serialosc seems like it should live in the serialosc repo.

from libmonome.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.