Skip to main content

player.slide

since 0.9.6
player.slideJavaScriptplayer.slideJSONPlayer.Slide.netplayer.slideAndroid

The 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.

readonly slide: SlidePlaybackSettings;

Slide Settings​

This object defines the details on how to generate the slide effects.

 class SlidePlaybackSettings

Properties​

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%

shiftSlideDurationRatio: number = 0.5;

simpleSlideDurationRatio​

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.

simpleSlideDurationRatio: number = 0.25;

simpleSlidePitchOffset​

Gets or sets 1/4 tones (bend value) offset that simple slides like slide-out-below or slide-in-above use.

simpleSlidePitchOffset: number = 6;