PLbindef works like a normal Pbindef and, like the latter, uses Pdef's global bookkeeping, but replacement of key streams can be done in object prototyping style with a dedicated PLbindefEnvironment, which also holds player methods. This hybrid Environment is itself assigned to the PLbindef's name in an Environment of choice, by default the current Environment. Setting can thus be done in very condensed syntax, also in combination with EventShortcuts. For more info on object prototyping see Environment: Using Environments as object prototypes.
remove
or Pdef.removeAll
after using PLbindef / PLbindefPar as in examples below. Otherwise unwanted or strange behaviour might be caused by leftover sources when playing a new PLbindef / PLbindefPar example with the same key. With SC >= 3.7 occasional posts of the default parent event occur with Pbindef, so also with PLbindef, this doesn't cause problems though.Creates a new PLbindef object or sets sources as with Pbindef.
... args |
First arg should be the name, followed by key/value pairs for the Pbindef. The last arg can be an optional environment which determines where the corresponding PLbindefEnvironment should be stored, by default this is the current Environment at instantiation time. |
As with Pdef: -clear, but in addition remove name entry from refEnvir.
Getter for PLbindef's PLbindefEnvironment.
Use SynthDefs from above.
Use SynthDef from above.
See also Ex.7c: Replacement with Pbindef