Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.help > #2763

Re: How to generate sound of given frequency?

From "John B. Matthews" <nospam@nospam.invalid>
Newsgroups comp.lang.java.help
Subject Re: How to generate sound of given frequency?
Date 2013-09-03 22:01 -0400
Organization The Wasteland
Message-ID <nospam-A0DF9D.22011203092013@news.aioe.org> (permalink)
References <gpe8i6$h7h$1@news.onet.pl> <49baa85b$0$25637$b9f67a60@news.newsdemon.com> <57d86ca7-9948-4058-a899-d4c8a2d0c040@googlegroups.com>

Show all headers | View raw


In article <57d86ca7-9948-4058-a899-d4c8a2d0c040@googlegroups.com>,
 ryanbrummet09@augustana.edu wrote:

> A little after the fact, but thank you!  I'm wondering why you scaled 
> sin(angular frequency) by vol and 127.  I'm assuming this is because 
> 127 corresponds to the maximum volume setting and vol is the desired 
> amplitude.  Also, why did you reshape the first and last 10ms of the 
> wave?
> 
> Again thank you very much. I've spent some time trying to figure this 
> out and your code was the first that I came across that was straight 
> forward.

Recalling this thread [1] from 2009, you may also like to examine these 
two related examples [2, 3]:

[1] <https://groups.google.com/d/topic/comp.lang.java.help/7vR_AWw1AwQ/discussion>
[2] <http://stackoverflow.com/a/7782749/230513>
[3] <http://stackoverflow.com/a/2065693/230513>

-- 
John B. Matthews
trashgod at gmail dot com
<http://sites.google.com/site/drjohnbmatthews>

Back to comp.lang.java.help | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Re: How to generate sound of given frequency? ryanbrummet09@augustana.edu - 2013-09-03 13:12 -0700
  Re: How to generate sound of given frequency? "John B. Matthews" <nospam@nospam.invalid> - 2013-09-03 22:01 -0400
  Re: How to generate sound of given frequency? Knute Johnson <nospam@knutejohnson.com> - 2013-09-03 21:38 -0700
  Re: How to generate sound of given frequency? Roedy Green <see_website@mindprod.com.invalid> - 2013-09-09 01:46 -0700
    Re: How to generate sound of given frequency? Knute Johnson <nospam@knutejohnson.com> - 2013-09-09 06:59 -0700
      Re: How to generate sound of given frequency? "John B. Matthews" <nospam@nospam.invalid> - 2013-09-09 15:45 -0400
  Re: How to generate sound of given frequency? Roedy Green <see_website@mindprod.com.invalid> - 2013-10-21 20:36 -0700

csiph-web