player.slide
player.slideJavaScriptplayer.slideJSONPlayer.Slide.netplayer.slideAndroidThe slide settings allow control how the different slide types are generated for audio. AlphaTab supports various types of slides which can be grouped into 3 types:
-
Shift Slides
-
Legato Slides
-
Slide into from below
-
Slide into from above
-
Slide out to below
-
Slide out to above
-
Pick Slide out to above
-
Pick Slide out to below
For the first 2 groups the audio generation can be adapted. For the pick slide the audio generation cannot be adapted as there is no mechanism yet in alphaTab to play pick slides to make them sound real.
For the first group only the duration or start point of the slide can be configured while for the second group the duration/start-point and the pitch offset can be configured.
- JavaScript
- C#
- Kotlin
readonly slide: SlidePlaybackSettings;SlidePlaybackSettings Slide { get; }val slide: SlidePlaybackSettingsSlide Settings​
This object defines the details on how to generate the slide effects.
class SlidePlaybackSettingsProperties​
shiftSlideDurationRatio​
The percentage which the legato and shift slides should take up from the whole note. For a value 0.5 the sliding will start at 50% of the overall note duration and finish at 100%
- JavaScript
- C#
- Kotlin
shiftSlideDurationRatio: number = 0.5;double ShiftSlideDurationRatio { get; set; } = 0.5var shiftSlideDurationRatio: Double = 0.5simpleSlideDurationRatio​
The percentage which the simple slides should take up from the whole note. for "slide into" effects the slide will take place from time 0 where the note is plucked to 25% of the overall note duration. For "slide out" effects the slide will start 75% and finish at 100% of the overall note duration.
- JavaScript
- C#
- Kotlin
simpleSlideDurationRatio: number = 0.25;double SimpleSlideDurationRatio { get; set; } = 0.25var simpleSlideDurationRatio: Double = 0.25simpleSlidePitchOffset​
Gets or sets 1/4 tones (bend value) offset that simple slides like slide-out-below or slide-in-above use.
- JavaScript
- C#
- Kotlin
simpleSlidePitchOffset: number = 6;double SimpleSlidePitchOffset { get; set; } = 6var simpleSlidePitchOffset: Double = 6