litlmike Posted May 23, 2013 Posted May 23, 2013 I would like to execute a function whenever the incoming decibel level reaches a certain value, any idea on how to go about this? I have no idea on how to go about detecting incoming decibel levels. _ArrayPermute()_ArrayUnique()Excel.au3 UDF
BrewManNH Posted May 23, 2013 Posted May 23, 2013 Please clarify what you're looking for, because I don't think decibel is it. Are you looking to find out how loud something is? If I posted any code, assume that code was written using the latest release version unless stated otherwise. Also, if it doesn't work on XP I can't help with that because I don't have access to XP, and I'm not going to.Give a programmer the correct code and he can do his work for a day. Teach a programmer to debug and he can do his work for a lifetime - by Chirag GudeHow to ask questions the smart way! I hereby grant any person the right to use any code I post, that I am the original author of, on the autoitscript.com forums, unless I've specifically stated otherwise in the code or the thread post. If you do use my code all I ask, as a courtesy, is to make note of where you got it from. Back up and restore Windows user files _Array.au3 - Modified array functions that include support for 2D arrays. - ColorChooser - An add-on for SciTE that pops up a color dialog so you can select and paste a color code into a script. - Customizable Splashscreen GUI w/Progress Bar - Create a custom "splash screen" GUI with a progress bar and custom label. - _FileGetProperty - Retrieve the properties of a file - SciTE Toolbar - A toolbar demo for use with the SciTE editor - GUIRegisterMsg demo - Demo script to show how to use the Windows messages to interact with controls and your GUI. - Latin Square password generator
litlmike Posted May 23, 2013 Author Posted May 23, 2013 Please clarify what you're looking for, because I don't think decibel is it. Are you looking to find out how loud something is? Yes, I guess that is it. If the microphone on the PC is receiving input, I would like to know whenever that input goes over a certain level. I guess it technically doesn't have to be decibel. Whenever the room is loud, I want to execute a function _ArrayPermute()_ArrayUnique()Excel.au3 UDF
BrewManNH Posted May 23, 2013 Posted May 23, 2013 Perhaps _BASS_ChannelGetLevel in the BASS UDF might be of some use, I haven't used it so I'm not sure if it will do what you're looking for. If I posted any code, assume that code was written using the latest release version unless stated otherwise. Also, if it doesn't work on XP I can't help with that because I don't have access to XP, and I'm not going to.Give a programmer the correct code and he can do his work for a day. Teach a programmer to debug and he can do his work for a lifetime - by Chirag GudeHow to ask questions the smart way! I hereby grant any person the right to use any code I post, that I am the original author of, on the autoitscript.com forums, unless I've specifically stated otherwise in the code or the thread post. If you do use my code all I ask, as a courtesy, is to make note of where you got it from. Back up and restore Windows user files _Array.au3 - Modified array functions that include support for 2D arrays. - ColorChooser - An add-on for SciTE that pops up a color dialog so you can select and paste a color code into a script. - Customizable Splashscreen GUI w/Progress Bar - Create a custom "splash screen" GUI with a progress bar and custom label. - _FileGetProperty - Retrieve the properties of a file - SciTE Toolbar - A toolbar demo for use with the SciTE editor - GUIRegisterMsg demo - Demo script to show how to use the Windows messages to interact with controls and your GUI. - Latin Square password generator
litlmike Posted May 23, 2013 Author Posted May 23, 2013 Perhaps _BASS_ChannelGetLevel in the BASS UDF might be of some use, I haven't used it so I'm not sure if it will do what you're looking for. Hmmm... I do not think that it does, from what I can tell. I think that it is a visualizer for an audio file. There has to be a way to do this...hmmm....I mean if windows is able to detect sound levels, I would assume there is a way to do this... _ArrayPermute()_ArrayUnique()Excel.au3 UDF
BrewManNH Posted May 23, 2013 Posted May 23, 2013 Did you read the information about that function? ; Name ..........: _BASS_ChannelGetLevel ; Description ...: Retrieves the level (peak amplitude) of a stream, MOD music or recording channel. If I posted any code, assume that code was written using the latest release version unless stated otherwise. Also, if it doesn't work on XP I can't help with that because I don't have access to XP, and I'm not going to.Give a programmer the correct code and he can do his work for a day. Teach a programmer to debug and he can do his work for a lifetime - by Chirag GudeHow to ask questions the smart way! I hereby grant any person the right to use any code I post, that I am the original author of, on the autoitscript.com forums, unless I've specifically stated otherwise in the code or the thread post. If you do use my code all I ask, as a courtesy, is to make note of where you got it from. Back up and restore Windows user files _Array.au3 - Modified array functions that include support for 2D arrays. - ColorChooser - An add-on for SciTE that pops up a color dialog so you can select and paste a color code into a script. - Customizable Splashscreen GUI w/Progress Bar - Create a custom "splash screen" GUI with a progress bar and custom label. - _FileGetProperty - Retrieve the properties of a file - SciTE Toolbar - A toolbar demo for use with the SciTE editor - GUIRegisterMsg demo - Demo script to show how to use the Windows messages to interact with controls and your GUI. - Latin Square password generator
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