Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

skratchdot/timbre.soundfont.js

Repository files navigation

timbre.soundfont.js

A library that lets you play soundfont urls via timbre.js.

Currently it uses the free-midi repo to get it's sounds via jsonp.

You can play all the instruments in the general midi standard by default, or you can set a different url template, and pull sounds from your own site.

Demo

Timbre.js Soundfont Demo

Dependencies

Usage

	<script src="jsmad.js"></script>
	<script src="timbre.js"></script>
	<script src="timbre.mp3_decode.js"></script>
	<script src="timbre.soundfont.js"></script>
	<script>
		// play note 64
		timbre.soundfont.play(64);
		// set instrument and play again
		timbre.soundfont.setInstrument(5);
		timbre.soundfont.play(64);
		// only play if this note has already been cached
		timbre.soundfont.play(70, false);
	</script>

About

play soundfont urls using timbre.js

Resources

License

Stars

Watchers

Forks

Packages

Contributors

AltStyle によって変換されたページ (->オリジナル) /