Google Answers Logo
View Question
 
Q: Converting sound into zeroes and ones ( Answered,   1 Comment )
Question  
Subject: Converting sound into zeroes and ones
Category: Computers > Software
Asked by: burton90-ga
List Price: $50.00
Posted: 03 Oct 2004 06:55 PDT
Expires: 02 Nov 2004 05:55 PST
Question ID: 409618
I need to convert sound into zeroes and ones (0 & 1), i want to do
this with software, i dont have a clue about sounds so i need realy
detailful explanation how to do this, like "which software should i
use", " how should i do this with the software" and so.. ? (ps: the
sound is long 2 seconds)

Request for Question Clarification by andyt-ga on 03 Oct 2004 09:26 PDT
Hi burton90,
Which format is the sound file in (mp3, wav, etc..)?  Are you running
windows, linux, mac os x?  Are you comfortable running a command line
program?

-Andy

Request for Question Clarification by efn-ga on 03 Oct 2004 09:44 PDT
Hi burton90,

Do you mean you want to record audible sound into a computer file? 
That is, use the computer like a tape recorder:  plug a microphone
into the computer, aim the microphone at a sound source, press Record,
record the sound, press Stop, and then you have a recorded sound you
can play back.

If not, please explain more about what you are trying to do.  I'm not
sure what you mean by "zeroes and ones."  Do you want to record a
sound and then have it represented on a computer screen as a whole lot
of 0 and 1 characters?

--efn

Request for Question Clarification by pafalafa-ga on 04 Oct 2004 08:49 PDT
Hello burton90-ga,

Pretty intriguing question you've asked here...one DOES wonder why you
want to convert sound into zeros and ones...?

I can help you convert a sound file into something close...there are
programs that will convert sound files into hexadecimal units and/or
into pixels (each pixel colored according to the value of the
hexadecimal code).

For instance, the beginning of Beethoven's Ninth looks like this:


FDh,F1h,2Ah,5Ch,C8h,20h,C8h,35h,5Ah,55h,BCh,DEh,28h
4Dh,52h,A9h,69h,1Dh,88h,DBh,49h,81h,6Bh,B5h,0Dh,D6h,ACh,A8h,9Dh
35h,A1h,4Bh,B4h,6Fh,E0h,61h,3Eh,9Fh,56h,39h,ABh,2Fh,80h,80h,44h
61h,E1h,EEh,FAh,E4h,89h,2Fh,35h,24h,5Ch,D5h,DDh,DCh,DFh,E7h,D7h
24h,49h,79h,A9h,22h,E6h,AEh,EEh,E6h,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Ah,50h,BBh,12h,2Eh,98h,3Ch,7Eh,B1h
20h,C9h,A0h,20h,ACh,45h,92h,11h,44h,F7h,BAh,7Dh,EBh,25h,37h,D0h
B5h,88h,1Bh,C8h,B3h,D3h,78h,1Eh,E9h,B1h,F3h,A1h,45h,14h,39h,75h
56h,CAh,10h,3Dh,ECh,F1h,BDh,22h,84h,C2h,4Eh,A4h,D6h,52h,71h,78h
FCh,8Ch,D3h,29h,E3h,0Ah,B0h,A3h,4Dh,8Bh,0Eh,22h,53h,C3h,7Eh,24h
F5h,25h,8Ah,ABh,11h,4Ch,4Dh,3Dh,2Eh,C5h,0Ah,62h,14h,86h,C9h,28h
71h,22h,85h,89h,21h,F7h,39h,E0h,B0h,50h,FAh,52h,D2h,16h,52h,5Ch
6Dh,90h,D6h,38h,9Fh,0Fh,EAh,EFh,45h,94h,42h,62h,C9h,43h,65h,31h
57h,48h,EAh,68h,78h,C8h,8Ah,58h,F9h,CEh,A5h,8Eh,8Fh,0Ah,A8h,57h
53h,2Ah,C0h,89h,69h,F1h,B4h,CAh,F2h,ABh,C1h,72h,50h,C4h,43h,4Fh
E6h,49h,25h


...and so on (a very l-o-o-o-o-n-g so on....).  I wish you could see a
screen shot, because it looks a lot like the data screens from The
Matrix, if you're familiar with that movie.  The pixel conversion is
pretty cool too, in a static-y sort of way.


This is one step shy of actual binary (zeros and ones) code, but it's
actually quite a challenge to go the next step, and get these to
actual zeros and ones.  I guess there are not many folks with an
interest in viewing the actual zeros and ones, so there haven't been
programs that I can find that allow for such a view.

Would the hexadecimal conversion meet your needs...?  If so, let me
know, and I'll be happy to provide the details as an answer to your
question.

Cheers,

pafalafa-ga

Clarification of Question by burton90-ga on 05 Oct 2004 04:17 PDT
clarification for andyt-ga: yes its wave file (.wav) I have both
windows 98se and linux slackware 8.0 or 9.0, the file is only 2-3
seconds long.

clarification for efn-ga: I have it already on the computer as wave
file (.wav file) Its just i need to see it as zeroes and ones on the
computer screen.

clarification for pafalafa-ga: Sorry hex is not good enough, i just
need to see the 2-3 seconds sound as zeroes and ones.I dont mind if
its not thru software i just need the result :) The sound presented as
zeroes and ones.

mister2u-ga: Thank you for the comment, i know that the computer
understands all as zeroes and ones its just im looking the way to
print the binary of this sound file so i can see how its presented as
zeroes and ones.
Answer  
Subject: Re: Converting sound into zeroes and ones
Answered By: pafalafa-ga on 05 Oct 2004 05:29 PDT
 
Hello again burton90-ga,

Got it!

You need a copy of Hex Editor II, which you can download at:



http://www.popularshareware.com/Hex-Editor-II-download-6871.html



It's name notwithstanding, this shareware program will allow you to
view any file in your choice of binary, hexidecimal, decimal or text.

The program has a free trial period, after which, you are asked to pay
for its continued use.

After downloading and opening the program, all you need to do is
select "Binary" under the "View" pull-down menu, and then choose the
file you wish to open under the "File" pull-down menu.

This should give you exactly the view you're looking for...ones and
zeros to your heart's content.  But before rating this answer, please
let me know if you need any additional information.  Just post a
Request for Clarification, and I'll be happy to assist you further.


All the best, 

pafalafa-ga




search strategy -- Google searches on:

"hexadecimal to binary" conversion
hex bin conversion download
Comments  
Subject: Re: Converting sound into zeroes and ones
From: mister2u-ga on 04 Oct 2004 06:29 PDT
 
Zeroes and ones are they only numbers or letters a computer
understands anyway,that is the way machine code works,any other
program just acts as an interface between you and the computer.You may
want to learn to program in assembler that is the most base computer
language.

Important Disclaimer: Answers and comments provided on Google Answers are general information, and are not intended to substitute for informed professional medical, psychiatric, psychological, tax, legal, investment, accounting, or other professional advice. Google does not endorse, and expressly disclaims liability for any product, manufacturer, distributor, service or service provider mentioned or any opinion expressed in answers or comments. Please read carefully the Google Answers Terms of Service.

If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you.
Search Google Answers for
Google Answers  


Google Home - Answers FAQ - Terms of Service - Privacy Policy