View Single Post
Copernicus's Avatar
Posts: 1,986 | Thanked: 7,698 times | Joined on Dec 2010 @ Dayton, Ohio
#51
Originally Posted by Wikiwide View Post
If you need to look only at volume spikes, then install VUmeter and configure it to execute certain commands when volume spikes - and code your LED application to be executable from outside. Then, instead of repeating work done in VUmeter, you will make your application integratable with others.
Well, that's the thing -- I don't know if I need to only look at volume spikes. Listening for a beat seems more like a task that requires continuous monitoring of the audio stream, rather than just kicking off a call to Lanterne any time the audio volume reaches a particular level... But yeah, let me take a look at VUmeter; I've never really used it before. (Have I mentioned that I've never played with audio streams at all before? )

Also, my personal goal for this app is to teach myself about the low-level details of the N900's hardware (as well as to sharpen my coding skills), so I would like to know how it's actually done.

A question: can you add second column of buttons - or an easy switch between white LEDs and red LED - with the same functionality for red LED?
Ah, absolutely! I used to use a little red light when I was into astronomy; makes it possible to read star charts without completely destroying your night vision.

I have no clue how anybody codes for these LEDs (there's practically no documentation anywhere), but I have found a V4L2 identifier for the indicator LED, so I'll try and get that into the next update.
 

The Following 9 Users Say Thank You to Copernicus For This Useful Post: