jp.crestmuse.cmx.amusaj.filewrappers
クラス WAVWrapper

java.lang.Object
  上位を拡張 jp.crestmuse.cmx.amusaj.filewrappers.WAVWrapper
すべての実装されたインタフェース:
AudioDataCompatible, FileWrapperCompatible

public class WAVWrapper
extends java.lang.Object
implements FileWrapperCompatible, AudioDataCompatible

The WAVWrapper class wraps a WAV file.


コンストラクタの概要
WAVWrapper(DoubleArray[] wav, int sampleRate)
           
 
メソッドの概要
 int channels()
           
 javax.sound.sampled.AudioFormat getAudioFormat()
           
 byte[] getByteArrayWaveform()
           
 DoubleArray[] getDoubleArrayWaveform()
          Returns the waveform.
 java.lang.String getFileName()
           
static WAVWrapper readfile(java.lang.String filename)
          Reads the specified file.
 int sampleRate()
          Returns the sampling rate.
 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
 

コンストラクタの詳細

WAVWrapper

public WAVWrapper(DoubleArray[] wav,
                  int sampleRate)
           throws java.io.IOException
例外:
java.io.IOException
メソッドの詳細

sampleRate

public int sampleRate()
Returns the sampling rate.

定義:
インタフェース AudioDataCompatible 内の sampleRate

getDoubleArrayWaveform

public DoubleArray[] getDoubleArrayWaveform()
Returns the waveform.

定義:
インタフェース AudioDataCompatible 内の getDoubleArrayWaveform

channels

public int channels()
定義:
インタフェース AudioDataCompatible 内の channels

getByteArrayWaveform

public byte[] getByteArrayWaveform()
定義:
インタフェース AudioDataCompatible 内の getByteArrayWaveform

getAudioFormat

public javax.sound.sampled.AudioFormat getAudioFormat()
定義:
インタフェース AudioDataCompatible 内の getAudioFormat

getFileName

public java.lang.String getFileName()
定義:
インタフェース FileWrapperCompatible 内の getFileName

readfile

public static WAVWrapper readfile(java.lang.String filename)
                           throws java.io.IOException
Reads the specified file.

例外:
java.io.IOException

writefile

public void writefile(java.lang.String filename)
               throws java.io.IOException
Writes the waveform to the specified file.

例外:
java.io.IOException

writefile

public void writefile(java.io.File file)
               throws java.io.IOException
定義:
インタフェース FileWrapperCompatible 内の writefile
例外:
java.io.IOException

write

public void write(java.io.OutputStream out)
           throws java.io.IOException
定義:
インタフェース FileWrapperCompatible 内の write
例外:
java.io.IOException

write

public void write(java.io.Writer writer)
           throws java.io.IOException
定義:
インタフェース FileWrapperCompatible 内の write
例外:
java.io.IOException

writeGZippedFile

public void writeGZippedFile(java.io.File file)
                      throws java.io.IOException
定義:
インタフェース FileWrapperCompatible 内の writeGZippedFile
例外:
java.io.IOException