Class CakewalkInsFileReader
- All Implemented Interfaces:
MidiSynthFileReader
Several JJazzLab-specific extensions marked with {{ ... }} to the .ins format are supported, as described below.
Patch name extensions to adjust the created Instrument with DrumKit, or to define a substitute GM1 instrument:
- For drums instruments: "0=Live!DrumsStandardKit1 {{DrumKit=STANDARD, XG}}". Param1 is a DrumKit.Type value, param2 must be a
value corresponding to a DrumKit.KeyMap.getName().
- For voice instruments: "12=New Marimba {{SubGM1=0}}" defines GM instrument 0 (piano) as the GM substitute for the New Marimba
patch.
Bank name extensions :
- "Patch[10371]=Roland JV-1080 GM {{ GM_BANK }}" : this tells JJazzLab that the "current synth is GM compatible", and it
indicates the location of the GM bank. You can similarly use GM2_BANK or XG_BANK or GS_BANK extension on any bank to tell
JJazzLab that the synth is GM2/XG/GS compatible.
- "Patch[128]=Bank 1 {{ UseGsInstruments }}" : force the use of GSInstrument.java instances for this bank, to enable
drums/melodic - "Patch[*]=Drums {{ UseGsDrumsInstruments }}" : force the use of GSDumrsInstrument.java instances for this bank,
to enable drums/melodic GS voice switch
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetId()
Must be unique amongst MidiSynthProviders.Get the list of file types accepted by this provider.readSynthsFromStream
(InputStream in, File f) Get synth(s) from an input stream.
-
Field Details
-
NAME
- See Also:
-
-
Constructor Details
-
CakewalkInsFileReader
public CakewalkInsFileReader()
-
-
Method Details
-
getId
Description copied from interface:MidiSynthFileReader
Must be unique amongst MidiSynthProviders.- Specified by:
getId
in interfaceMidiSynthFileReader
- Returns:
-
getSupportedFileTypes
Description copied from interface:MidiSynthFileReader
Get the list of file types accepted by this provider.- Specified by:
getSupportedFileTypes
in interfaceMidiSynthFileReader
- Returns:
-
readSynthsFromStream
Description copied from interface:MidiSynthFileReader
Get synth(s) from an input stream.Returned synths must have at least one InstrumentBank. InstrumentBanks can't be empty.
- Specified by:
readSynthsFromStream
in interfaceMidiSynthFileReader
f
- Needed for error messages and logging. Can be null.- Returns:
- Can be an empty list if no synth could be created.
- Throws:
IOException
-