scottlawsonbc / audio-reactive-led-strip

:musical_note: :rainbow: Real-time LED strip music visualization using Python and the ESP8266 or Raspberry Pi
MIT License
2.68k stars 644 forks source link

send udp directly from music player w/o microphone #210

Open aamarioneta opened 5 years ago

aamarioneta commented 5 years ago

is it possible to send udp data directly from the player to the nodemcu without the need of a microphone?

Advantages: less noise, more accurate, less delay

i play music with kodi. following possibilities come to mind:

joeybab3 commented 5 years ago

Scott is in the process of a rewrite that will allow nodejs plugins to be released at a future date. In the mean time what platform are you on?

aamarioneta commented 5 years ago

Ubuntu 14.04, will probably upgrade soon.

-----Original Message----- From: Joey Babcock notifications@github.com To: scottlawsonbc/audio-reactive-led-strip audio-reactive-led-strip@noreply.github.com Cc: aamarioneta aa.marioneta@gmail.com, Author author@noreply.github.com Sent: Thu, 23 May 2019 18:52 Subject: Re: [scottlawsonbc/audio-reactive-led-strip] send udp directly from music player w/o microphone (#210)

Scott is in the process of a rewrite that will allow nodejs plugins to be released at a future date. In the mean time what platform are you on?

-- You are receiving this because you authored the thread. Reply to this email directly or view it on GitHub: https://github.com/scottlawsonbc/audio-reactive-led-strip/issues/210#issuecomment-495298703

joeybab3 commented 5 years ago

There’s a few issues on here similar to yours I believe, you’re trying to get the audio playing on your device to stream directly to the arduino, rather than sampling from the mic and sending correct? If so I know on windows you can use the stereo mixer and I believe we figured out a solution for Linux previously I’ll have a look at the previous issues and see if I can find it.

aamarioneta commented 5 years ago

Yes, thats exactly what i want. However the stream has to be in format [i,r,g,b] if i understand the .ino code correctly. It also has to be calculated for the exact number of pixels. That means the raw audio stream has to be processed before it is streamed. Otherwise the processing has to be done on the esp8266. I dont know. Is it powerful enough?

-----Original Message----- From: Joey Babcock notifications@github.com To: scottlawsonbc/audio-reactive-led-strip audio-reactive-led-strip@noreply.github.com Cc: aamarioneta aa.marioneta@gmail.com, Author author@noreply.github.com Sent: Thu, 23 May 2019 19:20 Subject: Re: [scottlawsonbc/audio-reactive-led-strip] send udp directly from music player w/o microphone (#210)

There’s a few issues on here similar to yours I believe, you’re trying to get the audio playing on your device to stream directly to the arduino, rather than sampling from the mic and sending correct? If so I know on windows you can use the stereo mixer and I believe we figured out a solution for Linux previously I’ll have a look at the previous issues and see if I can find it.

-- You are receiving this because you authored the thread. Reply to this email directly or view it on GitHub: https://github.com/scottlawsonbc/audio-reactive-led-strip/issues/210#issuecomment-495308189

joeybab3 commented 5 years ago

I think some of the fft would be a bit to much for something like the esp8266 to handle, so the processing would have to still be done on the computer but implementing loopback does decrease the delay and increase the overall quality of the animation in my experience