java.lang.Object
org.fluidsynth.api.Configuration
- public class Configuration
- extends java.lang.Object
An object representing a user configuration of the synth.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
settings
private org.fluidsynth.api.settings.Settings settings
dirty
private boolean dirty
file
private java.io.File file
settingsMerged
private boolean settingsMerged
soundFonts
java.util.Map soundFonts
channels
java.util.Map channels
Configuration
public Configuration()
- No-arg constructor is required in order to be persisted to XML via Castor.
Configuration
public Configuration(org.fluidsynth.api.settings.Settings settings)
- Construct a Configuration with the given settings.
setFile
public void setFile(java.io.File f)
- Set the file that this Configuration object is persisted in.
getFile
public java.io.File getFile()
- Get the file that this Configuration object is persisted in.
getName
public java.lang.String getName()
- Get the display name of this configuration.
getSettings
public org.fluidsynth.api.settings.Settings getSettings()
- Get the settings associated with this configuration.
setSettings
public void setSettings(org.fluidsynth.api.settings.Settings settings)
- Set the settings associated with this configuration.
getModifiedConfiguration
public Configuration getModifiedConfiguration()
- Get a version of this configuration suitable for persistence to disk.
dirty
public void dirty()
- Sets the dirty flag. Dirty configuration are in need of being saved to disk.
clearDirty
public void clearDirty()
- Clear the dirty flag.
isDirty
public boolean isDirty()
- Gets the dirty flag. Dirty configuration are in need of being saved to disk.
getSettingsMerged
public boolean getSettingsMerged()
setSettingsMerged
void setSettingsMerged(boolean merged)
insertSoundFont
public void insertSoundFont(org.fluidsynth.api.sf2.SoundFont soundFont)
unloadSoundFont
public void unloadSoundFont(org.fluidsynth.api.sf2.SoundFont soundFont)
lookupSoundFont
public org.fluidsynth.api.sf2.SoundFont lookupSoundFont(java.lang.String path)
lookupSoundFont
public org.fluidsynth.api.sf2.SoundFont lookupSoundFont(int id)
setSoundFont
public void setSoundFont(org.fluidsynth.api.sf2.SoundFont[] sf2s)
getSoundFont
public org.fluidsynth.api.sf2.SoundFont[] getSoundFont()
insertChannel
public void insertChannel(org.fluidsynth.api.sf2.Channel channel)
lookupChannel
public org.fluidsynth.api.sf2.Channel lookupChannel(int channel)
setChannel
public void setChannel(org.fluidsynth.api.sf2.Channel[] channels)
getChannel
public org.fluidsynth.api.sf2.Channel[] getChannel()