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


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

Re: How to generate sound of given frequency?

X-Received by 10.224.52.6 with SMTP id f6mr2212130qag.2.1378239148173; Tue, 03 Sep 2013 13:12:28 -0700 (PDT)
X-Received by 10.50.9.33 with SMTP id w1mr994334iga.12.1378239148079; Tue, 03 Sep 2013 13:12:28 -0700 (PDT)
Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.glorb.com!q10no2543960qai.0!news-out.google.com!p7ni567qas.0!nntp.google.com!j7no170700qai.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail
Newsgroups comp.lang.java.help
Date Tue, 3 Sep 2013 13:12:26 -0700 (PDT)
In-Reply-To <49baa85b$0$25637$b9f67a60@news.newsdemon.com>
Complaints-To groups-abuse@google.com
Injection-Info glegroupsg2000goo.googlegroups.com; posting-host=129.255.226.109; posting-account=5V5kIwoAAABePdk2ZHPCNrmcC67fMtHu
NNTP-Posting-Host 129.255.226.109
References <gpe8i6$h7h$1@news.onet.pl> <49baa85b$0$25637$b9f67a60@news.newsdemon.com>
User-Agent G2/1.0
MIME-Version 1.0
Message-ID <57d86ca7-9948-4058-a899-d4c8a2d0c040@googlegroups.com> (permalink)
Subject Re: How to generate sound of given frequency?
From ryanbrummet09@augustana.edu
Injection-Date Tue, 03 Sep 2013 20:12:28 +0000
Content-Type text/plain; charset=ISO-8859-1
Content-Transfer-Encoding quoted-printable
Xref csiph.com comp.lang.java.help:2762

Show key headers only | View raw


Hello,

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.

Sincerely,
Ryan

Back to comp.lang.java.help | Previous | NextNext 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