https://github.com/mohayonao/timbre.js
I started working on timbre.js successor, v13.xx.
It's almost a full rewrite, so this project page is no longer recent working.
The new project page is here: http://mohayonao.github.com/timbre.js/
The new timbre.js(v13.xx) is not compatible old timbre.js(v12.xx), but you may approve the new version, because that is truly convenient and super awesome than old.
See Also: Overview of what's new and changed from old timbre.js v12.XX
Project Page — Documentation — Example01 — Example02 — Example03
- Chrome 14.0- (Web Audio API)
- Safari 6.0- (Web Audio API)
- Firefox 4.0- (Audio Data API)
Download the minified library and include it in your html.
<script src="timbre.min.js"></script>Timbre.js is so easy.
// generate a 523Hz(C4) sine
T("sin", 523.25).play();It's useful and powerful.
// generate a chord C-major
T("+", T("sin", 523.35),
T("sin", 659.25),
T("sin", 783.99)).set({mul: 0.25}).play();Looks a bit like CUI Max/MSP??? SuperCollider??
// tremolo & decay
T("*", T("+", T("sin", 523.35),
T("sin", 659.25),
T("sin", 783.99)).set({mul: 0.25}),
T("+tri", 2),
T("adsr", 100, 2500).bang()).play();MIT
2012 12 12 - v12.12.12 (342.09 KB, minified:122.40 KB)
- Fix issue #4
2012 09 21 - v12.09.21 (342.43 KB, minified:122.46 KB)
- Fix: for iOS6
2012 07 24 - v12.07.23 (342.42 KB, minified:122.46 KB)
- Fix
T("adsr", ..., onended) - Add
T("mml")synthpoly property
2012 07 23 - v12.07.23 (341.36 KB, minified:122.06 KB)
- Fix timing control of audioprocessing for Firefox/Linux
2012 07 22 - v12.07.22 (340.72 KB, minified:121.92 KB)
- Fix
T("mml")segno cannot jump correct - Improve
T("mml")selected property
2012 07 18 - v12.07.18 (334.32 KB, minified:120.13 KB)
- Note: Change the version format (Ubuntu style version numbering)
- Add
T("mml")mml scheduler - Add
T("fnoise")frequency noise - Add
T("aux") - Add
T("efx.comp")compressor - Add
T("efx.reverb)reverb - Improved
T("noise"),T("pink")add mul argument for constructor - Improved
T("adsr"),T("ease"),T("glide)add ar-mode - Improved
T("osc")add wave shaping
2012 07 08 - v0.3.7 (294.64 KB, minified:110.66 KB)
- Add
T("-")subtract signals - Add
T("/")divide signals - Add
T("%")modulo signals - Add
T("math")math functions - Improved
T("audio").srcaccept a [File Object]
2012 06 21 - v0.3.6 (272.25 KB, minified:103.22 KB)
- Added
T("pink")pink noise generator - Added
T("pong)signal folding - Added
T("s&h")sample & hold - Improved
T("adsr"),T("perc")arguments for constructor
2012 06 20 - v0.3.5 (257.92 KB, minified:98.90 KB)
- Improved
T("audio")by selecting audio sources(*.ogg, *.mp3, *.wav)
2012 06 20 - v0.3.4 (257.07 KB, minified:98.58 KB)
- Safari 6
2012 06 19 - v0.3.3 (256.87 KB, minified:98.52 KB)
- Added
T("clip"),T("pwm") - Improved
T("adsr),T("perc")by adding envelope curves. - Removed
timbre.fn.doEventthat is an inline-expands function
2012 06 17 - v0.3.2 (292.79 KB, minified:107.25 KB)
- Update
compiler.coffeefor Inline-expands functions, improve performance??
2012 06 14 - v0.3.1
- Improved
T("schedule")
2012 06 12 - v0.3.0 (241.66 KB, minified:94.13 KB)
- Added
T("schedule"),T("scale")
2012 06 07 - v0.2.1
- Added
timbre.setup()that the initial configuration
2012 06 04 - v0.2.0 (217.75 KB, minified:84.00 KB)
- Added
T("phasor"),T("oscx") - Added
T().isUndefinedproperty
2012 06 02 - v0.1.0 (206.26 KB, minified:79.67 KB)
- Initial release of Timbre.js