External Record Start/Stop Control

We all have our ideas regarding recording! Share your experience.
Forum rules
If you require help using Audacity, please post on the forum board relevant to your operating system:
Windows
Mac OS X
GNU/Linux and Unix-like
Post Reply
steph212
Posts: 27
Joined: Sat Apr 28, 2012 8:59 am
Operating System: Please select

External Record Start/Stop Control

Post by steph212 » Tue May 01, 2012 8:38 pm

It would be very useful to me to be able to start and stop the record process, and maybe to pause it too, with an external electrical signal such as a serial or parallel port bit. There are many applications to which Audacity could be put if it could be controlled this way.

Although it would be feasible to emulate the keyboard and use the "R" and "S" keystrokes to start and stop recording, this seems excessively complex. I'm not aware of any off-the-shelf device which could be purchased to inject these keystrokes into the keyboard input or via a USB input using a USB keyboard driver, so using the keyboard commands probably would require building hardware.

steve
Site Admin
Posts: 80677
Joined: Sat Dec 01, 2007 11:43 am
Operating System: Linux *buntu

Re: External Record Start/Stop Control

Post by steve » Tue May 01, 2012 8:46 pm

How about a wireless keyboard?
steph212 wrote: There are many applications to which Audacity could be put if it could be controlled this way.
Such as? What do you have in mind?
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

kozikowski
Forum Staff
Posts: 68901
Joined: Thu Aug 02, 2007 5:57 pm
Operating System: macOS 10.13 High Sierra

Re: External Record Start/Stop Control

Post by kozikowski » Tue May 01, 2012 8:49 pm

Bluetooth keyboards.

Simulating keypresses is not straightforward and Audacity does not work well over a network -- although Remote Desktop programs could be tried. Audacity hates sending hot audio data over a network.

A keypress is two commands: Press and Release. That's how the computer knows whether or not to go into TypeMatic®. It's not just a contact closure. And if you do use a contact closure, you have to debounce and clean it up.

Radio Shack has been selling microcontrollers and you might be able to work something up with that.

http://www.radioshack.com/uc/index.jsp? ... &noBc=true

Koz

steph212
Posts: 27
Joined: Sat Apr 28, 2012 8:59 am
Operating System: Please select

Re: External Record Start/Stop Control

Post by steph212 » Tue May 01, 2012 9:27 pm

Thanks for your reply. But the topic is "Adding Features to Audacity". There are all sorts of external complex hardware solutions that would become projects in themselves and require replicating the hardware for anyone else to use them. I raised the question here on the hope that it would be considered as a software enhancement that would be usable by others.

Yes, I know how PC and AT keyboards work. It's actually not that difficult to emulate the data stream with a few SSI ICs and probably less work than getting involved in a firmware development project.

steve
Site Admin
Posts: 80677
Joined: Sat Dec 01, 2007 11:43 am
Operating System: Linux *buntu

Re: External Record Start/Stop Control

Post by steve » Tue May 01, 2012 9:46 pm

steph212 wrote:I raised the question here on the hope that it would be considered as a software enhancement that would be usable by others.
A serial port controller is not software. For Audacity to support control via serial port data it would need to know the protocol and encoding used by the "device" that is sending the data. I don't see how Audacity could provide software support for an unknown/arbitrary control device over an arbitrary/unknown interface port. Perhaps it would be clearer what you mean if you gave an example.
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

steph212
Posts: 27
Joined: Sat Apr 28, 2012 8:59 am
Operating System: Please select

Re: External Record Start/Stop Control

Post by steph212 » Tue May 01, 2012 10:29 pm

Not so. I said serial or parallel port bit, meaning a status bit. I should have been more explicit. There is no protocol involved in a polled status bit. it has either of 2 states: on or off, depending on the electrical condition imposed on the connector pin.

Post Reply