Skip to content
This repository has been archived by the owner on Jul 30, 2024. It is now read-only.
/ supersaw Public archive

Another web-based DJing app (using the WebAudio and WebMIDI APIs)

Notifications You must be signed in to change notification settings

VetoProjects/supersaw

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

supersaw

Another web-based DJing app. It does not look pretty, but it uses a lot of capabilities of the new-and-shiny WebMidi and WebAudio APIs. It is a showcase, if you will.

supersaw is a minimal DJing application in the browser, supporting such things as speed, pitch, volume, a 3-band-equalizer, a couple of basic effects, visualizing the wave forms and, the coolest feature, talking to an external MIDI device (e.g. a controller).

Also a slightly new feature: we created a new html input element based on the range that inherits its behaviour from the range element.

The midi features were tested with an Behringer CMD MM-1. It should understand all midi devices, but returning fancy instructions (e.g. if your midi device supports color change on pressing a button) may fail.

For best performance and experience, please use Google Chrome (we're really sorry). Namely, the Firefox audio tag does not support speed adjustment natively, which sucks for us. Also it does not implement the WebMIDI API just yet, which sucks even harder for us.

Building and Running

We advise you to go to the website to play with the thingie, but if you want to run a local copy (or the server is down), clone the repo, run npm install and grunt (if you want non-minified js) or grunt prod (if you want slightly speedier minified js) and you're good to go. The server should live in localhost:8000. Enjoy!

Note: For using a controller, you have to enable the MIDI API manually for now. It will be enabled by default in the next release of Chrome. Here is a concise answer on how to enable it yourself.

For tinkerers

the html files can be found in html. the only file that might be interesting to you is the knob.html file, where the custom html element is described.

JS code is dived into src, where the main code lies that sets everything up, and lib, where effects and widgets can be found (each in their own file).

We refrained from using any framework except from those builtin in the browser (and grunt for building), so it might seem a bit backwards, but we saw that as a challenge set for ourselves. We do not apologize for any inconveniences this might cause for you.