Uses of Class
org.jjazz.midi.api.Instrument
Package
Description
Service provider for instrument selection dialog.
All Midi stuff: JJazzMidiSystem, Midi synths, Midi instruments, Midi banks, Midi drumkits, drumkit keymaps, Midi file parsers, etc.
The model for the mix of a song (instruments used per channel and their settings, volume, effect, etc.).
A service provider to find the most relevant instrument for a given rhythm voice.
The model of the Midi synth connected to the output of JJazzLab.
Object to transform a Phrase into another one.
The model of a rhythm (or style, e.g "fast swing 4/4"), with its RhythmVoices and RhythmParameters.
The central place to get information about installed rhythms and get Rhythm instances.
-
Uses of Instrument in org.jjazz.instrumentchooser.spi
Modifier and TypeMethodDescriptionabstract Instrument
InstrumentChooserDialog.getSelectedInstrument()
Modifier and TypeMethodDescriptionabstract void
InstrumentChooserDialog.preset
(OutputSynth outSynth, RhythmVoice rv, Instrument preselectedIns, int transpose, int channel) Initialize the dialog. -
Uses of Instrument in org.jjazz.midi.api
Modifier and TypeClassDescriptionclass
InstrumentBank<T extends Instrument>
A set of Instruments grouped in a bank.Modifier and TypeMethodDescriptionInstrument.getCopy()
InstrumentMix.getInstrument()
Get the instrument.MidiSynth.getInstrument
(String patchName) Find an instrument with the specified patchName.final Instrument
MidiSynth.getInstrument
(MidiAddress addr) Find the instrument with the specified address.static Instrument
Instrument.loadFromString
(String s) Get the Instrument corresponding to the string produced by saveAsString().Modifier and TypeMethodDescriptionMidiSynth.findInstruments
(String text) Find instruments in this object's banks which match the given string (ignoring case).MidiSynth.getDrumsInstruments()
Get all the Drums/Percussion instruments from this MidiSynth.MidiSynth.getDrumsInstruments
(DrumKit kit, boolean tryHarder) Get all the drums/percussion instruments which match the specified DrumKit.InstrumentBank.getInstruments
(Predicate<Instrument> tester) Get all the instruments which match the specified predicate.MidiSynth.getInstruments()
Get all the instruments from this MidiSynth.MidiSynth.getInstruments
(Predicate<Instrument> tester) Get all the instruments which match the specified predicate.MidiSynth.getInstrumentsFromSubstitute
(GM1Instrument sub) Get all the instruments whose substitute is sub.MidiSynth.getNonDrumsInstruments()
Get all the non Drums/Percussion instruments from this MidiSynth.Modifier and TypeMethodDescriptionboolean
MidiSynth.contains
(Instrument ins) Check whether this MidiSynth contains this instrument.int
InstrumentBank.getIndex
(Instrument ins) The index of the specified instrument.InstrumentBank.getNextInstrument
(Instrument ins) The next instrument in the database after the specified instrument.static ShortMessage[]
MidiUtilities.getPatchMessages
(int channel, Instrument ins) Build the messages depending of the specified instrument's bank BankSelectionMethod.InstrumentBank.getPreviousInstrument
(Instrument ins) The previous instrument in the database after the specified instrument.final void
InstrumentMix.setInstrument
(Instrument instrument) Set the instrument.Modifier and TypeMethodDescriptionInstrumentBank.getInstruments
(Predicate<Instrument> tester) Get all the instruments which match the specified predicate.MidiSynth.getInstruments
(Predicate<Instrument> tester) Get all the instruments which match the specified predicate. -
Uses of Instrument in org.jjazz.midi.api.synths
Modifier and TypeClassDescriptionfinal class
NotSetBank<T extends Instrument>
Utility bank used only to store the Void instrument.Modifier and TypeClassDescriptionclass
An Instrument from the GM1 bank.class
A special class for GS drums instruments.class
A special class for GS instruments.class
A special "void" instrument: no bank change or program change is associated to this instrument.Modifier and TypeMethodDescriptionstatic Instrument
StandardInstrumentConverter.convertInstrument
(Instrument srcIns, MidiSynth destSynth) Try to find the standard Instrument from destSynth which best matches srcIns.static Instrument
StandardInstrumentConverter.findDrumsInstrument
(DrumKit srcKit, MidiSynth midiSynth, boolean tryHarder) Try to find a GM2/XG/GS/drums percussion instrument from midiSynth which match, as much as possible, srcKit.GSDrumsInstrument.getCopy()
GSInstrument.getCopy()
GM2Bank.getDefaultDrumsInstrument()
GSBank_SC88Pro.getDefaultDrumsInstrument()
GSBank.getDefaultDrumsInstrument()
XGBank.getDefaultDrumsInstrument()
Modifier and TypeMethodDescriptionGM2Bank.getDrumsInstruments
(DrumKit kit, boolean tryHarder) Overridden to accept any GM-compatible keymaps when trying harder.GSBank.getDrumsInstruments
(DrumKit kit, boolean tryHarder) Overridden to accept any GM-compatible keymaps when trying harder.XGBank.getDrumsInstruments
(DrumKit kit, boolean tryHarder) Overridden to accept any GM-compatible keymaps when trying harder.FavoriteInstruments.getInstruments()
All the favorite instruments.FavoriteInstruments.getInstruments
(MidiSynth synth) The favorite instruments for the specified MidiSynth.Modifier and TypeMethodDescriptionboolean
FavoriteInstruments.addInstrument
(Instrument ins) Add a favorite instrument.boolean
FavoriteInstruments.contains
(Instrument ins) static Instrument
StandardInstrumentConverter.convertInstrument
(Instrument srcIns, MidiSynth destSynth) Try to find the standard Instrument from destSynth which best matches srcIns.static GM1Instrument
GMSynth.getGM1Instrument
(Instrument ins) Convenience method to get the GM1Instrument from this synth corresponding to an instrument from a synth's GM bank.boolean
FavoriteInstruments.removeInstrument
(Instrument ins) Remove a favorite instrument.Modifier and TypeMethodDescriptionstatic boolean
GM1Bank.isGM1Compatible
(InstrumentBank<? extends Instrument> bank) Check if the specified bank holds GM1 instruments: check size and a few instruments patch names. -
Uses of Instrument in org.jjazz.midi.api.ui
Modifier and TypeMethodDescriptionInstrumentTable.getSelectedInstrument()
The selected instrument.Modifier and TypeMethodDescriptionvoid
InstrumentTable.setSelectedInstrument
(Instrument ins) Select the row corresponding to the specified instrument.Modifier and TypeMethodDescriptionvoid
InstrumentTable.Model.setInstruments
(List<? extends Instrument> instruments) -
Uses of Instrument in org.jjazz.midimix.api
Modifier and TypeMethodDescriptionMidiMix.getChannelsNeedingDrumsRerouting
(HashMap<Integer, Instrument> mapChannelNewIns) Get the channels which normally need drums rerouting. -
Uses of Instrument in org.jjazz.midimix.spi
Modifier and TypeMethodDescriptionRhythmVoiceInstrumentProvider.findInstrument
(RhythmVoice rv) Find the most appropriate Instrument on the system to render the specified RhythmVoice in a MidiMix. -
Uses of Instrument in org.jjazz.outputsynth.api
Modifier and TypeFieldDescriptionstatic final Instrument
GMRemapTable.DRUMS_INSTRUMENT
Special instances for the Drums/Percussion, since GM1 does not define them.static final Instrument
GMRemapTable.PERCUSSION_INSTRUMENT
Modifier and TypeMethodDescriptionDefaultRhythmVoiceInstrumentProviderImpl.findInstrument
(RhythmVoice rv) OutputSynth.findInstrument
(RhythmVoice rv) Find an instrument from this OutputSynth matching (as much as possible) the specified rhythm voice's preferred instrument.OS_YamahaRef.getDefaultDrumsInstrument()
The Drums instrument of this synth to be used by default.GMRemapTable.getInstrument
(Instrument remappedIns) Get the mapped instrument for remappedIns.GMRemapTable.getInstrument
(Family family) Get the mapped instrument for the specified instrument family.OutputSynth.UserSettings.getUserMelodicInstrument()
Get the user melodic instrument.Modifier and TypeMethodDescriptionGMRemapTable.getFamilyInstrumentMap()
The map which associates a GM family to an instrument from the associated MidiSynth.GMRemapTable.getInstrumentMap()
The map which associates a GM instrument (+ the special drums instances) to an instrument from the associated MidiSynth.GMRemapTable.getInstrumentMap()
The map which associates a GM instrument (+ the special drums instances) to an instrument from the associated MidiSynth.OutputSynth.getNeedFixInstruments
(MidiMix mm) Get the instruments that should be used in the specified MidiMix to make it consistent with this OutputSynth.Modifier and TypeMethodDescriptionstatic void
GMRemapTable.checkRemappedInstrument
(Instrument remappedIns) Check that the specified remapped Instrument is valid.GMRemapTable.getInstrument
(Instrument remappedIns) Get the mapped instrument for remappedIns.void
GMRemapTable.setInstrument
(Instrument remappedIns, Instrument ins, boolean useAsFamilyDefault) Set the mapped instrument for remappedIns.void
OutputSynth.UserSettings.setUserMelodicInstrument
(Instrument ins) Set the value of userInstrument. -
Uses of Instrument in org.jjazz.outputsynth.api.ui
Modifier and TypeMethodDescriptionRemapTableInstrumentChooser.getSelectedInstrument()
RemapTableUI.getSelectedRemappedInstrument()
Get the selected remapped Instrument.Modifier and TypeMethodDescriptionvoid
RemapTableInstrumentChooser.preset
(GMRemapTable remapTable, Instrument remappedIns) void
RemapTableUI.setSelectedRemappedInstrument
(Instrument ins) Set the selected instrument. -
Uses of Instrument in org.jjazz.phrasetransform.api
Modifier and TypeMethodDescriptionstatic Instrument
PhraseTransforms.getInstrument
(SizedPhrase sp, SongPartContext context) -
Uses of Instrument in org.jjazz.rhythm.api
Modifier and TypeMethodDescriptionRhythmVoice.getPreferredInstrument()
The preferred Instrument for this voice.ModifierConstructorDescriptionRhythmVoice
(DrumKit drumKit, Rhythm container, RhythmVoice.Type type, String name, Instrument ins, int preferredChannel) Create a drums/percussion RhythmVoice with a default InstrumentSettings.RhythmVoice
(DrumKit drumKit, Rhythm container, RhythmVoice.Type type, String name, Instrument ins, InstrumentSettings is, int preferredChannel) Create a RhythmVoice for Drums/Percussion instruments.RhythmVoice
(Rhythm container, RhythmVoice.Type type, String name, Instrument instrument, int preferredChannel) Create a RhythmVoice for a non-drums voice with a default InstrumentSettings.RhythmVoice
(Rhythm container, RhythmVoice.Type type, String name, Instrument ins, InstrumentSettings is, int preferredChannel) Create a RhythmVoice for a non-drums voice. -
Uses of Instrument in org.jjazz.rhythmdatabase.api