On Jan 24, 2008 7:26 PM, Ross Johnson <<a href="mailto:Ross.Johnson@homemail.com.au">Ross.Johnson@homemail.com.au</a>> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div><div></div><div class="Wj3C7c">Paul Davis wrote:<br>> On Thu, 2008-01-24 at 14:28 -0500, Sean Corbett wrote:<br>><br>>> Good day all,<br>>><br>>> This is mainly aimed at the Ardour developers, but as it doesn't
<br>>> pertain to the development of Ardour proper, I'm posting it here<br>>> instead of the -dev list (where I've also been lurking for a while).<br>>><br>>> If one were to attempt to add serial port functionality to Ardour,
<br>>> where would the best place be to start?  The control surface code?  My<br>>> idea is to use a simple RS232-controlled relay board to turn on and<br>>> off a "Recording" light in the tracking room of my studio.  There are
<br>>> a ton of such relay boards out there, and I'm guessing there are an<br>>> overabundance of serial port libraries I could use (in fact I probably<br>>> already have some installed).  Eventually I might attempt to do some
<br>>> custom control surface stuff, but I'd be better off keeping it simple<br>>> for now.<br>>><br>><br>> its both simpler and more complex than you think. the easiest method<br>> would just involve adding some code directly to ardour, handling the
<br>> same internal signal that the GUI does to indicate recording status.<br>><br>> a better way would be to have Ardour emit a few bytes (OSC, even) to a<br>> pipe or socket, and have another app listening.<br>
><br></div></div>I don't know if Ardour has the capability or not but wouldn't midi be<br>the better way to go?<br><br>See for example:-<br><a href="http://www.punchlight.com/?q=node/3" target="_blank">http://www.punchlight.com/?q=node/3
</a><br><br></blockquote></div><br>midi would perhaps abe a bit more flexible, but I would think a little 232 relay board would almost certainly be cheaper, and it's really only a matter of sending a simple  3-byte command via the serial port (at least on the couple of boards i've looked into).  the C++ equivalent of echo 'AH1' > /dev/ttyS0 might even work.  i haven't done a lot of development under linux though so i'm not sure.  see here: 
<a href="http://www.pencomdesign.com/2ch_relay.htm">http://www.pencomdesign.com/2ch_relay.htm</a>  (there are other versions of the board, this one's just to give an idea)<br><br>actually having the light flash with the record-arm button and then go solid when rolling would be perfect.  hacking the code is what i might try for now at least...  it would be a way to get my feet wet with the ardour code (
i.e., something i can actually wrap my head around).<br><br>thanks for your time guys...<br>