title: Beep library for Java?
body: <p>In Java, is there any functions that can emit a (motherboard) beep with a given frequency and duration? In many languages I've worked with, you can; Beeps are useful for indicating certain types of errors, also for easily generating music.</p>
  
  <p>The standard way to beep would be either print the BEEP character (\007 or something) or to use Toolkit.beep(), neither of which allows you to specify frequency and duration.</p>
  
  <p>I'm thinking of implementing a native method, but there should be a library somewhere to do this simple task. I'm looking for something like <code>SomeClass.beep(500,1000);</code></p>
  
  <p>My application will only be supported on Windows.</p>
  
  <p>Thanks.</p>