beatmachine.effects.temporal module¶
The temporal module contains effects that modify beats by rearranging them over the entire song.
-
class
beatmachine.effects.temporal.RandomizeAllBeats¶ Bases:
beatmachine.effects.base.LoadableEffectCompletely randomize the order of every single beat.
-
class
beatmachine.effects.temporal.RemapBeats(*, mapping: List[int])¶ Bases:
beatmachine.effects.base.LoadableEffectAn effect that remaps beats based on a list of target indices. For example, a remap effect with mapping [0, 3, 2, 1] behaves identically to a swap effect with periods 2 and 4.
Most effects can be emulated through Remap.
-
class
beatmachine.effects.temporal.SwapBeats(*, x_period: int = 2, y_period: int = 4, group_size: int = 4, offset: int = 0)¶ Bases:
beatmachine.effects.base.LoadableEffectSwap two beats, indicated by X and Y, every set number of beats. For example, X = 2 Y = 4, Group = 4 results in a “beats 2 and 4 are swapped” effect. Periods cannot be equal.