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.LoadableEffectAn effect that randomizes the order of every single beat of a song.
-
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.
-
class
beatmachine.effects.temporal.SwapBeats(*, x_period: int = 2, y_period: int = 4, group_size: int = 4, offset: int = 0)¶ Bases:
beatmachine.effects.base.LoadableEffectSwapBeats swaps every two specified beats. For example, specifying periods 2 and 4 would result in every second and fourth beats being swapped.