Package org.jjazz.phrasetransform.api
Class DrumsMixTransform
java.lang.Object
org.jjazz.phrasetransform.api.DrumsMixTransform
- All Implemented Interfaces:
Comparable<PhraseTransform>
,PhraseTransform
Change velocity of drums notes.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.jjazz.phrasetransform.api.PhraseTransform
PhraseTransform.Info
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
static final String
static final String
static final String
static final String
static final String
static final String
Fields inherited from interface org.jjazz.phrasetransform.api.PhraseTransform
HIDDEN_ID_TOKEN, ICON_SIZE, SAVE_STRING_DELIMITER
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
int
getCopy()
Get a copy of this PhraseTransform instance.int
int
int
getFitScore
(SizedPhrase inPhrase, SongPartContext context) Return a [0-100] value which indicates how much this transform is adapted for the specified parameters.int
getInfo()
Get the information for this transform.int
Get the PhraseTransform properties.Get a string representing the property values in a user-oriented way.int
int
int
hashCode()
void
setBassDrumOffset
(int offset) void
setCrashOffset
(int offset) void
setCymbalsOffset
(int offset) void
setHiHatOffset
(int offset) void
setPercOffset
(int offset) void
setSnareOffset
(int offset) void
setTomsOffset
(int offset) toString()
transform
(SizedPhrase inPhrase, SongPartContext context) Transform inPhrase into another phrase.Methods inherited from interface org.jjazz.phrasetransform.api.PhraseTransform
compareTo, hasUserSettings, showUserSettingsDialog
-
Field Details
-
PROP_BD_OFFSET
-
PROP_SD_OFFSET
-
PROP_HH_OFFSET
-
PROP_TOMS_OFFSET
-
PROP_CRASH_OFFSET
-
PROP_CYMBAL_OFFSET
-
PROP_PERC_OFFSET
-
-
Constructor Details
-
DrumsMixTransform
public DrumsMixTransform()Create a DrumsMixTransform.
-
-
Method Details
-
getInfo
Description copied from interface:PhraseTransform
Get the information for this transform.- Specified by:
getInfo
in interfacePhraseTransform
- Returns:
-
getBassDrumOffset
public int getBassDrumOffset() -
setBassDrumOffset
public void setBassDrumOffset(int offset) -
getSnareOffset
public int getSnareOffset() -
setSnareOffset
public void setSnareOffset(int offset) -
getHiHatOffset
public int getHiHatOffset() -
setHiHatOffset
public void setHiHatOffset(int offset) -
getTomsOffset
public int getTomsOffset() -
setTomsOffset
public void setTomsOffset(int offset) -
getCrashOffset
public int getCrashOffset() -
setCrashOffset
public void setCrashOffset(int offset) -
getCymbalsOffset
public int getCymbalsOffset() -
setCymbalsOffset
public void setCymbalsOffset(int offset) -
getPercOffset
public int getPercOffset() -
setPercOffset
public void setPercOffset(int offset) -
transform
Description copied from interface:PhraseTransform
Transform inPhrase into another phrase.The optional context must match inPhrase beat range. Context can be used to retrieve additional information, e.g.:
- the chord symbols used in the phrase
- the target RhythmVoice (or RhythmVoiceDelegate) for the phrase, obtained via context.getMidiMix().getRhythmVoice(inPhrase.getChannel()).
- the InstrumentMix used for the phrase, obtained via context.getMidiMix().getInstrumentMixFromChannel(inPhrase.getChannel()).- Specified by:
transform
in interfacePhraseTransform
context
- Can be null. An optional context to provide additional information about inPhrase.- Returns:
- The new transformed phrase.
-
getFitScore
Description copied from interface:PhraseTransform
Return a [0-100] value which indicates how much this transform is adapted for the specified parameters.A PhraseTransform which can not work without a context should return 0 if context is null.
- Specified by:
getFitScore
in interfacePhraseTransform
context
- Can be null. An optional context to provide additional information about inPhrase.- Returns:
- 0 means this transform is not adapted at all, 100 means this transform is perfectly fit for this context.
- See Also:
-
getPropertiesDisplayString
Get a string representing the property values in a user-oriented way.- Returns:
- Can be an empty string
-
getProperties
Description copied from interface:PhraseTransform
Get the PhraseTransform properties.- Specified by:
getProperties
in interfacePhraseTransform
- Returns:
- Can't be null (but can be empty)
-
hashCode
public int hashCode() -
equals
-
getCopy
Description copied from interface:PhraseTransform
Get a copy of this PhraseTransform instance.- Specified by:
getCopy
in interfacePhraseTransform
- Returns:
-
toString
-