alphaTab.synth.AudioExportOptions
The options controlling how to export the audio.
class AudioExportOptionsProperties​
masterVolume​
The current master volume as percentage. (range: 0.0-3.0, default 1.0)
- JavaScript
- C#
- Kotlin
masterVolume: number;double MasterVolume { get; set; }var masterVolume: DoublemetronomeVolume​
The metronome volume. (range: 0.0-3.0, default 0.0)
- JavaScript
- C#
- Kotlin
metronomeVolume: number;double MetronomeVolume { get; set; }var metronomeVolume: DoubleplaybackRange​
The range of the song that should be exported. Set this to null to play the whole song.
- JavaScript
- C#
- Kotlin
playbackRange?: PlaybackRange;PlaybackRange PlaybackRange { get; set; }var playbackRange: PlaybackRangesampleRate​
The output sample rate.
- JavaScript
- C#
- Kotlin
sampleRate: number;double SampleRate { get; set; }var sampleRate: DoublesoundFonts​
The soundfonts to load and use for generating the audio. If not provided, the already loaded soundfonts of the synthesizer will be used. If no existing synthesizer is initialized, the generated audio might not contain any hearable audio.
- JavaScript
- C#
- Kotlin
soundFonts?: Uint8Array[];IList<Uint8Array> SoundFonts { get; set; }var soundFonts: alphaTab.collections.List<Uint8Array>trackTranspositionPitches​
The additional semitone pitch transpose to apply for individual tracks. The key is the track index, and the value is the number of semitones to apply. No values from the currently active synthesizer are applied.
The meaning of the key changes when used with AlphaSynth directly, in this case the key is the midi channel .
- JavaScript
- C#
- Kotlin
trackTranspositionPitches: Map<number, number>;Map<double, double> TrackTranspositionPitches { get; set; }var trackTranspositionPitches: alphaTab.collections.DoubleDoubleMap<Double, Double>trackVolume​
The volume for individual tracks as percentage (range: 0.0-3.0). The key is the track index, and the value is the relative volume. The configured volume (as per data model) still applies, this is an additional volume control. If no custom value is set, 100% is used. No values from the currently active synthesizer are applied.
The meaning of the key changes when used with AlphaSynth directly, in this case the key is the midi channel .
- JavaScript
- C#
- Kotlin
trackVolume: Map<number, number>;Map<double, double> TrackVolume { get; set; }var trackVolume: alphaTab.collections.DoubleDoubleMap<Double, Double>useSyncPoints​
Whether to respect sync point information during export. If the song contains sync point information for synchronization with an external media, this option allows controlling whether the synthesized audio is aligned with these points.
This is useful when mixing the exported audio together with external media, keeping the same timing.
Disable this option if you want the original/exact timing as per music sheet in the exported audio.
- JavaScript
- C#
- Kotlin
useSyncPoints: boolean;bool UseSyncPoints { get; set; }var useSyncPoints: Boolean