The OEIS is supported by the many generous donors to the OEIS Foundation.

 Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 60th year, we have over 367,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”). Other ways to Give
 Hints (Greetings from The On-Line Encyclopedia of Integer Sequences!)
 A320277 A digitized pure tuning tone, sampled at standard settings for consumer audio: a(n) = floor(sin(2*Pi*(440/44100)*n)*32767). 0
 0, 2052, 4097, 6126, 8130, 10103, 12036, 13921, 15752, 17521, 19222, 20846, 22389, 23844, 25205, 26467, 27625, 28675, 29612, 30433, 31134, 31713, 32167, 32494, 32695, 32766, 32709, 32524, 32210, 31770, 31206, 30518, 29711, 28787, 27750, 26604, 25354, 24004, 22559, 21026, 19410 (list; graph; refs; listen; history; text; internal format)
 OFFSET 0,2 COMMENTS This sequence represents sample values for the simplest sound: a pure tone with no harmonics (i.e., a sine wave) with 0 phase shift, of digital peak amplitude, pitched at the standard tuning frequency (A440), and sampled at the standard sampling rate and bit depth resolution for consumer audio: 44100 Hz and 16 bits, respectively. Since the maximum signed integer value that can be stored in 16 bits is (2^15)-1=32767, the method used to convert the floats to integers is to multiply the floats by 32767 then cast to integer. The numerator and the denominator of the g.f. have degrees respectively equal to 2204 and 2205. - Stefano Spezia, Nov 02 2018 REFERENCES A. Davison, Killer Game Programming in Java, O'Reilly Media, 2005, page 254. LINKS Table of n, a(n) for n=0..40. KVR, How to get each sample of a sine wave given sample rate, frequency, bit depth Wikipedia, Audio bit depth Wikipedia, Pulse-code modulation Wikipedia, Sampling MATHEMATICA a[n_]:= Floor[Sin[2*Pi*(440/44100)*n]*32767]; Array[a, 50, 0] (* Stefano Spezia, Nov 02 2018 *) PROG (Python) for x in range(100): ...floatval = math.sin(2*math.pi*(440/44100)*x)*32767 ...intval = int(floatval) ...print(intval) CROSSREFS Sequence in context: A224728 A224721 A224720 * A322102 A206068 A280021 Adjacent sequences: A320274 A320275 A320276 * A320278 A320279 A320280 KEYWORD sign AUTHOR Jim Singh, Oct 08 2018 STATUS approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

Last modified December 11 10:53 EST 2023. Contains 367722 sequences. (Running on oeis4.)