MathGroup Archive 1999

[Date Index] [Thread Index] [Author Index]

Search the Archive

audio input problem

  • To: mathgroup at smc.vnet.net
  • Subject: [mg16984] audio input problem
  • From: pdickof at sk.sympatico.ca (Peter Dickof)
  • Date: Sat, 10 Apr 1999 02:13:27 -0400
  • Organization: Self
  • Sender: owner-wri-mathgroup at wolfram.com

I am trying to input sounds I have recorded into Mathematica. The
example given in the add-on package book (MSwin chimes)  works.

When I read my own file  using command

astring=ReadSoundfile["E:\Recording\a440-2.wav",PrintHeader->True];

the following header info is returned:

Format: Multimedia WAVE
Duration: 9.15417  seconds
Channels: 1
Sampling Rate: 44100
Bits per sample: 16
Data size: 807398 bytes
Number of Samples: 403699

which agrees with what I know the file to contain (it was created with
Powertracks Pro Audio V5.0c and is playable in both that software and
with the  Windows media player (V 6.00.02.0902).  When I attempt 

ListPlay[astring, SampleRate->44100, SampleDepth -> 16,
  PlayRange->{-2^15,2^15}]

I get LOUD noise for about 1/2 second. The 1/2  second is consistent 
with the contents of astring; the Length[astring] is 20154!  A plot of
astring shows what appears to be a waveform with negative excursions
from +32768 (instead of 0)  and positive excursions from -32768
(instead of 0)

Any ideas on what I am doing wrong?

Peter Dickof
pdickof at sk.sympatico.ca



  • Prev by Date: Re: Permutations & Computer capacity
  • Next by Date: shading in area
  • Previous by thread: Re: Re: ListDensityPlot[ ] and DensityGraphics
  • Next by thread: shading in area