Giter VIP home page Giter VIP logo

ardour_tally_relay's Introduction

Tally light driver for use with Ardour and cheap USB relay devices

This simple script connectes to asks Ardour for current 'recording enabled' status via OSC and when recording is enabled toggles a USB relay to turn the 'Recording' lamp on.

It is compatible with the cheap chinese 'USB Relay' devices idenfied as:

ID 16c0:05df Van Ooijen Technische Informatica HID device except mice, keyboards, and joysticks

Currently only the first relay on the device is supported (in case of devices with multiple relays).

Requirements

  • Compatible USB device
  • Ardour 5 or other compatible version
  • Python 3.5 or newer
  • hidapi Python module
  • python-osc Python module

Usage

Installation

First, to allow non-root user to use this script, add the provided 50-usbrelay.rules file to /etc/udev/rules.d. Update the file for your own needs (mode 0666 is not good for everybody).

Just running the script would connect to the Ardour running on the local host and use the first USB relay device detected. Use the --ardour option to point to a different host running Ardour.

See ardour_tally_relay.py --help for other options.

Ardour configuration

To make Ardour work with this script OSC control surface support must be enabled. To do that enter Preferences / Control Surfaces, select 'Open Sound Control (OSC)' and check 'Enable'.

The defaults in 'Show Protocol Settings' dialog should work, but setting the Port Mode to 'Auto' may make sense. This will allow to use any local port for ardour_tally_relay and using other OSC servers on the same host, without any further configuration in Ardour.

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.