Package org.jjazz.outputsynth.api
Class OutputSynth
java.lang.Object
org.jjazz.outputsynth.api.OutputSynth
- Direct Known Subclasses:
OS_YamahaRef
An OutputSynth describes the capabilities of the synth connected to an output Midi device.
It is made of a MidiSynth and UserSettings.
-
Nested Class Summary
Modifier and TypeClassDescriptionclass
The user-dependent settings associated to the OutputSynth: GM remap table, latency, user track default voice, etc. -
Constructor Summary
ConstructorDescriptionOutputSynth
(MidiSynth mSynth) Construct an OutputSynth with the specified midiSynth and default UserSettings. -
Method Summary
Modifier and TypeMethodDescriptionclone()
Get a copy.Find an instrument from this OutputSynth matching (as much as possible) the specified rhythm voice's preferred instrument.void
fixInstruments
(MidiMix mm, boolean fixDrumsRerouting) Fix the specified MidiMix so that it uses instruments from this OutputSynth.Get the MidiSynth of this OutputSynth.Get the instruments that should be used in the specified MidiMix to make it consistent with this OutputSynth.Get the UserSettings of this OutputSynth.static OutputSynth
Get an OutputSynth corresponding to the string produced by saveAsString().Save this OutputSynth as a string so that it can be retrieved by loadFromString().toString()
-
Constructor Details
-
OutputSynth
Construct an OutputSynth with the specified midiSynth and default UserSettings.- Parameters:
mSynth
-
-
-
Method Details
-
clone
Get a copy.Copy will use to the same MidiSynth instance, but UserSettings will be duplicated.
- Returns:
-
getMidiSynth
Get the MidiSynth of this OutputSynth.- Returns:
-
getUserSettings
Get the UserSettings of this OutputSynth.- Returns:
-
findInstrument
Find an instrument from this OutputSynth matching (as much as possible) the specified rhythm voice's preferred instrument.- Parameters:
rv
-- Returns:
- Can't be null. It may be the VoidInstrument for drums/percussion.
-
getNeedFixInstruments
Get the instruments that should be used in the specified MidiMix to make it consistent with this OutputSynth.- Parameters:
mm
-- Returns:
- The channels which need to be fixed and the associated new instrument. Can't be null but returned HashMap can be empty.
- See Also:
-
#fixInstruments(org.jjazz.midimix.api.MidiMix)
-
fixInstruments
Fix the specified MidiMix so that it uses instruments from this OutputSynth.- Parameters:
mm
-fixDrumsRerouting
- If true also try to fix the drums rerouting status of each channel- See Also:
-
saveAsString
Save this OutputSynth as a string so that it can be retrieved by loadFromString().If a
- Returns:
- See Also:
-
loadFromString
Get an OutputSynth corresponding to the string produced by saveAsString().- Parameters:
s
-- Returns:
- Throws:
IOException
- See Also:
-
toString
-