Monday, January 18, 2010

How would I use Vb.net to control relays with beat of the music?

Right now i have the program set up so that check boxed come up and i can check them and doing so turns the relay on thought the parallel port. How would i set it up so that i can input a song into the program and have it play music and the program analyzes say just the tempo and turns on a specific relay when the tempo = a specific value. Thanks in advanceHow would I use Vb.net to control relays with beat of the music?
I have worked on a few projects that sound similiar to what you are trying to do. Unfortunatly, there are no easy answer to your questions.


The way that I used to control the parallel port was to interface the (freely available ) IO.DLL. You can download it here: http://www.geekhideout.com/iodll.shtml


You can use the visual basic prototypes in VB.NET 2003, and 2005. I have never tried in 2008, but I assume that it will still work. Basically , you send the port a number using this dll and it will light up the binary corresponding pins on the port.





As for the second part of the question, this is probably out of the scope that anyone is willing to try to explain in this forum. You will need to investigate the directsound methods of directx and there is a lot there to read. There is no easy way to do this.

No comments:

Post a Comment