Tone.js/examples
2020-07-18 17:20:19 -07:00
..
js updated examples and example deps 2020-07-17 17:58:09 -07:00
amSynth.html linting 2020-07-18 17:20:19 -07:00
analysis.html linting 2020-07-18 17:20:19 -07:00
animationSync.html linting 2020-07-18 17:20:19 -07:00
bembe.html linting 2020-07-18 17:20:19 -07:00
buses.html linting 2020-07-18 17:20:19 -07:00
daw.html linting 2020-07-18 17:20:19 -07:00
envelope.html linting 2020-07-18 17:20:19 -07:00
events.html linting 2020-07-18 17:20:19 -07:00
favicon.png updated examples with new interfaces 2019-01-08 20:21:29 -05:00
fmSynth.html linting 2020-07-18 17:20:19 -07:00
funkyShape.html linting 2020-07-18 17:20:19 -07:00
grainPlayer.html linting 2020-07-18 17:20:19 -07:00
index.html linting 2020-07-18 17:20:19 -07:00
jump.html linting 2020-07-18 17:20:19 -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 linting 2020-07-18 17:20:19 -07:00
mixer.html linting 2020-07-18 17:20:19 -07:00
monoSynth.html linting 2020-07-18 17:20:19 -07:00
noises.html linting 2020-07-18 17:20:19 -07:00
offline.html linting 2020-07-18 17:20:19 -07:00
oscillator.html linting 2020-07-18 17:20:19 -07:00
pianoPhase.html linting 2020-07-18 17:20:19 -07:00
pingPongDelay.html linting 2020-07-18 17:20:19 -07:00
pitchShift.html linting 2020-07-18 17:20:19 -07:00
player.html linting 2020-07-18 17:20:19 -07:00
polySynth.html linting 2020-07-18 17:20:19 -07:00
quantization.html linting 2020-07-18 17:20:19 -07:00
rampTo.html linting 2020-07-18 17:20:19 -07:00
README.md README for examples 2019-04-11 15:41:28 -04:00
reverb.html linting 2020-07-18 17:20:19 -07:00
sampler.html linting 2020-07-18 17:20:19 -07:00
shiny.html linting 2020-07-18 17:20:19 -07:00
signal.html linting 2020-07-18 17:20:19 -07:00
simpleHtml.html linting 2020-07-18 17:20:19 -07:00
simpleSynth.html linting 2020-07-18 17:20:19 -07:00
spatialPanner.html linting 2020-07-18 17:20:19 -07:00
stepSequencer.html linting 2020-07-18 17:20:19 -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)