Git Product home page Git Product logo

Comments (8)

Tiuipuv avatar Tiuipuv commented on July 17, 2024

Just ran your program and ran into a similar issue. If I yell at my microphone when I click run it works perfectly. Must have to do with some audio level input calibration in first run. Any ideas on if it is your code or if it is a libraries?

from csharp-data-visualization.

swharden avatar swharden commented on July 17, 2024

Just ran your program and ran into a similar issue. If I yell at my microphone when I click run it works perfectly. Must have to do with some audio level input calibration in first run. Any ideas on if it is your code or if it is a libraries?

I haven't looked into it specifically yet (I know this issue is a bit old), but I just uploaded a similar program a few days ago: https://github.com/swharden/ScottPlot/tree/master/demos#realtime-audio-data

You can download compiled versions here:
https://github.com/swharden/ScottPlot/tree/master/demos/AudioMonitor/compiled

Do they present the same problems?

from csharp-data-visualization.

Tiuipuv avatar Tiuipuv commented on July 17, 2024

I just ran the compiled version of the FFT AudioMonitor, and it presented the same issue. If I yell into the mic, it has far less 'mic noise' than the times that I open the program in silence.

from csharp-data-visualization.

swharden avatar swharden commented on July 17, 2024

One thought I had is that I'm trying to force the sound card to operate in 16-bit mode, but perhaps not all sound cards are happy with this. I made an alternate version which auto-detects the bit rate the sound card wants to operate at. Does this version have the same problem? autoBitRateFFT.zip

I'm starting to wonder if it may be an issue with NAudio (the library I'm using to access the microphone). They have demo code on their website you could use to test it out if you want...
https://github.com/naudio/NAudio/blob/master/Docs/RecordWavFileWinFormsWaveIn.md

ps: Thanks for helping me debug this! I can't recreate the issue on my home computer (but I can at my work computer).

from csharp-data-visualization.

swharden avatar swharden commented on July 17, 2024

I'm so sorry - I sent you the wrong ZIP. Does this version have the same problem?

autoBitrateCircular.zip

from csharp-data-visualization.

swharden avatar swharden commented on July 17, 2024

I know what the problem is. I way over-thought it!

  • left-click-drag to pan
  • right-click-drag to zoom
  • middle-click once to auto-scale

Just zoom out! It auto-zooms based upon the peak volume it hears in the first half-second or so.

Let me know how that works for you!

from csharp-data-visualization.

Tiuipuv avatar Tiuipuv commented on July 17, 2024

Haha yeah, sorry...That definitely solves it! I should have noticed the units were off. Speaking of which, your y-axis is labeled Hz, but it is definitely not 1 Hz up there. Does it maybe mean kHz? or are the graph units arbitrary...

from csharp-data-visualization.

swharden avatar swharden commented on July 17, 2024

Glad you got it working!

Yeah, that was a typo in the axis label. Those units are kHz. You can test it with http://www.szynalski.com/tone-generator/ to be sure.

from csharp-data-visualization.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.