Plush

ModulationChainCollection#

plupy · Type index

Module: plupy · obtained from plupy.data.modulation_chains

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) -> ModulationChain

A 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"] = drop

DataCollection · ModulationChain · Sound · edit

Source#