Jump to content

Hey,

i'm currently on assemblying an LED-System to my desk and PC.

OP of the LED Project

And the OP already did the coding part, but I would like to have an Audio sensitive reaction for the LED's.

What I'm asking:

  1. Is it possible to grab the audio signal (duplicate i asume) and process it in realtime? I think yes.
  2. But: is it easy? Sure you can import a libary for Audio Analysis, but it should be easy to handle the libary. Can you suggest an easy one?

The GUI was written in C#, Arduino Code can be found in the post from above.

 

What I'm trying to do:

  1. Audio Level reactive
  2. Spectrum (Volume of Frequency presented by LED's)
  3. I don't know what else, but suggestions are welcome ;)

 

To be clear, I'm not that deep into C#, I'm currently more on the Lazarus/Pascal side, which is why I'm asking for simpicity.

And sure the data would have to be processed with the CPU, and the data sent to the Arduino.

 

Plan is to 

  1. do it myself over the 2 week holidays
  2. write with the OP some more

 

Thanks in advance!

Link to comment
https://linustechtips.com/topic/759706-realtime-audio-analysis-c/
Share on other sites

Link to post
Share on other sites

Hey! Thanks for showing interest! As for your idea, I have done it in hardware with an IC that decomposes audio signals into several frequency bands. The guide is getting a rather large update this weekend. It seems there are indeed libraries (http://stackoverflow.com/questions/12616109/audio-playback-and-spectrum-analysis-libarary-for-c-sharp) for real time audio processing. Right now I don't really have time to dig into it (as a matter of a fact I should be solving trigonometric integrals :( right now). I'll definitely take a look at it during the Easter holidays in Mexico.

Cheers!

Quote or tag if you want me to answer! PM me if you are in a real hurry!

Why do Java developers wear glasses? Because they can't C#!

 

My Machines:

The Gaming Rig:

Spoiler

-Processor: i5 6600k @4.6GHz

-Graphics: GTX1060 6GB G1 Gaming

-RAM: 2x8GB HyperX DDR4 2133MHz

-Motherboard: Asus Z170-A

-Cooler: Corsair H100i

-PSU: EVGA 650W 80+bronze

-AOC 1080p ultrawide

My good old laptop:

Spoiler

Lenovo T430

-Processor: i7 3520M

-4GB DDR3 1600MHz

-Graphics: intel iGPU :(

-Not even 1080p

 

Link to post
Share on other sites

lul OP finds my post ;)

Could have written in the other one then.

However. Nice that the Guide is getting an update. I picked up this link some time ago, and went with Bass.net for now, but I'm not that far into C#, so got nothing out of there. ^^

Have fun with integrals then ;)

Looking forward to see the update.

(Buying some connectors for all the LED strips this weekend yey)

Link to post
Share on other sites

Just now, M.Yurizaki said:

That is literally the link I posted a little over 10 mins ago... :(

Quote or tag if you want me to answer! PM me if you are in a real hurry!

Why do Java developers wear glasses? Because they can't C#!

 

My Machines:

The Gaming Rig:

Spoiler

-Processor: i5 6600k @4.6GHz

-Graphics: GTX1060 6GB G1 Gaming

-RAM: 2x8GB HyperX DDR4 2133MHz

-Motherboard: Asus Z170-A

-Cooler: Corsair H100i

-PSU: EVGA 650W 80+bronze

-AOC 1080p ultrawide

My good old laptop:

Spoiler

Lenovo T430

-Processor: i7 3520M

-4GB DDR3 1600MHz

-Graphics: intel iGPU :(

-Not even 1080p

 

Link to post
Share on other sites

21 minutes ago, 5chmidti said:

Hey,

i'm currently on assemblying an LED-System to my desk and PC.

OP of the LED Project

And the OP already did the coding part, but I would like to have an Audio sensitive reaction for the LED's.

What I'm asking:

  1. Is it possible to grab the audio signal (duplicate i asume) and process it in realtime? I think yes.
  2. But: is it easy? Sure you can import a libary for Audio Analysis, but it should be easy to handle the libary. Can you suggest an easy one?

The GUI was written in C#, Arduino Code can be found in the post from above.

 

What I'm trying to do:

  1. Audio Level reactive
  2. Spectrum (Volume of Frequency presented by LED's)
  3. I don't know what else, but suggestions are welcome ;)

 

To be clear, I'm not that deep into C#, I'm currently more on the Lazarus/Pascal side, which is why I'm asking for simpicity.

And sure the data would have to be processed with the CPU, and the data sent to the Arduino.

 

Plan is to 

  1. do it myself over the 2 week holidays
  2. write with the OP some more

 

Thanks in advance!

Spectrum analyzer requires fast Fourier transform, you can google libraries for that that suit you.

However, even to use such a library I'd suggest understanding FFT a bit, to at least understand the terminology in the library documentation.

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×