public interface IEditableInstrument
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DEFAULT_PIPESTOPGROUPNAME
Default pipestopgroupname
|
Modifier and Type | Method and Description |
---|---|
void |
addListener(InstrumentDescriptionListener listener) |
void |
addListener(ScaleListener listener)
Add a scale listener ...
|
void |
addListener(SoundSampleListListener listener)
Add sound sample list listener
|
void |
addScript(InstrumentScript script)
Add an instrument script
|
void |
addSoundSample(SoundSample ss,
java.lang.String pipeStopGroup) |
void |
clearDirty()
Reset the dirty flag
|
void |
dispose()
Release all the instrument resources used
|
InstrumentScript |
findScript(java.lang.String name)
Find a script by its name
|
InstrumentScript[] |
findScriptsByType(InstrumentScript.InstrumentScriptType type)
Find all the script of a specified type
|
java.lang.String |
getInstrumentDescription()
Get the instrument description
|
java.awt.Image |
getInstrumentPicture()
Get the instrument picture
|
java.lang.String |
getName()
Get the instrument name
|
SoundSample |
getPercussionSoundSample(PercussionDef pd)
Get the sample associated to a percussion sample
|
java.lang.String[] |
getPipeStopGroupsAndRegisterName()
Get the list of pipestop groups in the instrument
|
SampleMapping |
getSampleMapping(java.lang.String pipeStopGroup,
SoundSample sample)
Get the mapping associated with a pipestopgroup
|
Scale |
getScale()
Get the scale of the instrument
|
InstrumentScript[] |
getScripts()
Get all the scripts associated to an instrument
|
java.util.List<SoundSample> |
getSoundSampleList(java.lang.String pipeStopGroup)
Get the sound sample List ...
|
boolean |
isDirty()
Ask if the instrument is dirty
|
void |
removeListener(InstrumentDescriptionListener listener) |
void |
removeListener(ScaleListener listener)
Remove a scale listener
|
void |
removeListener(SoundSampleListListener listener)
Remove sound sample list listener
|
void |
removeSampleMapping(java.lang.String pipeStopGroup,
SoundSample sample)
Remove a sound sample associated to a pipestopgroup
|
void |
removeScript(java.lang.String name)
Remove a script by its name
|
void |
removeSoundSample(SoundSample ss,
java.lang.String pipeStopGroup) |
void |
setInstrumentDescription(java.lang.String instrumentDescription)
Define the instrument description
|
void |
setInstrumentPicture(java.awt.Image instrumentPicture)
Define the instrument picture
|
void |
setName(java.lang.String name)
Define the name of the instrument
|
void |
setPercussionSoundSample(PercussionDef pd,
SoundSample ss)
define a sample associated to a percussion
|
SampleMapping |
setSampleMapping(java.lang.String pipeStopGroup,
SoundSample sample,
int first,
int end)
Define a sound sample for a pipestopgroup
|
void |
setScale(Scale scale)
Define a new Scale associated to the instrument
|
static final java.lang.String DEFAULT_PIPESTOPGROUPNAME
void setScale(Scale scale)
Scale getScale()
void setName(java.lang.String name)
java.lang.String getName()
java.lang.String[] getPipeStopGroupsAndRegisterName()
void addListener(ScaleListener listener)
listener
- void removeListener(ScaleListener listener)
listener
- void addListener(SoundSampleListListener listener)
listener
- void removeListener(SoundSampleListListener listener)
void addListener(InstrumentDescriptionListener listener)
void removeListener(InstrumentDescriptionListener listener)
java.util.List<SoundSample> getSoundSampleList(java.lang.String pipeStopGroup)
void addSoundSample(SoundSample ss, java.lang.String pipeStopGroup)
void removeSoundSample(SoundSample ss, java.lang.String pipeStopGroup)
SampleMapping getSampleMapping(java.lang.String pipeStopGroup, SoundSample sample)
pipeStopGroup
- sample
- SampleMapping setSampleMapping(java.lang.String pipeStopGroup, SoundSample sample, int first, int end)
pipeStopGroup
- the pipestopgroupsample
- the samplefirst
- the first note of the sample associationend
- the last note of the sample associationvoid removeSampleMapping(java.lang.String pipeStopGroup, SoundSample sample)
pipeStopGroup
- sample
- java.lang.String getInstrumentDescription()
void setInstrumentDescription(java.lang.String instrumentDescription)
instrumentDescription
- void setInstrumentPicture(java.awt.Image instrumentPicture)
instrumentPicture
- java.awt.Image getInstrumentPicture()
void dispose()
boolean isDirty()
void clearDirty()
InstrumentScript[] getScripts()
InstrumentScript findScript(java.lang.String name)
name
- InstrumentScript[] findScriptsByType(InstrumentScript.InstrumentScriptType type)
type
- void removeScript(java.lang.String name)
name
- void addScript(InstrumentScript script)
script
- SoundSample getPercussionSoundSample(PercussionDef pd)
void setPercussionSoundSample(PercussionDef pd, SoundSample ss)
pd
- ss
-