From fd6913b920a672dfb0316ef20d456b706fdd1aa9 Mon Sep 17 00:00:00 2001 From: Brian Smyth Date: Wed, 16 Sep 2009 16:40:21 -0400 Subject: Shorten formula. Shorten reduces the size of waveform files (such as audio) using Huffman coding of prediction residuals and optional additional quantisation. In lossless mode the amount of compression obtained depends on the nature of the waveform. Those composing of low frequencies and low amplitudes give the best compression, which may be 2:1 or better. Lossy compression operates by specifying a minimum acceptable segmental signal to noise ratio or a maximum bit rate. Lossy compression operates by zeroing the lower order bits of the waveform, so retaining waveform shape. --- Library/Formula/shorten.rb | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 Library/Formula/shorten.rb (limited to 'Library/Formula') diff --git a/Library/Formula/shorten.rb b/Library/Formula/shorten.rb new file mode 100644 index 000000000..9e5881e77 --- /dev/null +++ b/Library/Formula/shorten.rb @@ -0,0 +1,12 @@ +require 'brewkit' + +class Shorten