Tone.js/examples
2020-07-17 18:40:50 -07:00
..
js updated examples and example deps 2020-07-17 17:58:09 -07:00
amSynth.html updated examples and example deps 2020-07-17 17:58:09 -07:00
analysis.html updated examples and example deps 2020-07-17 17:58:09 -07:00
animationSync.html updated examples and example deps 2020-07-17 17:58:09 -07:00
bembe.html updated examples and example deps 2020-07-17 17:58:09 -07:00
buses.html updated examples and example deps 2020-07-17 17:58:09 -07:00
daw.html updated examples and example deps 2020-07-17 17:58:09 -07:00
envelope.html updated examples and example deps 2020-07-17 17:58:09 -07:00
events.html updated examples and example deps 2020-07-17 17:58:09 -07:00
favicon.png updated examples with new interfaces 2019-01-08 20:21:29 -05:00
fmSynth.html updated examples and example deps 2020-07-17 17:58:09 -07:00
funkyShape.html updated examples and example deps 2020-07-17 17:58:09 -07:00
grainPlayer.html updated examples and example deps 2020-07-17 17:58:09 -07:00
index.html updated examples and example deps 2020-07-17 17:58:09 -07:00
jump.html updated examples and example deps 2020-07-17 17:58:09 -07:00
lfoEffects.html updated examples and example deps 2020-07-17 17:58:09 -07:00
meter.html updated examples and example deps 2020-07-17 17:58:09 -07:00
mic.html updated examples and example deps 2020-07-17 17:58:09 -07:00
mixer.html updated examples and example deps 2020-07-17 17:58:09 -07:00
monoSynth.html updated examples and example deps 2020-07-17 17:58:09 -07:00
noises.html updated examples and example deps 2020-07-17 17:58:09 -07:00
offline.html updated examples and example deps 2020-07-17 17:58:09 -07:00
oscillator.html updated examples and example deps 2020-07-17 17:58:09 -07:00
pianoPhase.html updated examples and example deps 2020-07-17 17:58:09 -07:00
pingPongDelay.html updated examples and example deps 2020-07-17 17:58:09 -07:00
pitchShift.html updated examples and example deps 2020-07-17 17:58:09 -07:00
player.html moved all of the example audio to a separate repo 2020-07-17 18:40:50 -07:00
polySynth.html updated examples and example deps 2020-07-17 17:58:09 -07:00
quantization.html updated examples and example deps 2020-07-17 17:58:09 -07:00
rampTo.html updated examples and example deps 2020-07-17 17:58:09 -07:00
README.md README for examples 2019-04-11 15:41:28 -04:00
reverb.html updated examples and example deps 2020-07-17 17:58:09 -07:00
sampler.html updated examples and example deps 2020-07-17 17:58:09 -07:00
shiny.html updated examples and example deps 2020-07-17 17:58:09 -07:00
signal.html updated examples and example deps 2020-07-17 17:58:09 -07:00
simpleHtml.html WIP updating examples for latest version 2020-07-17 17:36:42 -07:00
simpleSynth.html updated examples and example deps 2020-07-17 17:58:09 -07:00
spatialPanner.html updated examples and example deps 2020-07-17 17:58:09 -07:00
stepSequencer.html updated examples and example deps 2020-07-17 17:58:09 -07:00

These examples use web components (e.g. <tone-example>) which are defined in the Tonejs/ui repository.

Running examples locally

Check out the repository, and from the root run:

$ npm install
...
$ npm run build

Once this is done, you can start a local server with Python:

$ python -m SimpleHTTPServer 8000

Then, from a browser visit http://localhost:8000/examples. (See also: installation instructions on the wiki)

Adding examples

To contribute examples, please follow the current style of the examples. Add your example's title and file name to js/ExampleList.json file for it to appear in the examples list on the index page. (cf. CONTRIBUTING.md)