GithubHelp home page GithubHelp logo

monome's Introduction

monome

Filed under "crazy experiments using as many of my repositories as possible", this is the source for a very quickly hacked together Monome for Chrome.

It uses the Web Audio API to generate all the sounds from raw oscillators. Which sound awful, by the way - if you just turn a sound on and off you get cracks and bangs from harmonics. So I used my animation library (Tween) to provide envelope filters for the sounds. I also used a BiQuadFilter as a low pass filter to get rid of the last of the clicks.

I also discovered that the Web Audio stuff does not attempt to balance inputs, so if you have two oscillators going into something, both at full blast, it clips and distorts in a very unpleasant way. Adjusting the gain for the number of notes playing at once is the thing that made this actually work, I think.

I also used my Tick library to form the basis of the sequencer's timings. To be honest I found it better to start playing a note immediately and ramping up the gain when the note was due to start, then fading it out after the note was due to finish. The timing is pretty stable, I think, but it's possible it could be improved.

Added a few fancy CSS3 animations just to make it look a bit shiny and that's about it really.

Demo

Link to live demo

Running locally

Assuming you have Node and npm already installed...

$ npm install http-server
$ http-server . -p 3000

...Then open http://localhost:3000

Building

If you absolutely need to build this locally you need a few command line tools. I'm not adding a Grunt file for this because it's not going to get worked on again.

$ npm install -g component flatinator
$ make

History

  • 9th November 2013 - Now uses Flatinator as part of the build step to reduce the size of the build.
  • 13th July 2013 - Rejiggerated to use only 16 permanently running oscillators, with notes sounding via envelope filters rather than generating an oscillator every time a note sounds.
  • 12th July 2013 - Initial version

License

MIT

monome's People

Stargazers

Robbie Jacobs avatar Michael Anthony avatar Robbert Halff avatar @paulcampbell_ avatar Zach Denton avatar shi avatar

Watchers

Charlotte Gore avatar James Cloos avatar shi avatar Michael Anthony avatar

Forkers

organi5m

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.