Class AccentProcessorConfig
java.lang.Object
org.jjazz.rhythmmusicgeneration.api.AccentProcessorConfig
Configuration holder for AccentProcessor tunable parameters.
-
Field Summary
FieldsModifier and TypeFieldDescriptionfloatRatio used to compute the minimum accent duration from the shot duration: accentMinDuration = shotDuration * accentMinToShotRatio.intOffset added to computed reference velocity for medium-level accent insertions (was 14).intOffset added to computed reference velocity for stronger accent insertions (was 30).doubleMaximum probability threshold for crash insertion (was 0.8).doubleMinimum probability threshold for crash insertion (was 0.2).doubleNormal/default probability threshold for crash insertion (was 0.6).intNumber of surrounding notes used when estimating crash cymbal velocity (was NOTE_WINDOW_SIZE = 5 inside addCrashCymbal).intDefault baseline velocity used when inserting crash cymbals (was 60).intDefault baseline velocity used for new drum accent notes when not enough context (was 55).intDefault baseline velocity used when not enough context for new regular notes (was 60).intExtra velocity offset for accents on downbeats / half-bar beats (was 5).intOffset added to existing drum accent velocity for a medium accent (was 12).intOffset added to existing drum accent velocity for a strong accent (was 25).intVelocity threshold to consider an existing drum hit as an accent when building the initial grid of accents (was 40).floatSame as above for TempoRange.FAST.floatSame as above for TempoRange.MEDIUM.floatSame as above for TempoRange.MEDIUM_FAST.floatSame as above for TempoRange.MEDIUM_SLOW.floatMultipliers applied to the post-silence nbCells calculation for HOLD/SHOT on drums, when tempo is in TempoRange.SLOW.intMaximum allowed velocity (clamp) (was 120).intMinimum allowed velocity (clamp) (was 10).intNumber of surrounding notes to use when computing velocities / pitches for new/inserted notes (was NOTE_WINDOW_SIZE = 10).floatfloatfloatfloatfloatMultipliers applied to the base shot note duration depending on tempo.intSliding window size in beats used to compute how many previous crashes to consider (was 4 beats).intExpected number of crashes in the sliding window. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
holdShotPostSilenceMultiplierSlow
public float holdShotPostSilenceMultiplierSlowMultipliers applied to the post-silence nbCells calculation for HOLD/SHOT on drums, when tempo is in TempoRange.SLOW. -
holdShotPostSilenceMultiplierMediumSlow
public float holdShotPostSilenceMultiplierMediumSlowSame as above for TempoRange.MEDIUM_SLOW. -
holdShotPostSilenceMultiplierMedium
public float holdShotPostSilenceMultiplierMediumSame as above for TempoRange.MEDIUM. -
holdShotPostSilenceMultiplierMediumFast
public float holdShotPostSilenceMultiplierMediumFastSame as above for TempoRange.MEDIUM_FAST. -
holdShotPostSilenceMultiplierFast
public float holdShotPostSilenceMultiplierFastSame as above for TempoRange.FAST. -
shotDurationMultiplierSlow
public float shotDurationMultiplierSlowMultipliers applied to the base shot note duration depending on tempo. Values correspond to SLOW, MEDIUM_SLOW, MEDIUM, MEDIUM_FAST, FAST respectively. -
shotDurationMultiplierMediumSlow
public float shotDurationMultiplierMediumSlow -
shotDurationMultiplierMedium
public float shotDurationMultiplierMedium -
shotDurationMultiplierMediumFast
public float shotDurationMultiplierMediumFast -
shotDurationMultiplierFast
public float shotDurationMultiplierFast -
accentMinToShotRatio
public float accentMinToShotRatioRatio used to compute the minimum accent duration from the shot duration: accentMinDuration = shotDuration * accentMinToShotRatio. -
noteWindowSize
public int noteWindowSizeNumber of surrounding notes to use when computing velocities / pitches for new/inserted notes (was NOTE_WINDOW_SIZE = 10). -
crashVelocityWindowSize
public int crashVelocityWindowSizeNumber of surrounding notes used when estimating crash cymbal velocity (was NOTE_WINDOW_SIZE = 5 inside addCrashCymbal). -
defaultNoteVelocity
public int defaultNoteVelocityDefault baseline velocity used when not enough context for new regular notes (was 60). -
defaultDrumAccentVelocity
public int defaultDrumAccentVelocityDefault baseline velocity used for new drum accent notes when not enough context (was 55). -
defaultCrashVelocity
public int defaultCrashVelocityDefault baseline velocity used when inserting crash cymbals (was 60). -
drumsAccentMediumOffset
public int drumsAccentMediumOffsetOffset added to existing drum accent velocity for a medium accent (was 12). -
drumsAccentStrongOffset
public int drumsAccentStrongOffsetOffset added to existing drum accent velocity for a strong accent (was 25). -
drumsAccentExtraDownBeat
public int drumsAccentExtraDownBeatExtra velocity offset for accents on downbeats / half-bar beats (was 5). -
accentVelocityOffsetMedium
public int accentVelocityOffsetMediumOffset added to computed reference velocity for medium-level accent insertions (was 14). -
accentVelocityOffsetStrong
public int accentVelocityOffsetStrongOffset added to computed reference velocity for stronger accent insertions (was 30). -
minVelocity
public int minVelocityMinimum allowed velocity (clamp) (was 10). -
maxVelocity
public int maxVelocityMaximum allowed velocity (clamp) (was 120). -
crashThresholdMin
public double crashThresholdMinMinimum probability threshold for crash insertion (was 0.2). -
crashThresholdNormal
public double crashThresholdNormalNormal/default probability threshold for crash insertion (was 0.6). -
crashThresholdMax
public double crashThresholdMaxMaximum probability threshold for crash insertion (was 0.8). -
slidingWindowCrashCountNormal
public int slidingWindowCrashCountNormalExpected number of crashes in the sliding window. Used to adapt probability when there are more/less crashes than normal (was 1). -
slidingWindowBeatSize
public int slidingWindowBeatSizeSliding window size in beats used to compute how many previous crashes to consider (was 4 beats). The actual sliding window in cells = slidingWindowBeatSize * nbCellsPerBeat. -
drumsAccentThresholdVelocity
public int drumsAccentThresholdVelocityVelocity threshold to consider an existing drum hit as an accent when building the initial grid of accents (was 40).
-
-
Constructor Details
-
AccentProcessorConfig
public AccentProcessorConfig()
-