Skip to content

soundsc

audio · scripts/audio/soundsc.m

SOUNDSC  Scale audio data to the full range and play it.

  SOUNDSC (Y, FS)
  SOUNDSC (Y, FS, NBITS)
  SOUNDSC (Y, FS, NBITS, SLIM)
  SOUNDSC (Y, FS, SLIM)

  Like SOUND, but the data is first scaled linearly so that the range
  SLIM = [LOW HIGH] maps to [-1, 1] (default: the minimum and maximum of
  Y); values outside SLIM are clipped.  FS defaults to 8192 and NBITS to
  16.