Git Product home page Git Product logo

hack-a-thing-1-tinykeys's Introduction

TinyKeys, a basic additive synth

TinyKeys uses the Beads library to create oscillators, gain controls, and glides with up to 10 note polyphony supported. This allows the use of square, sine, saw, and triangle waveforms for playing notes, in addition to noise for sound effects. TinyKeys uses the swing framework for its GUI and to display the notes on a staff as they are played.

Challenges

I was attempting to add midi support for use with real keyboards, but I could not get Java's built in midi methods to recognize the USB midi controller I was able to borrow from Jones. As a fallback measure, I simply used the PC keyboard which works fine, but is less ergonomic and in most cases does not support ten key rollover, limiting the use of polyphony. (e.g., my laptop keyboard will only recognize up to 4 keys at a time, and depending on their locations, often less than that.)

Lessons learned

Java introduces enough latency that I wouldn't want to use it for a real time software synth. Swing is pretty clunky, and I wouldn't want to use it for my full project. Beads is actually a good library, and has useful documentation for people who have never build a synth before. Additive synthesis would quickly get expensive if I wanted to create realistic sounding instruments--this is easier to achieve with either samples or modular synthesis, most likely FM synthesis.

Instructions

Play TinyKeys using the keyboard as though it were a piano keyboard. A plays middle C. W plays C#. S plays D. etc.

Adding attack and decay is handled though the GUI, as is changing the type of waveform.

hack-a-thing-1-tinykeys's People

Contributors

tedbausch avatar

Watchers

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