Function fillSynth

Fill a given portion of a sound with a signal from specified synthesizer.

void fillSynth (
  Sound sound,
  uint channel,
  Synth synth,
  float freq,
  double startTime,
  double duration,
  float amplitude
);

Parameters

NameDescription
sound a sound object to write to
channel channel to fill (beginning from 0)
synth synthesizer object
freq synthesizer frequency
startTime start time of a signal in seconds
duration duration of a signal in seconds
amplitude volume coefficient of a signal