posted by rooker (rooker)
on 25.09.2007 09:42
I'm about to add support for loading/saving of configurations in
serial-pyio.

Does MonomeSerial or SerialXP have any load/save file format? If so,
where can I cet specs/infos/examples?

If not, then I'll propose a simple XML format.
posted by kid-sputnik (kid-sputnik)
on 26.09.2007 06:10
i was gonna go for an XML.  i think joe went with a proprtientary text 
format for monome serial, so i ended up going the other way, and using 
the binary serializer in .NET.

but, for future versions im all for XML.  this allows settings to be 
saved easier as well, and is easily extensible.
posted by rooker (rooker)
on 26.09.2007 07:50
The XML I'm planning to go for is quite simple, but it currently has 
something in it that might make it seem strange for serialXP and 
monomeserial:

<proxy> configuration.

I'll spare you with details as long as it's still "work in progress" and 
probably subject to change, but short:

<monome xmlns="http://monome.org">
  <proxy type="default" label="default">
    <osc prefix="/40h">
      <listen address="127.0.0.1" port="8080" />
      <send address="127.0.0.1" port="8000" />
    </osc>

    <device type="serial" model="40h" interface="/dev/ttyUSB0" 
cablepos="top" />
    <device type="virtual" model="256" label="Virtual 256" />
  </proxy>

  <proxy type="sooperlooper" label="Sooper Looper">
    <osc prefix="/sloop">
      <listen address="127.0.0.1" port="8081" />
      <send address="127.0.0.1" port="8001" />
    </osc>

    <device type="serial" model="40h" interface="/dev/ttyUSB1" 
cablepos="left" />
  </proxy>
</monome>


The <proxy> tag groups several devices together and will be the 
plugin-layer, making it possible to use more than just the "default" set 
of OSC commands (e.g. set_led, led_row, etc...). If non serial-pyio 
applications that want to load this config format, can simply ignore 
everything which is *not* within <proxy type="default"> tags.
posted by kid-sputnik (kid-sputnik)
on 30.09.2007 15:55
looks pretty cool, after the next update i can start working on this for 
monome serial.

using .NET, app.config files are the norm for .NET winforms.  tbut, im 
switching right now over to a native C++ version.  i can still add this, 
but it wont be quite as easy to work with (i gotta look into the Win32 
XML APIs).

oif course, the proxy part might not make sense at the moment, but it 
wouldnt kill anything in monome serial either.