C
CoreyWhite
Convert WAV To BMP And Back
On RentaCoder one of the coders thought I just wanted him to change the
extension from WAV to BMP. Another coder brought up the complexities
of actually converting WAVs to JPGs and back again, because JPGs are
compressed. And someone else asked me how they could actually convert
it. It is easiest if we work with BMPs and WAVs because if we worked
with BMP image files you just have to get into the binary code of the
file, and swap the headers around. So as long as photoshop thinks the
WAV is a BMP file you will be able to see what it looks like and modify
it. But I don't expect a representation that looks like a graphical
wav file. I expect a colorful psychedelic mess.
What I suggest is a simple command line interface that has all the
fields for the headers as boxes for input. The number of colors in the
image, the height and width, etc. And all the fields for the type of
sound on the other. And then the user gets to make a manual switch.
It would be nice if we could do all of this live, and while I was
editing in photoshop it could show me a convenient display of what the
WAV file was intended to look like. But we will need to run
experiments to see how the file size of WAVs and BMPs relate to the
headers, minus the size of the headers (which change depending on the
size of the headers fields).
Here is some data...
100x100 pixels: 29.3 KB (30,056 bytes)
1x1 pixels: 60 bytes (60 bytes)
resulution 72 pixels/inch
Color Moder: RGB 8 Bit
Depth 24 Bit
- saved in photoshop -
The content of the files doesn't matter it is all 1s and 0s, the
headers determine the size. We could do another experiment just like
this with a wav file, and see how the size of the file relates to the
wav files headers.
I would like to be able to blend music in photoshop by mixing layers of
wav files. I can take two recordings of someone singing the same song,
and blend them together in photoshop. An example could be taking a
robot voice that sings a song, and then blending it with my voice while
I am singing. To create a more realistic robot. This is one of the
techniques they are using to make music in holywood. And obviously we
could also take real life images or abstract or and see what they
"sound like".
On RentaCoder one of the coders thought I just wanted him to change the
extension from WAV to BMP. Another coder brought up the complexities
of actually converting WAVs to JPGs and back again, because JPGs are
compressed. And someone else asked me how they could actually convert
it. It is easiest if we work with BMPs and WAVs because if we worked
with BMP image files you just have to get into the binary code of the
file, and swap the headers around. So as long as photoshop thinks the
WAV is a BMP file you will be able to see what it looks like and modify
it. But I don't expect a representation that looks like a graphical
wav file. I expect a colorful psychedelic mess.
What I suggest is a simple command line interface that has all the
fields for the headers as boxes for input. The number of colors in the
image, the height and width, etc. And all the fields for the type of
sound on the other. And then the user gets to make a manual switch.
It would be nice if we could do all of this live, and while I was
editing in photoshop it could show me a convenient display of what the
WAV file was intended to look like. But we will need to run
experiments to see how the file size of WAVs and BMPs relate to the
headers, minus the size of the headers (which change depending on the
size of the headers fields).
Here is some data...
100x100 pixels: 29.3 KB (30,056 bytes)
1x1 pixels: 60 bytes (60 bytes)
resulution 72 pixels/inch
Color Moder: RGB 8 Bit
Depth 24 Bit
- saved in photoshop -
The content of the files doesn't matter it is all 1s and 0s, the
headers determine the size. We could do another experiment just like
this with a wav file, and see how the size of the file relates to the
wav files headers.
I would like to be able to blend music in photoshop by mixing layers of
wav files. I can take two recordings of someone singing the same song,
and blend them together in photoshop. An example could be taking a
robot voice that sings a song, and then blending it with my voice while
I am singing. To create a more realistic robot. This is one of the
techniques they are using to make music in holywood. And obviously we
could also take real life images or abstract or and see what they
"sound like".