ArticleslgStudy

computer science

Monkey's Audio

Monkey's Audio is a computer science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Monkey's Audio rather than just read about it. In short: Monkey's Audio is an algorithm and file format for lossless audio data compression. Lossless data compression does not discard data during the process of encoding, unlike lossy compression methods such as AAC, MP3, Vorbis, and Opus.

Monkey's Audio — main illustration
Monkey's Audio — illustration

Key takeaways

  • Monkey's Audio belongs to computer science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Monkey's Audio to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Monkey's Audio from memory before moving on to harder problems.

Reference excerpt

Monkey's Audio is an algorithm and file format for lossless audio data compression. Lossless data compression does not discard data during the process of encoding, unlike lossy compression methods such as AAC, MP3, Vorbis, and Opus. Similar to other lossless audio codecs, files encoded to Monkey's Audio are typically reduced to about half of the original size, with data transfer time and storage requirements being reduced accordingly.

Comparisons Like any lossless compression scheme, Monkey's Audio format takes up several times as much space as lossy compression formats - typically, about twice as much as a 320 kbit/s bitrate MP3 file. The upside is that no data is lost compared to the input file, making lossless codecs suitable for transcoding, or simply taking up approximately half as much space as raw PCM data. Relative to FLAC, Apple Lossless Audio Codec, or WavPack, Monkey's Audio is slow to encode or decode files. While Monkey's Audio can achieve high compression ratios, the cost is a dramatic increase in requirements on the decoding end. Many older portable media players, and even older smartphones, have difficulty handling this. In comparison, most lossless codecs are asymmetric, meaning that the work done to achieve higher compression ratios, if selected by the user, slows down the encoding process, but has essentially no effect on the decoding requirements.

Licensing On 10 August 2023, with the release of version 10.18, Monkey's Audio switched to the Open Source Initiative-approved 3-Clause BSD Licence. Other lossless codecs such as FLAC and WavPack are also available under open source licences, and are well supported in Linux distributions and in many applications. Since all of these formats are lossless, users can transcode between formats without generation loss.

Technical details Monkey's Audio first converts stereo signals into standard mid and difference channels, similar to other codecs. The X (mid or average channel) is calculated by taking the mean of the left and right channels, and the Y (side or difference channel) is calculated by subtracting the right from the left channel. This is a reversible transform that the decoder will later apply as well. Monkey's Audio supports linear prediction, using a novel fixed first-order predictor followed by several adaptive offset filters, as well as neural network-based predictors with up to a 1024 sample window. The residuals (errors) are then encoded using range coding. Monkey's Audio frames support a form of CRC-32 (with the MSB truncated) for error detection. The entire file also has its MD5 hash computed and stored. The reference decoder verifies the file hash, and locates errors, if present, by considering each frame's CRC checksum. While the format supports error detection, it cannot correct errors if they are present.

Supported platforms Officially, Monkey's Audio is available for the Microsoft Windows platform. As of version 4.02 (19 January 2009) a DirectShow filter is distributed with the installer, allowing for compatibility with most media players running on the Windows operating system. Monkey's Audio is also supported on Linux and OS X using JRiver Media Center or Plex. A Linux port of the command line tool mac is also available. A GPL-licensed version of the Monkey's Audio decoder has been independently written for Rockbox and is included in FFmpeg. This code also provides playback support in applications that use GStreamer, as well as DeaDBeeF. A number of Mac OS X players and rippers support the format as well. It is also available as a port and package on FreeBSD. Monkey's Audio files can be encoded and decoded on any platform which has a J2SE implementation, by the means of the unofficial JMAC library, which is free software licensed under the GNU LGPL.

Hardware support Monkey's Audio is supported natively on all modern Cowon multimedia media players, the FiiO X Series and some Cayin digital audio players. On other hardware platforms, the open source firmware project Rockbox supports playback of Monkey's Audio files on most of its supported targets, but many lack sufficient processing power to play them on the higher compression settings.

See also Comparison of audio formats FLAC WavPack Apple Lossless MPEG-4 ALS Meridian Lossless Packing APE tag

References

External links Monkey's Audio Official Website APE Player Play Monkey's Audio files

Illustrations

Monkey's Audio illustration

Worked examples

Example 1 — a first encounter with Monkey's Audio

Start with the simplest possible case. Write down what Monkey's Audio claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In computer science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Monkey's Audio before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Monkey's Audio ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Monkey's Audio

In research
Monkey's Audio appears in computer science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Monkey's Audio in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Monkey's Audio is common in secondary-school and first-year university syllabi. It links to neighbouring topics Lossless audio codecs, Software that uses GStreamer, Software using the BSD license, so understanding it makes those chapters shorter.
In everyday life
Look for Monkey's Audio outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Monkey's Audio” →

How to study Monkey's Audio in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Monkey's Audio means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Monkey's Audio out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Monkey's Audio in simple terms?

Monkey's Audio is an algorithm and file format for lossless audio data compression. Lossless data compression does not discard data during the process of encoding, unlike lossy compression methods such as AAC, MP3, Vorbis, and Opus.

Why does Monkey's Audio matter?

Because it connects several computer science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Monkey's Audio?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Monkey's Audio.

Tags

  • Lossless audio codecs
  • Software that uses GStreamer
  • Software using the BSD license

Keep exploring