From dcd8571b97b89a9c361652ec46011718f7c7e2de Mon Sep 17 00:00:00 2001 From: Brian Smyth Date: Wed, 16 Sep 2009 16:40:21 -0400 Subject: [PATCH] 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. --- Formula/shorten.rb | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 Formula/shorten.rb diff --git a/Formula/shorten.rb b/Formula/shorten.rb new file mode 100644 index 0000000000..9e5881e77e --- /dev/null +++ b/Formula/shorten.rb @@ -0,0 +1,12 @@ +require 'brewkit' + +class Shorten