Having trouble importing WAV files into gnaural java on mac. Tried "n" to create new voice as well as loading a scheduled file but can't seem to get an import of wav file. I made sure it is formatted at 44,100. Trying to add some sounds over beats. Any help appreciated, thanks!!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi. Hopefully it's just a path or bit-rate issue (the WAV files need to be 16-bit). Or simplest of all: Maybe you didn't hit "Enter" (or Mac equivalent) on your keyboard after entering filename in the Description field.
Best thing to try is starting Gnaural in a terminal window, to see debugging info. To start it in a terminal, simply type: java -jar GnauralJava.jar
If audio file and path typed in "Description" field are valid, you'll see something like:
If that doesn't do it, here's some more info: Gnaural can handle mono or stereo fine, but putting metadata in the WAV file (like Audacity tries to do during the Save process, i.e., offering text boxes for "Description", etc.) can cause a read fail if you don't leave everything blank. If this is the problem, Audacity would also be "the cure" (i.e., Audacity can "erase" metadata too via the Save dialog).
I don't have a Mac to test on, but in general, Linux (what I use) and Mac have identical UNIX-style path formats; indeed, Windows is the special-case, byt re-testing WAV functionality just now on a windows machine, with backslashes and even unnecessary drive letter (i.e., "C:\Users\gnaural\Downloads\Bells.wav"), works fine. Using odd characters in the filename (even spaces) can be a problem; in general, you'd want to avoid anything but letters and numbers anyway, to keep whatever you save fully multi-platform.
Handling audio files is definitely a weakness in Java's native libs, unfortunately.
Having trouble importing WAV files into gnaural java on mac. Tried "n" to create new voice as well as loading a scheduled file but can't seem to get an import of wav file. I made sure it is formatted at 44,100. Trying to add some sounds over beats. Any help appreciated, thanks!!
Hi. Hopefully it's just a path or bit-rate issue (the WAV files need to be 16-bit). Or simplest of all: Maybe you didn't hit "Enter" (or Mac equivalent) on your keyboard after entering filename in the Description field.
Best thing to try is starting Gnaural in a terminal window, to see debugging info. To start it in a terminal, simply type:
java -jar GnauralJava.jar
If audio file and path typed in "Description" field are valid, you'll see something like:
When I deliberately put the wrong filename in there, it spits out:
If that's not the problem, test the approach with a truly vanilla WAV file; I just now tested this random free sample, worked fine on both Windows and Linux:
http://www.music.helsinki.fi/tmt/opetus/uusmedia/esim/a2002011001-e02.wav
If that doesn't do it, here's some more info: Gnaural can handle mono or stereo fine, but putting metadata in the WAV file (like Audacity tries to do during the Save process, i.e., offering text boxes for "Description", etc.) can cause a read fail if you don't leave everything blank. If this is the problem, Audacity would also be "the cure" (i.e., Audacity can "erase" metadata too via the Save dialog).
I don't have a Mac to test on, but in general, Linux (what I use) and Mac have identical UNIX-style path formats; indeed, Windows is the special-case, byt re-testing WAV functionality just now on a windows machine, with backslashes and even unnecessary drive letter (i.e., "C:\Users\gnaural\Downloads\Bells.wav"), works fine. Using odd characters in the filename (even spaces) can be a problem; in general, you'd want to avoid anything but letters and numbers anyway, to keep whatever you save fully multi-platform.
Handling audio files is definitely a weakness in Java's native libs, unfortunately.