Skip to content

lin2mu

audio · scripts/audio/lin2mu.m

LIN2MU  Convert linear audio samples to mu-law (ITU-T G.711) codes.

  MU = LIN2MU (Y)

  Y holds samples in [-1, 1] (values outside are clipped); MU has the same
  size and holds the 8-bit mu-law codes 0 to 255 as doubles.