|
|||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | ||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | ||||||||
java.lang.Objectjp.crestmuse.cmx.amusaj.filewrappers.WAVWrapper
public class WAVWrapper
The WAVWrapper class wraps a WAV file.
| コンストラクタの概要 | |
|---|---|
WAVWrapper(AudioDataCompatible wav)
|
|
WAVWrapper(DoubleArray[] wav,
int sampleRate)
|
|
| メソッドの概要 | |
|---|---|
int |
channels()
|
javax.sound.sampled.AudioFormat |
getAudioFormat()
|
byte[] |
getByteArrayWaveform()
|
DoubleArray[] |
getDoubleArrayWaveform()
Returns the waveform. |
java.lang.String |
getFileName()
|
boolean |
hasNext(int sampleSize)
|
static WAVWrapper |
readfile(java.lang.String filename)
Reads the specified file. |
DoubleArray[] |
readNext(int sampleSize,
int nOverlap)
|
int |
sampleRate()
Returns the sampling rate. |
boolean |
supportsWholeWaveformGetter()
|
void |
write(java.io.OutputStream out)
|
void |
write(java.io.Writer writer)
|
void |
writefile(java.io.File file)
|
void |
writefile(java.lang.String filename)
Writes the waveform to the specified file. |
void |
writeGZippedFile(java.io.File file)
|
| クラス java.lang.Object から継承されたメソッド |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| コンストラクタの詳細 |
|---|
public WAVWrapper(DoubleArray[] wav,
int sampleRate)
throws java.io.IOException
java.io.IOException
public WAVWrapper(AudioDataCompatible wav)
throws java.io.IOException
java.io.IOException| メソッドの詳細 |
|---|
public int sampleRate()
AudioDataCompatible 内の sampleRatepublic boolean supportsWholeWaveformGetter()
AudioDataCompatible 内の supportsWholeWaveformGetterpublic DoubleArray[] getDoubleArrayWaveform()
AudioDataCompatible 内の getDoubleArrayWaveformpublic int channels()
AudioDataCompatible 内の channelspublic byte[] getByteArrayWaveform()
AudioDataCompatible 内の getByteArrayWaveformpublic javax.sound.sampled.AudioFormat getAudioFormat()
AudioDataCompatible 内の getAudioFormat
public DoubleArray[] readNext(int sampleSize,
int nOverlap)
AudioDataCompatible 内の readNextpublic boolean hasNext(int sampleSize)
AudioDataCompatible 内の hasNextpublic java.lang.String getFileName()
FileWrapperCompatible 内の getFileName
public static WAVWrapper readfile(java.lang.String filename)
throws java.io.IOException
java.io.IOException
public void writefile(java.lang.String filename)
throws java.io.IOException
java.io.IOException
public void writefile(java.io.File file)
throws java.io.IOException
FileWrapperCompatible 内の writefilejava.io.IOException
public void write(java.io.OutputStream out)
throws java.io.IOException
FileWrapperCompatible 内の writejava.io.IOException
public void write(java.io.Writer writer)
throws java.io.IOException
FileWrapperCompatible 内の writejava.io.IOException
public void writeGZippedFile(java.io.File file)
throws java.io.IOException
FileWrapperCompatible 内の writeGZippedFilejava.io.IOException
|
|||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | ||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | ||||||||