Tone.js/examples
2020-10-15 23:06:51 +01:00
..
js updating ui components 2020-07-19 11:59:44 -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 renaming synth var 2020-07-19 10:18:45 -07:00
bembe.html linting 2020-07-18 17:20:19 -07:00
buses.html linting 2020-07-19 10:18:33 -07:00
daw.html fixing bad link 2020-07-19 13:45:40 -07:00
envelope.html linting 2020-07-18 17:20:19 -07:00
events.html Update example with link to ToneEvent 2020-10-15 23:06:51 +01: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 simplifying example by removing FunkyShape class 2020-07-19 10:19:01 -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 correcting synth type 2020-07-19 10:46:11 -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 ignoring typescript errors 2020-07-19 10:50:20 -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 correcting example 2020-07-19 13:11:58 -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 removing Tone.js deps 2020-07-19 11:40:20 -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)