GithubHelp home page GithubHelp logo

Comments (3)

ddf avatar ddf commented on July 29, 2024

Hey, just looks like that example hasn't been updated properly. If you declare player as an AudioRecordingStream, it should work.

from minim.

 avatar commented on July 29, 2024

Hey - thanks for your prompt answer.. Just getting started with this, the RecordLineIn (2.1.0) example is not compiling for me, telling me it cannot find a class or type named "AudioRecordingStream".
Perhaps you can help me - I'm trying to load two internet streams and compare them merely to see if they are identical (aka sound quality more or less irrelevant).
To compensate for timeshifts/delays I want to let one (or both) through a buffer in order to play them back with a delay or ahead (max 2000ms, I believe). For that I've made this first sketch, that kind of draws it out visually to make these adjustments. http://www.openprocessing.org/sketch/59551
For now I'm using the same stream twice, but eventually they will be different.I will have to figure out some smart (FFT) way to match them up and run (loop through the sample array) them both at a quality-wise lowest common denominator - sufficient enough to tell they're identical. Perhaps that can be done by subtracting their FFT signatures?
Maybe you have som best practice tips after looking where i'm going... all help is much appreciated.

:) Thanks

from minim.

ddf avatar ddf commented on July 29, 2024

Sounds like a tough problem and I don't have the brainspace right now to help with solving it, but I think you're on the right track. You need to get them sync'd somehow and then compare. FFT might be best, but depending on what kind of tolerances you need, simply comparing audio samples might get you there.

I've fixed this example (ea4ec44) so I'm going to close this issue. For help on your sketch, you might try posting to the Processing forums about it.

from minim.

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.