Coder Social home page Coder Social logo

serial2midi's Introduction

Serial2MIDI

This CLI tool allows you to "convert" your serial device to virtual midi device. It also supports sending midi back to the serial device. You can use this tool with ALSA & Jack. This tool is handy with microcontrollers like arduino uno/mega which don't support USB Midi.

Features

  • Supports ALSA & Jack as audio backends
  • You can set name & baud rate
  • Full duplex, this means you can not only receive midi but also send midi back to the serial device
  • Auto reconnect, if you disconnect the serial device, the virtual midi device is still there and continues working if you plug the serial device in again

Install

Arch

There is a PKGBUILD in the AUR. Download it and install it like any other PKGBUILD or use an AUR helper like yay.

yay -S serial2midi-git

From git/source

  1. Clone this repository git clone https://github.com/jikstra/serial2midi.git
  2. cd into the folder cd serial2midi
  3. install python dependencies with pip install -r dependencies.txt
  4. run the tool with python main.py
  5. Optionally, copy it to a folder in your path, for example cp main.py /usr/bin/serial2midi

Usage

usage: serial2midi [-h] [--name NAME] [--baud-rate BAUD_RATE] [--sleep-interval SLEEP_INTERVAL] DEVICE

Convert a USB Serial device to a Midi device

positional arguments:
  DEVICE                Path to the serial device

optional arguments:
  -h, --help            show this help message and exit
  --name NAME           Name of the virtual midi device (default: Serial2MIDI)
  --baud-rate BAUD_RATE
                        Baud rate of serial device (default: 115200)
  --sleep-interval SLEEP_INTERVAL
                        How many seconds we wait between looking for reconnected device. Float is possible. (default: 0.3)

Hacking

Logging

Currently you can change the log level by manually adjusting the LOG_LEVELS array.

serial2midi's People

Contributors

jikstra avatar

Watchers

 avatar

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.