ToneGenerator
Generates tones with options for
sine, sawtooth, triangle, square
and synthesized piano (organ-like) waves.
Generates tones with options for
sine, sawtooth, triangle, square
and synthesized piano (organ-like) waves.
GenerateTone
Generates tones with options for sine, sawtooth, triangle, square, and synthesized piano (organ-like) waves.
trackId
: Identifier.waveType
: (Sine, Sawtooth, Triangle, Square, Piano).frequency
: Pitch in Hertz.duration
: Pitch in seconds.silenceDuration
: Duration of silence between tones in seconds.addSilence
: Whether to add silence between tones.amplitude
: Amplitude of the tone.fadeOut
: Duration of the fade effect at the end of the tone in seconds.
StopAll
Stops all currently playing tones with a fade duration.
fadeOutDuration
: Duration of the fade effect in milliseconds.
StopById
Stops a specific tone by its id with a fade duration.
trackId
: Identifier.fadeOutDuration
: Duration of the fade effect in milliseconds.
aiaProject:
ToneGenerator.aia (35.4 KB)
Extension: v1.0
.
joejsanz.joedevtonegenerator.aix (13.6 KB)
minSdk: 21
maxSdk: 34
JDK: 11
Created with Fast. v2.3.0
fast-cli
Gratitude
- [ @TIMAI2 ] for his idea/suggestion on [a variant of GuitarSynthesis] that led to the ToneGenerator.
Thanks