Giter Site home page Giter Site logo

midi-synth-latency's Introduction

This is a tool for measuring end-to-end MIDI synthesizer latency.

Disclaimer: This is not an official Google product.

It works with any Device Under Test (DUT) including Android and iOS with any
synthesizer app, Linux, Windows, macOS, and hardware synthesizers which can take
USB MIDI as input. The only connections which are required is analog audio into
the Teensy and a USB connection to the DUT. Note that the Teensy is set to
operate in gadget mode, so mobile devices will require an OTG cable or
equivalent.

The tool is based on WALT (https://github.com/google/walt) but uses different
software. The audio portion is the same as WALT, so please refer to the
schematic provided in the hardware folder of the repo. In addition, it requires
an I2C controlled LCD such as one that uses a SainsmartLCD2004 controller. This
is the one that I used:
https://www.amazon.com/SainSmart-Module-Arduino-Board-White/dp/B003B22UR0.
Connect SDA0 and SCL0 to the respective pins on the LCD. Also connect these
signals to 3V3 via a 3.3K pull-up resistor. GND on the LCD connects to GND on
the Teensy and VCC goes to Vin assuming the Teensy is powered over USB.

See the note in the arduino directory of that repo for help setting up your
compilation environment.

This tool works by generating MIDI noteOn messages over USB and measuring how
long it takes for the DUT to produce sound above a certain threshold in
response. This means that voices using a strong attack such as percussion are
ideal and the volume on the synthesizer should be set to the maximum level.

The results are summarized on the LCD but exporting of raw data is currently not
implemented.

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.