Package org.jfugue.midi
Class PatchProvider
java.lang.Object
org.jfugue.midi.PatchProvider
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
Status when the PatchProvider has no defined soundbank filestatic final String
Status when loadPatchesIntoSynthesizer is successfulstatic final String
Status when the Synthesizer given to loadPatchesIntoSynthesizer cannot support the loaded soundbank -
Constructor Summary
ConstructorsConstructorDescriptionPatchProvider
(File soundbankFile) PatchProvider
(File soundbankFile, int... patchIndexes) PatchProvider
(File soundbankFile, List<Patch> patches) -
Method Summary
Modifier and TypeMethodDescriptionLoads the soundbank into the given synthesizer - or tries to.
-
Field Details
-
STATUS_OK
Status when loadPatchesIntoSynthesizer is successful- See Also:
-
STATUS_NO_SOUNDBANK_FILE
Status when the PatchProvider has no defined soundbank file- See Also:
-
STATUS_SOUNDBANK_NOT_SUPPORTED
Status when the Synthesizer given to loadPatchesIntoSynthesizer cannot support the loaded soundbank- See Also:
-
-
Constructor Details
-
PatchProvider
-
PatchProvider
-
PatchProvider
-
-
Method Details
-
getSoundbankFile
-
getPatches
-
loadPatchesIntoSynthesizer
public String loadPatchesIntoSynthesizer(Synthesizer synth) throws InvalidMidiDataException, IOException Loads the soundbank into the given synthesizer - or tries to. If the method is not successful, it will return a status other than STATUS_OK.- Throws:
InvalidMidiDataException
IOException
-