Chapter 11

A Music Coder

11.1. Introduction

The program presented in this chapter simulates the MPEG-1 Layer-1 coder with a music signal sampled at 44.1 kHz at a bit rate between 64 and 96 kb/s. The quantization tables provided are only for this specific sampling frequency and bit rate range. In contrast with the program for the speech coder simulation, the program in this chapter does indeed construct an intermediate file containing the code words. However, the exact syntax given in the standardization document is not observed in this program.

11.2. Script for the calling function

image
image
image
image

11.3. Script for called functions

image
image
image
image

Get Tools for Signal Compression: Applications to Speech and Audio Coding now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.