Menu

Main Menu
Talk Get Daily Search

Member's Online

    User Name
    Password

    Flashing Keyboard lights as patterns

    Reply
    Page 15 of 17 | Prev | 5   13     14   15   16     17   | Next
    MohammadAG | # 141 | 2010-11-28, 01:10 | Report

    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.

    Edit | Forward | Quote | Quick Reply | Thanks
    The Following 7 Users Say Thank You to MohammadAG For This Useful Post:
    airjaff, Cue, F2thaK, hycraig, Mentalist Traceur, moepda, xperto

     
    xperto | # 142 | 2010-11-28, 18:54 | Report

    Originally Posted by MohammadAG View Post
    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.
    And when can we test it ?

    Edit | Forward | Quote | Quick Reply | Thanks

     
    MohammadAG | # 143 | 2010-11-28, 18:57 | Report

    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
    wget http://mohammadag.xceleo.org/VU
    chmod +x VU
    #open the keyboard, and just after you press enter on the next command, lock the screen using the lockswitch for best performance (working on it!)
    ./VU

    Edit | Forward | Quote | Quick Reply | Thanks
    The Following 5 Users Say Thank You to MohammadAG For This Useful Post:
    Char, CutterSlade, F2thaK, Mentalist Traceur, xperto

     
    xperto | # 144 | 2010-11-28, 19:13 | Report

    Originally Posted by MohammadAG View Post
    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
    wget http://mohammadag.xceleo.org/VU
    chmod +x VU
    #open the keyboard, and just after you press enter on the next command, lock the screen using the lockswitch for best performance (working on it!)
    ./VU
    Thanks MohammadAG it works.. the lights are very dim.. and they blink very quickly
    Thanks for your efforts
    waiting for the final app

    Edit | Forward | Quote | Quick Reply | Thanks

     
    MohammadAG | # 145 | 2010-11-28, 19:39 | Report

    Originally Posted by xperto View Post
    Thanks MohammadAG it works.. the lights are very dim.. and they blink very quickly
    Thanks for your efforts
    waiting for the final app
    Shout
    You're welcome

    Edit | Forward | Quote | Quick Reply | Thanks
    The Following User Says Thank You to MohammadAG For This Useful Post:
    CutterSlade

     
    xperto | # 146 | 2010-11-28, 22:12 | Report

    Originally Posted by MohammadAG View Post
    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
    wget http://mohammadag.xceleo.org/VU
    chmod +x VU
    #open the keyboard, and just after you press enter on the next command, lock the screen using the lockswitch for best performance (working on it!)
    ./VU
    After i play this in my xterm and i close the app and xterm.. my xterm doesn't load again until i reboot my device. any help ?

    Edit | Forward | Quote | Quick Reply | Thanks

     
    Keneraali | # 147 | 2010-12-01, 15:34 | Report

    Same problem here. And is it normal that gnome-pty-helper uses ~97% of the cpu because of this script?

    Edit | Forward | Quote | Quick Reply | Thanks

    Last edited by Keneraali; 2010-12-01 at 15:36.

     
    MohammadAG | # 148 | 2010-12-01, 15:37 | Report

    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

    Edit | Forward | Quote | Quick Reply | Thanks

     
    RiD | # 149 | 2010-12-09, 23:29 | Report

    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 :/

    Edit | Forward | Quote | Quick Reply | Thanks

     
    MohammadAG | # 150 | 2010-12-09, 23:42 | Report

    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 :/

    Edit | Forward | Quote | Quick Reply | Thanks
    The Following 2 Users Say Thank You to MohammadAG For This Useful Post:
    Cue, CutterSlade

     
    Page 15 of 17 | Prev | 5   13     14   15   16     17   | Next
vBulletin® Version 3.8.8
Normal Logout