Module FreedbQuery
In: lib/freedb_query.rb
_darcs/current/lib/freedb_query.rb

Make queries to hand to a freedb server, out of things that are not audio CDs.

Methods

Public Instance methods

Find the sum of all the digits of an integer.

If you pass in a float you will get very strange results.

Find the sum of all the digits of an integer.

If you pass in a float you will get very strange results.

Construct a FreeDB query from a list of filenames of PCM audio files.

Returns a string of the format: "discID nrTracks offset1 offset2 … offsetn totalLengthInSeconds"

Assumes offset1 is 150, which is nearly always true.

Construct a FreeDB query from a list of filenames of PCM audio files.

Returns a string of the format: "discID nrTracks offset1 offset2 … offsetn totalLengthInSeconds"

Assumes offset1 is 150, which is nearly always true.

[Validate]