Git Product home page Git Product logo

miditester's Introduction

miditester

a utility program which sends and receives MIDI bytes

Copyright (C) 2017 Dan Wilcox [email protected]

Description

When working with MIDI software projects, it's often useful to be able to generate and print incoming MIDI messages to make sure MIDI input handling is working as expected. This small commandline utility provides this functionality by either listening for messages or sending a series of test messages based on the required message type.

The project utilizes RtMidi library for MIDI communication.

Building

This is a simple commandline utility and should work on macOS, Linux, & Windows.

Build requirements:

  • C++ compiler: gcc or clang
  • GNU make

For building on Windows, Msys2 can provide the necessary shell environment and compiler chain.

On Linux, you will need the development files for ALSA.

Build miditester using make:

make

Usage

By default, miditester opens the first MIDI port, sends all output test messages, and uses channel 1 for channel-based messages.

./miditester

To listen for incoming messages, use the input test argument:

./miditester input

All available options are listed in the help output using the -h or --help flags:

Usage: miditester [OPTIONS] [TEST]

  a utility program which sends and receives MIDI bytes

Options:

  -p,--port    MIDI port to use 0-n, default 0
  -c,--chan    MIDI channel to send to 1-16, default 1
  -s,--speed   Millis between messages,
               defaults: input 40, output 500
  -d,--decimal Print decimal byte values instead of hex
  -n,--name    Print status byte name instead of value
  -l,--list    List available MIDI ports and exit
  -h,--help    This help print

TEST:

  input    Listen & print MIDI messages

  all      Run all output tests below, default

  channel  Channel messages  80 - E0
  system   System messages   F0 - F7
  realtime Realtime messages F8 - FF
  running  Running status tests
  sysex    Sysex tests
  timecode Timecode tests: quarter & full frame

For example, to choose a specific MIDI port, first use the -l or --list flag which prints the available ports:

./miditester --list
input ports:
  0: IAC Driver Pure Data In
  1: IAC Driver Pure Data Out
output ports:
  0: IAC Driver Pure Data In
  1: IAC Driver Pure Data Out

You can then specify the port number with the -p or --port flags:

./miditester --port 1

To choose a specific test set, add the optional test argument:

./miditester --port 1 realtime

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.