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
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final StringFields inherited from interface org.jjazz.phrasetransform.api.PhraseTransform
HIDDEN_ID_TOKEN, ICON_SIZE, SAVE_STRING_DELIMITER -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanintgetCopy()Get a copy of this PhraseTransform instance.intintintgetFitScore(SizedPhrase inPhrase, SongPartContext context) Return a [0-100] value which indicates how much this transform is adapted for the specified parameters.intgetInfo()Get the information for this transform.intGet the PhraseTransform properties.Get a string representing the property values in a user-oriented way.intintinthashCode()voidsetBassDrumOffset(int offset) voidsetCrashOffset(int offset) voidsetCymbalsOffset(int offset) voidsetHiHatOffset(int offset) voidsetPercOffset(int offset) voidsetSnareOffset(int offset) voidsetTomsOffset(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:PhraseTransformGet the information for this transform.- Specified by:
getInfoin 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:PhraseTransformTransform 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:
transformin interfacePhraseTransformcontext- Can be null. An optional context to provide additional information about inPhrase.- Returns:
- The new transformed phrase.
-
getFitScore
Description copied from interface:PhraseTransformReturn 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:
getFitScorein interfacePhraseTransformcontext- 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:PhraseTransformGet the PhraseTransform properties.- Specified by:
getPropertiesin interfacePhraseTransform- Returns:
- Can't be null (but can be empty)
-
hashCode
public int hashCode() -
equals
-
getCopy
Description copied from interface:PhraseTransformGet a copy of this PhraseTransform instance.- Specified by:
getCopyin interfacePhraseTransform- Returns:
-
toString
-