|
|
Comments and Discussions
|
|
 |

|
hello
when I try to run, this exception was shown
please help me thank.
28,02,2013 03:16:59 ب.ظ : Audio exception
System.NullReferenceException: Object reference not set to an instance of an object.
at SoundViewer.WaveNative.waveInOpen(IntPtr& phwi, Int32 uDeviceID, WaveFormat lpFormat, WaveDelegate dwCallback, Int32 dwInstance, Int32 dwFlags)
at SoundViewer.WaveInRecorder..ctor(Int32 device, WaveFormat format, Int32 bufferSize, Int32 bufferCount, BufferDoneEventHandler doneProc) in C:\Users\Amin\Downloads\C# Project\SoundViewerSource\SoundViewer\SoundViewer\WaveIn.cs:line 145
at SoundViewer.Form1.Start() in C:\Users\Amin\Downloads\C# Project\SoundViewerSource\SoundViewer\SoundViewer\Form1.cs:line 69
|
|
|
|
|

|
Hi Jeff,
it is a very interisting work!
However I have found a problem with Windows 7 for the acquisition of the signal coming from the mic.
Do you know how can I fix this bug?
Best wishes
Valerio Pini
|
|
|
|

|
ref PictureBox pictureBox ??
|
|
|
|

|
Hi Jeff!
1.)
In AudioFrame.cs u got 2 arrays per channel:
private double[] _waveLeft;
private double[] _waveRight;
private double[] _fftLeft;
private double[] _fftRight;
What are the double-values u are extracting out of the stream represent?
I monitored the vals from _waveLeft and if its quiet in the room, its between -250 and 250.
If I clap my hands it raises up to 2000 or down to -2000.
I search for the loudest sound in lets say 10 seconds.
Are these vals the loudness of a signal?
what is the difference to the Fouriertransformed Vals in _fftLeft/_fftRight?
2.)
True or False?
The samplingrate of 44100 means that the electric signal from the microphone
is caught 44100 times per second. Or in another way : 44100 int-values in array represent a second
of sound.
If I set the samplingrate to 1000, every millisecond a currencyvalue is writen into an arrayelement.
thxALot in advance
Dirk
PS: Just found you SoundActivated... this answers the question about the loudness!
But still asking for the samplerate.
modified on Wednesday, August 31, 2011 6:35 AM
|
|
|
|

|
Please , Let me know how to save wav or mp3 file after recording.
|
|
|
|
|

|
i want to create same application in WPF then what i have to do..can any one tell me..i used image control for picture box..but its giving me error like .....
Connvert from 'ref System.Windows.Controls.Image' to 'ref System.Drawing.Image'
please any one can give me some input..
|
|
|
|

|
Hi. Great prog.
I'm having trouble with the frequency domain display. At first it didn't display anything, then I changed the pen color to red instead of it being amplitude-dependent and it was then sort of realistic-looking, but it hardly changes, and certinly doesn't change with the frequency. I'm using my voice into a microphone - not very musical, but definitely high & low are different!, and I've also tried it with a PC signal generator from the speakers into the mike.
The time domain looks good.
I've tried using the FourierTransform.cs from SoundCatcher instead (and of course used FFT, not FFTDb), but it's still the same.
Any idea?
Thanks,
|
|
|
|

|
Thx for you to provide this project. Now i want use it to get the frequency in real-time,but i don't know how to do it?Please tell me.Thx again.
|
|
|
|

|
Pretty good basis for building a vu Led Meter. Thanx!
|
|
|
|

|
Hi Jeff,
I tried to turn everything in VB
and seems to be ok ... but when running I get an error here:
Friend Class WaveInHelper
Public Shared Sub [Try] (ByVal err As Integer)
If Err <> Then WaveNative.MMSYSERR_NOERROR
Throw New Exception (err.ToString ())
End If
End Sub
End Class
err is passed = 11... Why?
Any suggestions?
Thanks in advance
bye
my mail
andrea_pc07@alice.it
|
|
|
|

|
I need a real time sound analysis. I tried implementing my own solution for this problem but i keep getting a latency from 30 to 250 millisecond. I am trying to implement it on windows mobile 7. get all the peaks in a second (i implemented a FFT agorithm for this).I am new o sound analysis my first project on this stuff sow any help will be greatly appreciated.
|
|
|
|
|

|
how can I determine the sound level while the sound is recording in order to use the sound degree value in another applications ?
thanx alot
|
|
|
|

|
Hi,
Nice work!
How would you open an existing wav file and display the graph using Peak values?
I want to open a wav file and draw its graph with zoom capability for an audio editor?
Bill
http://www.KabbalahCode.com
|
|
|
|

|
after greeting
iwant to catch on .dll or source code
to generate sound map from image
for using it in project for blind person
my email:seka208@yahoo.com
thanks for you
|
|
|
|

|
System.NullReferenceException: Der Objektverweis wurde nicht auf eine Objektinstanz festgelegt.
bei SoundViewer.WaveNative.waveInOpen(IntPtr& phwi, Int32 uDeviceID, WaveFormat lpFormat, WaveDelegate dwCallback, Int32 dwInstance, Int32 dwFlags)
bei SoundViewer.WaveInRecorder..ctor(Int32 device, WaveFormat format, Int32 bufferSize, Int32 bufferCount, BufferDoneEventHandler doneProc)
bei SoundViewer.Form1.Start()
|
|
|
|

|
Is this available in VB.NET?
|
|
|
|

|
Hi Jeff..This works great when I use microphone but how can i input the sound from a media file being played by a media player instead of a microphone.I would like to see the visualization of a song being played. Please let me know.
Thanks
|
|
|
|

|
this an Awesome program you have.. "Kudos"
but I really want to understand how you code work!
I am reading your code line by line to understand put it taking too long and I get confused midway
I am searching for any documentation you have .. what you posted is not enough.
can you help me out ... I appreciate your help
|
|
|
|

|
Hi,
thanks for your example code.
Can it be that the first argument in the WaveFormat constructor is the audioSamplesPerSecond instead of the audioFrameSize. At least the member names of WaveFormat suggest it.
See :
Form1:
private void Start()
{
Stop();
try
{
__waveFormat = new WaveFormat(_audioFrameSize, _audioBitsPerSample, _audioChannels);
|
|
|
|

|
Hi Jeff!
Recently I face a problem when running your project on my friend's desktop PC.
The program can't pick up any voice wave from the mic of the desktop PC.
But, your project work perfectly on my laptop.
Do you know what is the cause of this problem?
|
|
|
|

|
We are using this code for a application that requires immediate response times, EMGSwitch.com. With some slower computers that get momentarily stress, delays of a second or longer can appear in the microphone input signal, regaurdless of the number of buffers used. Is there any way to avoid this or tell what the delay is?
|
|
|
|

|
Well sort of. I even converted it to VB.Net and it still worked. The frequency domain bit appears that one channel is upside down? Also the dB calculation should be 10log10(Periodogram) where Periodogram = (real^2+imag^2)/N and N is the number of FFT points.You probably have divided by N elsewhere. You have 10 Log10(sqrt(real^2+Imag^2). Maybe you mean to take amplitude spectrum rather than power spectrum..so make it 20Log sqrt(re^2+imag^2).
Sure makes me glad I use LabView for Signal Processing. Visual Studio is a total waste. Nice program though..very good to do from scratch.
|
|
|
|

|
How can i input the sound from a media file being played by a media player instead of a microphone please?
Thanks
|
|
|
|

|
Look at the Windows Task Manager, Processes tab after exiting this application. The program does not shut down completely. It still runs as a process in the background.
If the below event is entered and enabled on Form1 the problem will be corrected.
private void Form1_FormClosing(object sender, FormClosingEventArgs e)
{
Stop();
if (_stream != null)
try
{
_stream.Close();
}
finally
{
_stream = null;
}
}
|
|
|
|

|
Hi
I am sorry to say that i cant use this application
I played a media file and run the application but nothing changed
!!!!
Visit Me
www.engibrahim.tk
|
|
|
|

|
A lot of things can be learned from this!
|
|
|
|

|
I managed to import all the source code files into Visual Studio 2005 and successfully run it.
How to get the frequency, or period of the wave?
The frequency (or period) need not be precise.
I am writing an application that would read the change in frequency (or period) to perform some other tasks.
Thanks for the excellent article!
------------------------------------------------
"We are disturbed not by events, but by the views which we take of them.
I must die. Must I then die lamenting? I must be put in chains. Must I then also lament? I must go into exile. Does any man then hinder me from going with smiles and cheerfulness and contentment?"
- Epictetus (Greek Stoic Philosopher)
|
|
|
|
|

|
Hello,
I have another question. I am beginner in C#, I never used that language before...
Your code is very interesting, but unfortunally for me, he doesn't give me keys for the problem I have. In fact, I want to create an FFT spectral diagram from a wav file. Not the envelope follower as you I find the Exocortex.DSP dll which work fine, but I just need to "transform a wave file in a float tab". I am sure it exists a very simple C# functionnaly to do that, but I can't find it...
Can you help me?
Thanks in advance
Matthieu
|
|
|
|

|
Thanks for this code example, but what version of visual do you use? Because I can open it with vs 2005... Not really important, but it is strange.
|
|
|
|

|
I've been looking for a way to visualize audio on C#. Thank you for posting this.
|
|
|
|

|
Thanks.. i was looking for that one long time back..
Does it support all sound formats (eg: mp3, wav and etc)?
Thanks and Regards,
Michael Sync ( Blog: http://michaelsync.net)
If you want to thank me for my help, please vote my message by clicking one of numbers beside "Rate this message". Why vote? Plz Read it here. Thank you.
|
|
|
|
 |
|
|
General News Suggestion Question Bug Answer Joke Rant Admin
|
Simple sound sampler with visualization
| Type | Article |
| Licence | GPL3 |
| First Posted | 15 Aug 2007 |
| Views | 164,385 |
| Downloads | 13,984 |
| Bookmarked | 198 times |
|
|