JamesBond Posted January 15, 2008 Posted January 15, 2008 Hi all again...=) I would like to make my pc to do something (to change the screen color, for example) following then rhythm of a music. Is there any way to do that?? I hope you understood.. Thanks
guwguw Posted January 15, 2008 Posted January 15, 2008 Do you mean SoundPlay(@WindowsDir & "\media\tada.wav",1) or _SoundPlay($sound, 1) ?
JamesBond Posted January 15, 2008 Author Posted January 15, 2008 (edited) No I'll try to explain better: ... I would like to play a song and, while it's playing, to "get" the bass of the song in order to change the background color of a gui when the bass is higher... Edited January 15, 2008 by JamesBond
covaks Posted January 15, 2008 Posted January 15, 2008 I think he means programming something to the beat of a music track. Like the audio visualizations in wmp that react to the music. I have no idea how he'd go about something like that though.
JamesBond Posted January 15, 2008 Author Posted January 15, 2008 Thank you, covaks....That's exactly what I mean...=) DjDeep00, I took a look at that script, but it doesn't work! The function returns me always the same number..
DjDeep00 Posted January 15, 2008 Posted January 15, 2008 The script works fine, not sure what value you are looking at. I changed up the function so you can see what value is being returned by the DllCall... Func _mciSendString($lpszCommand, $lpszReturnString, $cchReturn, $hwndCallback) $Return=DllCall("winmm.dll", "long", "mciSendStringA", "str", $lpszCommand, "str", $lpszReturnString, "long", $cchReturn, "long", 0) ConsoleWrite($Return[2] & @CRLF) Return $Return EndFunc ;==>_mciSendString Check out $Return[2]...
JamesBond Posted January 15, 2008 Author Posted January 15, 2008 Sorry, Dj, could you post an example?? Excuse me for my stupidity Thank for the help!
DjDeep00 Posted January 15, 2008 Posted January 15, 2008 Post an example of.....?... Whatever I posted above was simply to state that the function works and it returns values. As far as what you want todo with those values then thats where you need to start building the blocks. If you want to create some program that will change the screen color of the monitor,some GUI, or whatever then you will need to start cooking up a script and then people will jump in and help you out further.
davecollinsnz Posted August 3, 2008 Posted August 3, 2008 (edited) For link that DjDeep00 gave, the script only responds to volume level and I'm having a jolly good time (read as - confusing) trying to figure out how to detect the low frequencies (bass) from the information on this page. Edited August 3, 2008 by TheDarkEngineer Trust me to make SkyNet with AutoIt...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now