Manipulating Sounds in Java

Before reading or using example of this article. You must have to learn to setup eclipse environment or use Dr. Java IDE. Here are the instructions to configure and prepare eclipse environment “customize-use-bookclasses-eclipse“.

This article will help you to understand how to digitize and manipulate (e.g. splicing, reversing and blending ) sounds. BookClass library contains SoundSimple class having flexible methods to manipulate sounds. Available methods are listed below.SimpleSound Class

Method

Description

SimpleSound(String)

Create a new sound from given sound

SimpleSound(SimpleSound)

Create a sound by passing a simplesound instance

SimpleSound(int, int)

Create sound with a buffer and the AudioFileFormat, no sound file created

SimpleSound(int, Boolean)

Create sound with given sample size in bits and title

SimpleSound(int)

Create sound with a buffer and the AudioFileFormat

SimpleSound()

Create a simplesound 3 second long

writeToFile(String)

Create an audioInputStream from this sound, and write stream out to file with specified name