Skip to main content
cngx-src documentation

ToneOptions

Interface

projects/common/audio/tone-generator/tone-generator.ts

Import#

import { ToneOptions } from '@cngx/common/audio'

Description#

Per-tone synthesis options.

Index#

Properties

Instance Properties#

ReadonlyOptional

Peak gain in [0, 1] before the master volume. Default 0.2.

type#OscillatorType
ReadonlyOptional

Oscillator waveform. Default 'sine'.

ReadonlyOptional

Schedule offset in seconds from currentTime. Default 0.