public class GUIInstrumentTools
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static javax.sound.sampled.AudioFormat |
TARGET_FORMAT |
| Constructor and Description |
|---|
GUIInstrumentTools() |
| Modifier and Type | Method and Description |
|---|---|
static ManagedAudioInputStream |
adjust(javax.sound.sampled.AudioInputStream ais,
float factor,
ProgressIndicator pi)
Adjust the volume ...
|
static ManagedAudioInputStream |
crop(javax.sound.sampled.AudioInputStream ais,
long start,
long end)
Crop the current section ...
|
static SoundSample |
loadWavFile(java.io.File wavFile)
load wav from file,
|
static SoundSample |
loadWavFile(java.io.InputStream wavStream,
java.lang.String name)
loadwav file from stream
|
public static SoundSample loadWavFile(java.io.InputStream wavStream, java.lang.String name) throws java.lang.Exception
wavStream - the streamname - java.lang.Exceptionpublic static SoundSample loadWavFile(java.io.File wavFile) throws java.lang.Exception
wavFile - java.lang.Exceptionpublic static ManagedAudioInputStream adjust(javax.sound.sampled.AudioInputStream ais, float factor, ProgressIndicator pi) throws java.lang.Exception
ais - factor - java.lang.Exceptionpublic static ManagedAudioInputStream crop(javax.sound.sampled.AudioInputStream ais, long start, long end) throws java.lang.Exception
start - end - java.lang.Exception