tag:blogger.com,1999:blog-6822536077160579260.post6923417164670307902..comments2023-06-05T14:25:52.227+01:00Comments on Sound Code: Audio WaveForm Drawing Using WPFAnonymoushttp://www.blogger.com/profile/17900587357903273800noreply@blogger.comBlogger16125tag:blogger.com,1999:blog-6822536077160579260.post-79454999021045613182012-10-11T07:26:35.352+01:002012-10-11T07:26:35.352+01:00Thank you so much for posting this Just months and...Thank you so much for posting this Just months and months for looking for some sort of clue. I had been toiling at a combined Tcl and Maxima application calling on some C scripts to make a fortran file. If any of that interests you have a look at Theo Verelst's work at wiki.tcl.tk, fascinating stuff I still hope to get it all to work. I have had success with a skinned transparent very simple wav player in VB and used sharpdevelop. I can't WAIT to get all into exploring this. Again thanx so much. freemenemoryerror@gmail.comfreehttps://www.blogger.com/profile/07718052760760740763noreply@blogger.comtag:blogger.com,1999:blog-6822536077160579260.post-63087272034868374692011-03-07T10:33:48.369+00:002011-03-07T10:33:48.369+00:00Please tell me how to do this:
The way we achieve ...Please tell me how to do this:<br />The way we achieve this is simply by starting recording and displaying the level of audio detected to the user with a volume meter. The waveIn APIs do not write anything to disk, so no audio is actually being ‘recorded' at this point, we are simply examining the input level and then throwing the captured audio samples away.<br />I just want to know where's the function for this. Thank you.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-6822536077160579260.post-3938052052446346752011-03-03T14:12:39.377+00:002011-03-03T14:12:39.377+00:00@des, I'm afraid the NAudio winforms waveform ...@des, I'm afraid the NAudio winforms waveform drawing doesn't have those capabilities - you'd have to write that yourselfAnonymoushttps://www.blogger.com/profile/17900587357903273800noreply@blogger.comtag:blogger.com,1999:blog-6822536077160579260.post-48325177356685903682011-03-03T08:13:39.250+00:002011-03-03T08:13:39.250+00:00thanks for replying mark. i referred to Naudio, bu...thanks for replying mark. i referred to Naudio, but there's some limitation to it. Like i cannot redraw the waveform(meaning to clear it and draw again), it cant scroll left and right if it gets too long, and it cant work with recording, it only does with playing. Any help? Thanks a lot.desnoreply@blogger.comtag:blogger.com,1999:blog-6822536077160579260.post-22055558361381149112011-02-14T16:08:35.878+00:002011-02-14T16:08:35.878+00:00@des - download the NAudio source code for an exam...@des - download the NAudio source code for an example of WaveForm drawing in WinFormsAnonymoushttps://www.blogger.com/profile/17900587357903273800noreply@blogger.comtag:blogger.com,1999:blog-6822536077160579260.post-22098916711626603682011-02-14T08:41:46.601+00:002011-02-14T08:41:46.601+00:00hey mark,
can you please provide the codes for dis...hey mark,<br />can you please provide the codes for displaying the waveform from recording(like the one you did in Voice Recorder) in WinForms?<br /><br />Thanks a lot.desnoreply@blogger.comtag:blogger.com,1999:blog-6822536077160579260.post-36564725246369432392010-10-13T10:56:40.540+01:002010-10-13T10:56:40.540+01:00Hi Helmut,
that would be awesome. I have a select...Hi Helmut,<br /><br />that would be awesome. I have a selection control I made as part of the voicerecorder project on CodePlex, but it is far from complete<br /><br />MarkAnonymoushttps://www.blogger.com/profile/17900587357903273800noreply@blogger.comtag:blogger.com,1999:blog-6822536077160579260.post-43049481408909831442010-10-13T10:54:01.884+01:002010-10-13T10:54:01.884+01:00Hi Mark,
yes - that will be our next aproach - cu...Hi Mark,<br /><br />yes - that will be our next aproach - currently we are converting our app to WPF.<br />I want to try different approaches and come back to you with my solution. Would you be interessted in having an WaveView/Selection Control in the NAudio-Package?<br /><br />Greets - HelmutHelmut Obertannerhttp://www.jinglejim.denoreply@blogger.comtag:blogger.com,1999:blog-6822536077160579260.post-61221931844465542832010-10-12T19:06:51.514+01:002010-10-12T19:06:51.514+01:00hi Helmut,
yes, in some ways WaveForm drawing is ...hi Helmut, <br />yes, in some ways WaveForm drawing is easier in WinForms than WPF. I am wondering whether to try using a writeable bitmap at some pointAnonymoushttps://www.blogger.com/profile/17900587357903273800noreply@blogger.comtag:blogger.com,1999:blog-6822536077160579260.post-32243342067270989002010-10-12T07:04:27.511+01:002010-10-12T07:04:27.511+01:00Hello Mark,
Nice Post!
In JingleJim we use another...Hello Mark,<br />Nice Post!<br />In JingleJim we use another approach for displaying waveforms.<br />We get the numsamples of the canvas. Then we can calculate the numSamples required for onbe pixel. For the num samples we calculate the avg-value. We split the view into let's say 10 Blocks and we convert the audiodata to a 8 bit waveform in a memory bitmap using a backgroundthread. Then we blitting the bitmap into the display - not drawing directly.<br />Much faster then drawing into canvas. Currently we are using Winforms, but should work the same for WPF. <br />NAudio is great!<br />Greets - HelmutHelmut Obertannerhttp://www.jinglejim.denoreply@blogger.comtag:blogger.com,1999:blog-6822536077160579260.post-11572250665083310572009-10-01T12:29:53.977+01:002009-10-01T12:29:53.977+01:00wow, thank you very much!
this is so much of a hel...wow, thank you very much!<br />this is so much of a help for me :DAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-6822536077160579260.post-24899653286998302452009-10-01T09:32:47.456+01:002009-10-01T09:32:47.456+01:00hi Anonymous, have a look in the WPFDemo of NAudio...hi Anonymous, have a look in the WPFDemo of NAudio.<br /><br />Visualisation of entire WAV files is something that I am still working on. You can see a solution that works for short files at my new VoiceRecorder project on CodePlex (voicerecorder.codeplex.com)Anonymoushttps://www.blogger.com/profile/17900587357903273800noreply@blogger.comtag:blogger.com,1999:blog-6822536077160579260.post-90940636894406931312009-10-01T09:03:26.112+01:002009-10-01T09:03:26.112+01:00When will you release this Code?
I'm looking ...When will you release this Code?<br /><br />I'm looking for a Control to draw the Waveform of 8,16 and 24bit mono/stereo wave files.<br /><br />I don't know where to start in WPF.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-6822536077160579260.post-4445997263565236032009-08-09T10:31:38.508+01:002009-08-09T10:31:38.508+01:00Wow- thanks so much for sharing your efforts! You ...Wow- thanks so much for sharing your efforts! You make it all so clear. Consider me a new loyal viewerChoonshttps://www.blogger.com/profile/18404970248928799834noreply@blogger.comtag:blogger.com,1999:blog-6822536077160579260.post-68934674918017521112009-07-04T18:22:56.589+01:002009-07-04T18:22:56.589+01:00hi Roland. thanks, that is useful information. Any...hi Roland. thanks, that is useful information. Anything that improves performance will be useful. Will need to check that it works for Silverlight too though.Anonymoushttps://www.blogger.com/profile/17900587357903273800noreply@blogger.comtag:blogger.com,1999:blog-6822536077160579260.post-2420827413602343812009-07-04T18:05:08.453+01:002009-07-04T18:05:08.453+01:00Hi ! I'm not sur that using the high-level geo...Hi ! I'm not sur that using the high-level geometry figures is the best approach in this particular case. I think that you should have define your custom Visual (Say, WaveformVisual), and override its Render method. This is the "lightweight" approach for drawing in WPF, and often recommanded for dynamic curves & so on ( eg : financial graphs,... ).Roland Tomczakhttps://www.blogger.com/profile/09424693277534586358noreply@blogger.com