Giter VIP home page Giter VIP logo

notehandlerclass's Introduction

NoteHandlerClass

The NoteHandler class was developed throughout the construction of Azure Talos, a multi-string mechatronic chordophone. This class is part of the system's firmware, and is responsible for using incoming MIDI note values to look up the robot arm positions and clamping servomotor values that the guitar robot uses to play each note.

Using the class:

The class is initialized with two arrays of integer values, one that includes the expected MIDI values, and their corresponding robot arm positions. The class also expects a third argument with the size of the arrays.

NoteHandler handler(midiNotes, posValues, arraySize)

The class uses the applyPos function to perform actions upon receiving a MIDI note values. It expects two arguments, the first is the incoming MIDI note value, and the second is the callback function to be executed after using the MIDI value to look up the robot arm position or clamping servomotor value.

handler(note, callback)

This function is overloaded to use the velocity value of the note if needed>

handler(note, velocity, callback)

notehandlerclass's People

Watchers

James Cloos avatar JP Yepez 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.