![]() |
Re: Flashing Keyboard lights as patterns
I've started (and almost finished) with a VU-like app, it reads mic levels.
Mic levels are output at a range of 0-100, so it divides 100 by 6, so for 16.67, first LED will turn on, 16.67x2, second LED, etc. It's quite fast tbh, I expected it to be a lot slower since it read output from arecord. |
Re: Flashing Keyboard lights as patterns
Quote:
|
Re: Flashing Keyboard lights as patterns
I've switched to brightness instead of using the 6 LEDs, brightness gives me a range of 0-255 instead of 0-6 :)
http://mohammadag.xceleo.org/VU if you want a quick test I suppose Code:
root |
Re: Flashing Keyboard lights as patterns
Quote:
Thanks for your efforts waiting for the final app :D |
Re: Flashing Keyboard lights as patterns
Quote:
You're welcome :) |
Re: Flashing Keyboard lights as patterns
Quote:
|
Re: Flashing Keyboard lights as patterns
Same problem here. And is it normal that gnome-pty-helper uses ~97% of the cpu because of this script?
|
Re: Flashing Keyboard lights as patterns
Weird, it's causing gnome-pty-helper to go nuts, and it doesn't have anything to do with it.
killall gnome-pty-helper (from a desktop widget or whatever) and a terminal window will open, looking into it |
Re: Flashing Keyboard lights as patterns
opened symfonie and started playing a music. then i did the last step ( ./VU ) and fastly switched off the screen as you said. kind of tricky specially when you're playing a music, but got it synced at 3rd time. gives an interesting effect, it follows the music beat.
here's an idea: low sound triggers the left led, and as more louder the sound is it keeps filling, where the 6th led means 100% of "sound". this is just like the music channels bar. or another one, if you could monitor the phone's output without using the mic (can't properly explain) you could do this (sort of equalizer effect): the 3 left leds are the left audio channel.The last 3 leds are the right audio channel. the 2 most centered leds are the low volume's led, each for it's channel side. maximum audio fills the whole keyboard. if a music is more louder on the left side, the 3 left leads would be more filled (let's say 2 are filled) and only 1 right led is filled. I dont know, just had this little idea and maybe you can actually make something similar / better. and sorry for my english, i know its kinda sucky but i'm half-asleep :/ |
Re: Flashing Keyboard lights as patterns
That was what I was doing when I started working on it.
As for the second one, it would need to plug into pulseaudio, and I have no idea how to do that, plus, I'm on too many projects :/ |
All times are GMT. The time now is 01:29. |
vBulletin® Version 3.8.8