Skip to content

accent()

Make certain beats of each measure louder, in place.

Parameters

Mod.accent() is a static utility. Call it on the Mod class itself, for example:

Mod.accent(material, meter)
Mod.accent(material, meter, accentedBeats, accentAmount)

Parameter Type Default Description
material Phrase, Part, or Score required The music to change.
meter int or float required The number of beats per measure, for example 4.0.
accentedBeats list[int or float] [0.0] Which beats to accent, in beats from the start of the measure.
accentAmount int 20 How much louder to make the accented beats, from 0 to 127.