Serialosc intensity and levels api

  • I'm working on a serialosc emulator and I'm bit confused about the level and intensity api.

    /grid/led/intensity i

    What does this do exactly?
    - set intensity level to be used by newly toggled leds?
    - set intensity level for all leds at once, turning them on / off?
    - change intensity level for all active leds, and remember for new leds?


    /grid/led/level/set x y l
    /grid/led/level/all l
    /grid/led/level/map x_off y_off l[64]
    /grid/led/level/row x_off y l[..]
    /grid/led/level/col x y_off l[..]

    I guess these are the same as the api without /level in between. They are directly setting led states using one of 16 value levels [0-15].

    If you use /grid/led/set x y s, is the last intensity value used or is the led always full on if s=1?


    For older devices these levels are truncated to 4 intensity levels, according to the docs:

    [0, 3] - off
    [4, 7] - low intensity
    [8, 11] - medium intensity
    [12, 15] - high intensity

    I noticed that Flin from the monome_sum package, is sending intensity 4 for all the non active leds. If I used the conversion above, that means that all non active leds get a low intensity light. Is this supposed to be like that, or is there a roundoff error in serialosc (so that 4 is actually off), or maybe bug in Flin?

  • Thanks Raja that was a very clear explanation. I got it. Everything is working smoothly with all the apps I've tried. I'm really enjoying my fake grids. There are so many inspiring apps available I feel almost guilty for not buying the official device.

    In return I'll release the serialosc emulator, but that probably isn't helping sales either :s

  • emulators welcome! it might actually help sales, no worries.

  • Ok I really hope so :)

    This thing will be pretty much plug and play. On the downside it prevents you from using the official serialosc simultaneously because in order to emulate it it's listening on 12002.

  • Brian, maybe you can comment on my question about Flin and brightness = 4?

    I've tried the standalone Flin 0.6.2, but that one uses different osc messages and doesn't seem to be compatible with the new serialosc or something. At least it doesn't work for me and its output looks suspicious:

    serialosc.maxpat: 2014-may
    /flinserialosc-out: /flin/grid/led/col 6 0 0 1984
    /flinserialosc-out: /flin/grid/led/col 6 0 0 3968
    /flinserialosc-out: /flin/grid/led/col 6 0 0 7936
    /flinserialosc-out: /flin/grid/led/col 6 0 0 15872
    /flinserialosc-out: /flin/grid/led/col 6 0 0 31744
    /flinserialosc-out: /flin/grid/led/col 6 0 0 63488
    /flinserialosc-out: /flin/grid/led/col 6 0 0 126976
    /flinserialosc-out: /flin/grid/led/col 6 0 0 253952
    /flinserialosc-out: /flin/grid/led/col 6 0 0 507904
    /flinserialosc-out: /flin/grid/led/col 6 0 0 1015808
    /flinserialosc-out: /flin/grid/led/col 6 0 0 2031616
    /flinserialosc-out: /flin/grid/led/col 6 0 0 4063232
    /flinserialosc-out: /flin/grid/led/col 6 0 0 8126464
    /flinserialosc-out: /flin/grid/led/col 6 0 0 -524288
    /flinserialosc-out: /flin/grid/led/col 6 0 1 -1048576
    /flinserialosc-out: /flin/grid/led/col 6 0 3 -2097152
    /flinserialosc-out: /flin/grid/led/col 6 0 7 -4194304
    /flinserialosc-out: /flin/grid/led/col 6 0 15 -8388608


    In the monome_sum version this is the output:

    /managerserialosc-out: /manager/grid/led/all 0
    /managerserialosc-in: /manager/grid/key 3. 2. 1.
    /managerserialosc-in: /manager/grid/key 3. 2. 0.
    /managerserialosc-out: /manager/grid/led/level/col 3 0 10 4 4 4 4 4 4 4
    /managerserialosc-out: /manager/grid/led/level/col 3 0 4 10 4 4 4 4 4 4
    /managerserialosc-out: /manager/grid/led/level/col 3 0 4 4 10 4 4 4 4 4
    /managerserialosc-out: /manager/grid/led/level/col 3 0 4 4 4 10 4 4 4 4
    /managerserialosc-out: /manager/grid/led/level/col 3 0 4 4 4 4 10 4 4 4
    /managerserialosc-out: /manager/grid/led/level/col 3 0 4 4 4 4 4 10 4 4
    /managerserialosc-out: /manager/grid/led/level/col 3 0 4 4 4 4 4 4 10 4
    /managerserialosc-out: /manager/grid/led/level/col 3 0 4 4 4 4 4 4 4 10
    /managerserialosc-out: /manager/grid/led/level/col 3 0 4 4 4 4 4 4 4 4
    /managerserialosc-out: /manager/grid/led/level/col 3 0 4 4 4 4 4 4 4 4
    /managerserialosc-out: /manager/grid/led/level/col 3 0 4 4 4 4 4 4 4 4

    So my question is. Are these level 4 values supposed to map to disabled leds like in the original flin, or are they dim lights like the documentation on levels suggests?