Class PatchProvider
java.lang.Object
org.jfugue.midi.PatchProvider
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringStatus when the PatchProvider has no defined soundbank filestatic final StringStatus when loadPatchesIntoSynthesizer is successfulstatic final StringStatus 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_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:
InvalidMidiDataExceptionIOException
-