audio.SetFrequency

Set the frequency increment of the given audio channel.

Syntax

audio.SetFrequency(channel, value)

Parameters

  • channel - The oscillator channel (0-3).
  • value - The new frequency increment to set (long).

Returns

This command returns no values.

About

This function controls the phase accumulator directly, allowing you to generate frequency possible with the synthesizer.