Click sounds at beginning or end of sounds, looping false, Windows
Opened this issue · 3 comments
I'm hearing a click sound at the end of an WAV file when played in a Processing sketch using Maxim, despite the fact that the WAV file fades to complete zero at its end.
If I swap out Maxim with Minim, I don't hear this glitch.
I don't understand the details here, but it seems the WAV files prepared on a PC are different from those on a Mac. The audio files included with the Coursera examples play fine with Maxim on my machine, but the WAV files I have prepared (with the audio editor in FL Studio) play back with Maxim with a click/scratch sound at the beginning or end. It's a bit unpredictable, but it seems to sound like a single sample offset from zero. To experiment, I opened up the wav file in Audacity, cropped a bit of it at the end (making sure it still fades to complete zero), and saved it from Audacity. But this new file exhibits the same behavior with Maxim.
It might be hard to diagnose, because it may be machine dependent, but if you want to have a look at an example project using my audio files, here it is:
http://rectangleworld.com/testing/SoundTest3.zip
On my machine (PC, Windows 7, soundcard: NVIDIA GeForce GT 230M) I hear a click at the beginning and end of this sound when it is played in the Processing sketch.
Again, if I swap out Maxim with Minim, I don't hear this glitch.
(Maxim.js is working fine, though!)
I get the exact same problem, but don't really have the option of switching to Minim (Minim doesn't give me the ability to change the speed of a playing clip).
I've run into this issue before using other libraries in Java and it's almost always a failure of the player class to reset the player data before playing the clip.
Update: Looks like the library doesn't read metadata properly. If I exclude metadata and markers from my .wav, it works fine. Otherwise, it plays static at the end of the sample.
Hi there
Thanks for this. We're looking into it.
On 14 July 2014 05:02, yogsodoth notifications@github.com wrote:
Update: Looks like the library doesn't read metadata properly. If I
exclude metadata and markers from my .wav, it works fine. Otherwise, it
plays static at the end of the sample.—
Reply to this email directly or view it on GitHub
#3 (comment).