AlgaSynthDef:
Filter:
AlgaLib/Classes (extension) | Alga

AlgaSynthDef
ExtensionExtension

SynthDef for Alga

Description

Hybrid between SynthDef and ProxySynthDef, with the additional option of defining outsMapping as an Array of symbols and numbers/arrays pairs.

Class Methods

.new

Build a new AlgaSynthDef. The arguments are the same as a normal SynthDef, with the exception of the outsMapping one.

Arguments:

name

See SynthDef.

func

Same as SynthDef, with two caveats.

  1. The function should end with a UGen or an Array of UGens. Unlike SynthDef, an Out (or OffsetOut, depending on the sampleAccurate value) UGen will automatically be created according to the number of channels of the last element of the function.
  2. The function must not use the \gate and \out arguments, as they are declared and used internally.

Basically, the function should only describe the actual UGen graph.

rates

See SynthDef.

prependArgs

See SynthDef.

outsMapping

Specify an Array of symbols and numbers/arrays pairs to describe combinations of output names and channels. Futhermore, all the channels will automatically be paired with a symbol in the form of [\out1, 0, \out2, 1, etc... ]. You can define as many mappings as you want, as long as they refer to existing number of channels. See the AlgaNode help file to see how to use these mappings when connecting nodes together.

sampleAccurate

Use OffsetOut instead of the default Out. This is mostly useful for AlgaSynthDefs that will be used in AlgaPatterns.

replaceOut

Use ReplaceOut instead of the default Out. This is mostly useful for AlgaSynthDefs that will be used in AlgaPatterns to emulate monophonic sequencers. Check the Examples/Extras/AlgaMonoPattern.scd and Examples/Extras/AlgaMonoPattern2.scd for such use cases.

variants

See SynthDef.

metadata

See SynthDef.

.readAll

Alias for Alga.readAllDefs.

.read

Alias for Alga.readDef.

Instance Methods

.writeDefFile

Like SynthDef's writeDefFile method, but it also writes two additional definitions needed for AlgaPatterns to work.

.write

Alias for writeDefFile.

.load

Like SynthDef's load method, but it also writes two additional definitions needed for AlgaPatterns to work.

.store

Like SynthDef's store method, but it also writes two additional definitions needed for AlgaPatterns to work.