Further:

Z=. 2 wavfile '/home/jph/j903/addons/media/wav/test1.wav'

$Z

22108

But ...

Z=. 2 wavfile '/home/jph/Desktop/Aomago/Ao1.wav'

$Z

0

So 2 wavefile 'name.wav' reads Oleg's test data but not mine.

On 4/3/22 2:38 PM, Elijah Stone wrote:
I just tested--the wavfile and wavdata verbs, at least, seem to work without issue on linux.  I expect it is only playback that is windows-specific.  Are you specifically looking to perform playback, or only analysis?

I tried wavdata on a 44mb wav file, and it produced a result without issue, so I do not think there are size limitations.  It's possible there are nonstandard chunks in the file which are messing the parser up.  Try running e.g. 'ffmpeg -i x.wav y.wav', if your file is x.wav, and see if you have better luck processing y.wav.

 -E

On Sun, 3 Apr 2022, 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 see http://www.jsoftware.com/forums.htm

----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to