AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

In SoundBeep what is the frequency measured in?

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
h4xx0r n00bl37



Joined: 14 Mar 2008
Posts: 58

PostPosted: Wed Apr 09, 2008 12:33 am    Post subject: In SoundBeep what is the frequency measured in? Reply with quote

Khz?
Back to top
View user's profile Send private message
Guest






PostPosted: Wed Apr 09, 2008 12:34 am    Post subject: Reply with quote

Back to top
h4xx0r n00bl37



Joined: 14 Mar 2008
Posts: 58

PostPosted: Wed Apr 09, 2008 12:48 am    Post subject: Reply with quote

Back to top
View user's profile Send private message
[VxE]



Joined: 07 Oct 2006
Posts: 1219

PostPosted: Wed Apr 09, 2008 5:18 am    Post subject: Reply with quote

I'm not sure the exact relationship between Soundbeep's pitch param and actual notes, however there is an AHK piano script that seems to be definitive regarding what notes correspond to what numbers.
_________________
My Home Thread
More Common Answers: 1. It's in the FAQ 2. Ternary ( ? : ) guide 3. Post code with [code][/code] tags
Back to top
View user's profile Send private message
Lexikos



Joined: 17 Oct 2006
Posts: 2589
Location: Australia, Qld

PostPosted: Wed Apr 09, 2008 5:59 am    Post subject: Reply with quote

SoundBeep corresponds directly to Beep.
MSDN wrote:
dwFreq
The frequency of the sound, in hertz. This parameter must be in the range 37 through 32,767 (0x25 through 0x7FFF).
Back to top
View user's profile Send private message
Z Gecko
Guest





PostPosted: Wed Apr 09, 2008 6:19 am    Post subject: Reply with quote

Here i posted a little funtion that helps calculating the frequency for soundbeep.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group