ModulationChainCollection#
plupy.data.modulation_chains: envelope chains that shape every note of a Sound.
class ModulationChainCollection(DataCollection)Inherits DataCollection: its members are documented there.
Usage and examples
Members: new
new#
new(name: str) -> ModulationChainA new chain holding one volume envelope (2 ms attack, full sustain, 50 ms release).
A chain of AHDSR envelopes; a new one holds one volume envelope (2 ms attack, full sustain, 50 ms release). target is "volume", "pitch" (amount in cents) or "panning" (amount -1 to 1); sustain is a level 0 to 1; times are milliseconds. add returns the envelope's id for set and remove. Assign the chain to Sounds:
with plupy.edit("Kick"):
drop = plupy.data.modulation_chains.new("Kick drop")
drop.add(target="pitch", attack_ms=0, decay_ms=40, sustain=0, amount=1200)
kick.props["sound.modulation"] = dropRelated types#
DataCollection · ModulationChain · Sound · edit
Source#
- _live.py:486