メモです。Javaで波形データ作成再生サンプル:メモの続きです。 ファイル出力 波形データからAudioInputStreamを作成し、AudioSystem.write()メソッドで ファイルに出力することができます。 次のコードは前の記事 Javaで波形データ作成再生サンプル:メモで作成した「うなり」 サウンドをwavファイルに落とすものです。 // Test07.java import javax.sound.sampled.*; import java.io.*; class Test07 { public static void main(String[] args_){ try{ byte[] wave_data= new byte[44100*2]; double L1 = 44100.0/440.0; double L2 = 44100.0/455.0; for(int i