You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 2, 2022. It is now read-only.
I've added an optional boolean supportsGeneralMIDI attribute to WebMIDISynths.
If this attribute is defined, and is true, then
both COMMAND.PATCH and CONTROL.BANK MUST be defined.
GM patch names usefully decribe the sounds of patches in bank 0. (GM patch names are returned by WebMIDI.constants.generalMIDIPatchName(patchIndex). )
when the channel index is 9, GM percussion names usefully describe the sounds of the corresponding notes. (GM percussion names are returned by WebMIDI.constants.generalMIDIPercussionName(noteIndex). )
the synth MAY define the following function: boolean patchIsAvailable(patchIndex). On their own, conditions 1-3 do not guarantee that a particular patch can be set.
the synth MAY define the function: void setSoundFont(soundFont). WebMIDISynths could support GM without using soundfonts, or using only a single soundfont that can't be changed.
This issue/solution applies only to software WebMIDIsynths, but it is closely related to WebMDIAPI issue 110.
I've added an optional boolean
supportsGeneralMIDI
attribute to WebMIDISynths.If this attribute is defined, and is
true
, thenCOMMAND.PATCH
andCONTROL.BANK
MUST be defined.WebMIDI.constants.generalMIDIPatchName(patchIndex)
. )WebMIDI.constants.generalMIDIPercussionName(noteIndex)
. )boolean patchIsAvailable(patchIndex)
. On their own, conditions 1-3 do not guarantee that a particular patch can be set.void setSoundFont(soundFont)
. WebMIDISynths could support GM without using soundfonts, or using only a single soundfont that can't be changed.This issue/solution applies only to software WebMIDIsynths, but it is closely related to WebMDIAPI issue 110.
See also [issue #13]
The text was updated successfully, but these errors were encountered: