Thanks Marshall,
I've tried loading your wav.ijs and experimented with readwav
filename.wav. The results are mixed. Some files are read but others fail
like this:
a=. readwav '/home/jph/Desktop/Aomago/Ao1.wav'
|Subchunk1Size is invalid: assert
| 'Subchunk1Size is invalid' assert(0 2 24 e.~se=.Subchunk1Size-16)
I will examine your code to see if I can understand what's going on, but
I fear it's too deep for me.
Basically, I want a native J way to extract the basic data from the ,wav
file for analysis, in particular
Fourier transforms. Of course there are excellent programs like
"Audacity" that can do this, but my
files may have sample rates that are out of the normal audio range, e.g.
>48000 bps or as low as
200 bps. I have one recorder (Tascam DR-05X) which produces files that
your readwav and Oleg's
wavfile have no trouble with. However, I wanted to exceed the 48000
sample rate of this recorder
and have tried an Aomago A36 which is supposed to support 1536 Kbps
recording. The wav files
it produces are OK with standard software but are failing when I use
these J tools.
Patrick
On 4/3/22 5:45 PM, Marshall Lochbaum wrote:
I have a .wav reader/writer here:
https://github.com/mlochbaum/JSound/blob/master/wav.ijs
It only works on fairly basic files, and I'm not maintaining it any
more, but it could be worth a try.
Marshall
On Sun, Apr 03, 2022 at 02:19:48PM -0400, J. Patrick Harrington wrote:
I have been investigating some data in the form of .wav files taken with a
compact digital audio recorder. In the addons I found the tools by Oleg K
under media/wav. One limitation is that they seem to work only under
windows. I normally work under Ubuntu linux or even Mac OS. I do have a PC
with j903 installed, and the media/wav examples work on that machine. Has
anyone tried to extend this addon to other operating systems, or are there
significant obstacles with other OS's?
I also find that in trying to analyze my own .wav files which are fairly
large (~14 Mb), while wavinfo works fine, wavdata fails with an index error
or spelling error. I wonder if there are size limitations that are the
problem, or just some mistake of mine.
Anyway, if there are resources or further information on .wav files under J
(I've not searched extensively) I'd be interested to learn about them.
Thanks, Patrick
----------------------------------------------------------------------
For information about J forums seehttp://www.jsoftware.com/forums.htm
----------------------------------------------------------------------
For information about J forums seehttp://www.jsoftware.com/forums.htm
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm