public class SynchronizedEditableInstrument extends java.lang.Object implements IEditableInstrument
DEFAULT_PIPESTOPGROUPNAME| Constructor and Description |
|---|
SynchronizedEditableInstrument(IEditableInstrument wrappedEditableInstrument,
long id,
long version,
java.lang.String status,
java.lang.String referenceName) |
| 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 |
changeStatus(java.lang.String newStatus) |
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
|
java.lang.String |
getReferenceName() |
java.lang.Long |
getRepositoryInstrumentID() |
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 ...
|
java.lang.String |
getStatus() |
java.lang.Long |
getVersion() |
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
|
public SynchronizedEditableInstrument(IEditableInstrument wrappedEditableInstrument, long id, long version, java.lang.String status, java.lang.String referenceName)
public void addListener(ScaleListener listener)
IEditableInstrumentaddListener in interface IEditableInstrumentpublic void addListener(SoundSampleListListener listener)
IEditableInstrumentaddListener in interface IEditableInstrumentpublic void addListener(InstrumentDescriptionListener listener)
addListener in interface IEditableInstrumentpublic void addSoundSample(SoundSample ss, java.lang.String pipeStopGroup)
addSoundSample in interface IEditableInstrumentpublic void dispose()
IEditableInstrumentdispose in interface IEditableInstrumentpublic java.lang.String getInstrumentDescription()
IEditableInstrumentgetInstrumentDescription in interface IEditableInstrumentpublic java.awt.Image getInstrumentPicture()
IEditableInstrumentgetInstrumentPicture in interface IEditableInstrumentpublic java.lang.String getName()
IEditableInstrumentgetName in interface IEditableInstrumentpublic java.lang.String[] getPipeStopGroupsAndRegisterName()
IEditableInstrumentgetPipeStopGroupsAndRegisterName in interface IEditableInstrumentpublic SampleMapping getSampleMapping(java.lang.String pipeStopGroup, SoundSample sample)
IEditableInstrumentgetSampleMapping in interface IEditableInstrumentpublic Scale getScale()
IEditableInstrumentgetScale in interface IEditableInstrumentpublic java.util.List<SoundSample> getSoundSampleList(java.lang.String pipeStopGroup)
IEditableInstrumentgetSoundSampleList in interface IEditableInstrumentpublic void removeListener(ScaleListener listener)
IEditableInstrumentremoveListener in interface IEditableInstrumentpublic void removeListener(SoundSampleListListener listener)
IEditableInstrumentremoveListener in interface IEditableInstrumentpublic void removeListener(InstrumentDescriptionListener listener)
removeListener in interface IEditableInstrumentpublic void removeSampleMapping(java.lang.String pipeStopGroup,
SoundSample sample)
IEditableInstrumentremoveSampleMapping in interface IEditableInstrumentpublic void removeSoundSample(SoundSample ss, java.lang.String pipeStopGroup)
removeSoundSample in interface IEditableInstrumentpublic void setInstrumentDescription(java.lang.String instrumentDescription)
IEditableInstrumentsetInstrumentDescription in interface IEditableInstrumentpublic void setInstrumentPicture(java.awt.Image instrumentPicture)
IEditableInstrumentsetInstrumentPicture in interface IEditableInstrumentpublic void setName(java.lang.String name)
IEditableInstrumentsetName in interface IEditableInstrumentpublic SampleMapping setSampleMapping(java.lang.String pipeStopGroup, SoundSample sample, int first, int end)
IEditableInstrumentsetSampleMapping in interface IEditableInstrumentpipeStopGroup - the pipestopgroupsample - the samplefirst - the first note of the sample associationend - the last note of the sample associationpublic void setScale(Scale scale)
IEditableInstrumentsetScale in interface IEditableInstrumentpublic java.lang.Long getRepositoryInstrumentID()
public java.lang.Long getVersion()
public java.lang.String getStatus()
public void changeStatus(java.lang.String newStatus)
public java.lang.String getReferenceName()
public boolean isDirty()
IEditableInstrumentisDirty in interface IEditableInstrumentpublic void clearDirty()
IEditableInstrumentclearDirty in interface IEditableInstrumentpublic void addScript(InstrumentScript script)
IEditableInstrumentaddScript in interface IEditableInstrumentpublic InstrumentScript findScript(java.lang.String name)
IEditableInstrumentfindScript in interface IEditableInstrumentpublic InstrumentScript[] getScripts()
IEditableInstrumentgetScripts in interface IEditableInstrumentpublic void removeScript(java.lang.String name)
IEditableInstrumentremoveScript in interface IEditableInstrumentpublic InstrumentScript[] findScriptsByType(InstrumentScript.InstrumentScriptType type)
IEditableInstrumentfindScriptsByType in interface IEditableInstrumentpublic SoundSample getPercussionSoundSample(PercussionDef pd)
IEditableInstrumentgetPercussionSoundSample in interface IEditableInstrumentpublic void setPercussionSoundSample(PercussionDef pd, SoundSample ss)
IEditableInstrumentsetPercussionSoundSample in interface IEditableInstrument