Jump to content
Sign in to follow this  
JamesBond

Music rhythm

Recommended Posts

JamesBond

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?? :D

I hope you understood.. Thanks

Share this post


Link to post
Share on other sites
guwguw

Do you mean

SoundPlay(@WindowsDir & "\media\tada.wav",1)

or

_SoundPlay($sound, 1) ?

Share this post


Link to post
Share on other sites
JamesBond

No :D 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 by JamesBond

Share this post


Link to post
Share on other sites
covaks

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.

Share this post


Link to post
Share on other sites
JamesBond

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..:D

Share this post


Link to post
Share on other sites
DjDeep00

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]...

Share this post


Link to post
Share on other sites
JamesBond

Sorry, Dj, could you post an example?? :D

Excuse me for my stupidity

Thank for the help!

Share this post


Link to post
Share on other sites
DjDeep00

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.

Share this post


Link to post
Share on other sites
davecollinsnz

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 by TheDarkEngineer

Trust me to make SkyNet with AutoIt...

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×