One thing that does work under linux is wavfile operating on a file name:
wavfile'/home/jph/Desktop/Aomago/black-2x.wav'
File Type RIFF
Total Size 2444066
File Format WAVE
Channels 1
Sample Rate 400
Sample Count 1222011
Bits per Sample 16
wavfile '/home/jph/Desktop/Aomago/Ao1.wav'
File Type RIFF
Total Size 33178112
File Format WAVE
Channels 2
Sample Rate 48000
Sample Count 817508530
Bits per Sample 16
But if I read in the file:
Ao1wav=. fread'/home/jph/Desktop/Aomago/Ao1.wav'
wavfile Ao1wav
|file name error: mapsub
| ts=. 1!:4<fn
and wavdata doesn't even work with the filename:
Z=. wavdata '/home/jph/Desktop/Aomago/Ao1.wav'
|assertion failure: assert
| assert chunk-:'RIFF'
Here's the JVERSION:
Engine: j903/j64avx2/linux
Release-b: commercial/2022-01-28T04:13:29
Library: 9.03.08
Qt IDE: 1.9.5/5.12.8(5.12.8)
Platform: Linux 64
Installer: J903 install
InstallPath: /home/jph/j903
Running the files through ffmpeg made no difference.
Patrick
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