setMusicPitch abstract method

Future<void> setMusicPitch(
  1. String musicId, {
  2. required int pitch,
})

Transposes up/down the music being played.

musicId: Music ID.

pitch: The pitch up/down value relative to the original pitch, in the range of -12, 12, with the default value of 0. The difference in pitch between two adjacent values is a semitone. A positive value indicates an increase in pitch, and a negative value indicates a decrease in pitch. A larger absolute value means more pitch increase or decrease.

Notes:

Implementation

Future<void> setMusicPitch(
  String musicId, {
  required int pitch,
});