Skip to content
This repository has been archived by the owner on May 2, 2022. It is now read-only.

Using the ResidentSf2Synth on other websites #5

Open
notator opened this issue Nov 10, 2015 · 0 comments
Open

Using the ResidentSf2Synth on other websites #5

notator opened this issue Nov 10, 2015 · 0 comments

Comments

@notator
Copy link
Owner

notator commented Nov 10, 2015

The ResidentSf2Synth can be used on any website: Just copy it together with the WebMIDI folder and any soundFonts that are needed to the site, then:

  1. load the soundFont of choice
  2. call ResidentSf2Synth.setSoundFont(soundfont)
  3. maybe add the ResidentSf2Synth to a synth selector containing hardware synths provided by the browser's implementation of the Web MIDI API
  4. send midi messages to the ResidentSf2Synth in the same way as for any other synth

The file host.js demonstrates how to do this in detail. (This host actually caches soundFonts, which is not something most apps need to do...) See also the SimpleSoundFontSynthHost project.

@notator notator changed the title Using the jigSf2Synth on other websites Using the Sf2Synth1 on other websites Nov 18, 2015
@notator notator changed the title Using the Sf2Synth1 on other websites Using the ResidentSf2Synth on other websites Jun 16, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant