 |
|
 |
I think this code will be very useful to me, but I was wondering if it can easily be converted to handle 8-bit wav files. I tried using "short" instead of "Int16", but it didn't work.
Thanks!
Dan Portman
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
I'd like to generate a fixed-frequency tone in correspondance with "pieces" of a waveform with amplitude greater than a given value; I can analyze amplitude using your source, but how can I generate tone?
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
Do you think to be able to analyze a signal like this one to figure out when and how long the signal is high and low? <img src="http://www.planetmobile.it/jumpjack/remote-dvd-lg-rh255-PLAY-wav-76000Hz.JPG<br mode=" hold=" /"> It's the result of sampling my remote control using an IR led connected to audio card. If I could send its digital version out to com port, I could use LIRC to decode the signal, without buying the TSOP 1738 component, usually required for LIRC sampling but which I am not able to find, unless sent for 8$ s&h!
Of course I should create a loopback among two serial ports: one for my output, one for LIRC input. </img>
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
I tried to use your class WaveFile in my C# project. My wave file has only 1 channel.
Why do you divide the size by four when returning ReadSize, BufferSize, etc.?
Thanks
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
Its been such a long time since I looked at the code and WAV files that I may be a bit rusty but after a quick glance:
1) This software was writen for 16-bit Two Channel WAV Files 2) Stereo WAV data is stored in pairs. Left, Right, Left, Right etc. So to get say 100 samples for both you have to read 200 samples and split the data. This gives a factor of 2 3) The file system read functions - something to do with 16-bit / 32-bit data changes also introduce a factor of 2.
Combining points 2 and 3 give you the factor of 4. The WAV reader code was writen taking all this into acount so as to not have fidaly changes for the API calls.
Now as I said, I am a bit rusty and my explination may not be easy to follow - I suggest you find some information of WAV file structures - there are plenty of websites and even Wikipedia can help on this.
EDIT: I may have more time in the next few months to improve on the software and even update to newer VS versions.
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
hey hi how can i modify your code to make it work for single chanel i took out the statement that check whether or not if it had 2 signals or not and it gave me 2 same views i went thorugh your website but you havent added anything there yet too as you said you will can you guide me for this buddy
thanks, amit
|
| Sign In·View Thread·PermaLink | 2.00/5 (1 vote) |
|
|
|
 |
|
|
 |
|
 |
Hi,
thanks for a fantastic article! It helps a lot, though do you know of a way to reduce the flickering whilst scrolling through the wav file? I would love to use this control in a program I'm writing which will allow you to play, seek and edit wav files and I was thinking about a slider inside the control (which I've added), though due to the need of an almost constant invalidate(), the drawing is very flickery.
Also, please let me know if you do not wish to me use this in my program. I will of course, give you full credit, as you are the one who wrote it in the first place.
Kind regards,
Daniel
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
Daniel,
Your more than welcome to use the control in your application as long is it remains free and credit is in the "About" box.
As for the flickering, im not sure there is much that can be done if you want it to constently refresh. I had this problem with the left to right scroll used in the display window and the only solution I found was to stop it updating untill after the scroll was finished.
The control does need a lot of work. It is inefficent for a a major application as it uses large amounts of processor every time it re-renders. There are ways around this, and I might be able to make it better, but I currently do not have time. If you keep an eye out at the software section www.quenchmaster.co.uk I will be adding this code there and will try to update it as well.
Cheers
Adrian
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
Hello,
I downloaded your waverender code. And i'm very interesting by this code and i have a lots of questions:
- My first question is about the restriction of 16 bits and stereo. Do you have a newer version who don't have this resctriction (I need to render MONO wav) ?
- Is it possible to help me make the link between time and the wav data ? For example, i would like to get a value for each 0.1 second of the wav for all kinds of wav.
- Is it possible to read a .wmv or others file type ?
- Can you help me understand the “level”, for exemple, how to know what is the “0” level. (a need to convert ‘your’ value to x/100(percent) value)
- Do you know a code who add / read / edit cue point in a wav file ?
- Do you have a newer version?
Thank you very much.
Nicolas G.
|
| Sign In·View Thread·PermaLink | 2.00/5 (1 vote) |
|
|
|
 |
|
 |
Hi Nicolas,
Appolgies for taking so long to reply, i have been quite busy and I have not been getting emails from this site.
The restriction to 16bits and stero is only arbitary. I did not have time to code parts to handle the other WAV types. I do though know how to solve this and may eventualy do so in an updated version.
I can't get it to read .wmv files yet as I do not know the compression format. It would require conversion to WAV first for the time being.
Linking the data with time is not hard, you just have to come at the problem in a slightly different angle. Something I will add during an update.
I havnt looked at the code for about 1 and 1/2 years so I can not answeer your other questions at the moment. Please keep and eye on the software section http://www.quenchmaster.co.uk[^] which will have this software added to it in the near future.
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
Hello, I downloaded your waverender code. And i'm very interesting by this code and i have a lots of questions: - My first question is about the restriction of 16 bits and stereo. Do you have a newer version who don't have this resctriction (I need to render MONO wav) ? - Is it possible to help me make the link between time and the wav data ? For example, i would like to get a value for each 0.1 second of the wav for all kinds of wav. - Is it possible to read a .wmv or others file type ? - Can you help me understand the “level”, for exemple, how to know what is the “0” level. (a need to convert ‘your’ value to x/100(percent) value) - Do you know a code who add / read / edit cue point in a wav file ? - Do you have a newer version? Thank you very much.
Nicolas
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
Hello.. Can you please give a simple example of how to read the wavefile alone byte by byte..?? The whole code which you've presented is so long...I dont understand it.. I am taking a seminar on DSP in .net in 2 days..So,please help me understand on reading the wavefile alone... The whole code seems confusing to me,please help...Thank you so much in advance
Godwin
|
| Sign In·View Thread·PermaLink | 3.00/5 (2 votes) |
|
|
|
 |
|
 |
"have not done much serious programming untill now" You are Brilliant, You have to do some thing serious Hum!.......... & thanks for that Tutorial
|
| Sign In·View Thread·PermaLink | 1.00/5 (1 vote) |
|
|
|
 |