tags:

views:

54

answers:

2

i want to convert bits of data to sound, for example 1010 to beep-nobeep-beep-nobeep.how can i compress more bits in it

A: 

You can encode a lot of information into sound by using a Fourier transform.

Pascal Cuoq
I think that using Fourier transforms you need the whole range of frequencies, and not just beep (single tone...)
Dani
@Dani You are right, but if the OP is limited to "beep" and "no beep" of equal lengths, he already has an optimal encoding. My answer is slightly tongue-in-cheek, but since the question is a little fuzzy, why not assume the best conditions?
Pascal Cuoq
A: 

you can use pattern, assume longbeep means the beginning of a pattern ID and than beep the pattern id, end it with another longbeep. (If I understood your question...)

or - you can compress the data using a compression library and beep the results... and then uncompress...

Dani
isn't that called morse code? ;^)
Toad