Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Click sounds at beginning or end of sounds, looping false, Windows #3

Open
RectangleWorld opened this issue Jul 7, 2013 · 3 comments

Comments

@RectangleWorld
Copy link

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!)

@yogsodoth
Copy link

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.

@yogsodoth
Copy link

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.

@micknoise
Copy link
Owner

Hi there

Thanks for this. We're looking into it.

On 14 July 2014 05:02, yogsodoth [email protected] 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).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants