Channel.create constructor

Channel.create(
  1. Synthesizer synthesizer,
  2. bool isPercussionChannel
)

Implementation

factory Channel.create(Synthesizer synthesizer, bool isPercussionChannel)
{
  Channel c = Channel(
          synthesizer: synthesizer,
          isPercussionChannel: isPercussionChannel,
          blockLeft : List<double>.filled(synthesizer.blockSize, 0.0),
          blockRight : List<double>.filled(synthesizer.blockSize, 0.0),
          bankNumber : 0,
          patchNumber : 0,
          modulation : 0,
          volume : 0,
          pan : 0,
          expression : 0,
          holdPedal : false,
          reverbSend : 0,
          chorusSend : 0,
          rpn: 0,
          pitchBendRange: 0,
          coarseTune: 0,
          fineTune: 0,
          pitchBend: 0.0
  );

  c.reset();

  return c;
}