WavCsvWav Usage


This program transfer wave file data to CSV format. Also make wave file from CSV data.


Commandline script
java -jar "WavCsvWav_2.jar"

This command line must be excuted the directory of WavCsvWav=2.jar. And must be there is "lib" directory. WavCsvWav.jar and "lib" directory and contents will be suppried by this softwawre package. JRE 1.6 or later is needed, read README.TXT first.


Main Window "WavCsvWav"

WAV Filename:
You can Drag and Drop(DnD) wave format file into the text field. WavCsvWav will check the file is valid or not for java sound interface. If wave format file is not valid, error message dialog will be displaied. If it is valid, default wave format will be replaced by this file format. If the suffix of this file is WAV, and if CSV test field is empty, WavCsvWav will fill CSV file name text field with simply replace the suffix WAV by CSV. The default wave format parameter, you can see this parameter via "Change parameter" dialog. The text field is also filled via file chooser dialog by pressing "..." button. If you fill this field first, WavCsvWav asume that you are going to WAV to CSV translation.
CSV Filename:
You can DnD too. If wave file text field is empty, WavCsvWav try to fill wave filename field. Suffix CSV will be replaced by WAV. Wave file will be also checked if this file format is valid or not. If it is valid, the default parameter will be replaced by this file format. Also file chooser can be used for select the CSV file. If you fill this field first, WavCsvWav asume that you are going to CSV to WAV translation.
Begin time in Sec:
You must specify begin time in Sec. When wav to CSV translation, CSV data will be extracted from "Begin time" point.
When CSV to wav translation, Zero data will be filled before "Begin time" point. Because the sound data must begin with 0 sec. After "Begin time" point, valid CSV data will be used.
If user select imprint mode(that can be selected via "Change parameter dialog"), wave filename will be used for imput file too. WavCsvWav going to combine two data. The valid input wave data will be filled until begin time. After begin time, valid CSV data will be used. If those data is not valid, Zero data will be used.
End time in sec:
You must specify End time in Sec. WavCsvWav try to make data this length of CSV or wave sound data. If it is Zero, only 0 byte length data will be made. Also if source data is shorter than this value or not valid, Zero data will be filled. Note that if CSV or wave file is longer than this period, those data will not be used.
File selection button:
You can use "..." button for file selection. Same things will be happen when you use DnD.

WAV to CSV, CSV to WAV button

If you want make CSV file, you must select WAV to CSV. Otherwise, CSV to WAV. Any case, target file will be created by WavCsvWav.
If you select "imprint mode", suffix WAV$ will be used for output file. This case, wave file is alsoimput file. To select "imprint mode", press "Change Parameters" button and select "Replace a part of WAV data with CSV data" check box. If sample size in bits of inpt wave file is defferent from target's, WavCsvWav try to adjust value vie multiply or divid by bit difference.

All Clear

All field will be empty.
Change parameters button
"Parameters" dialog will be displayed. you can change wave format and translation behaiver.
View wave form button
"View wave form" dialog will be displayed. You can see wave form and set "Begin Time" and "End Time".
GO button
WavCsvWav will execute job. The file will be created at this time. Before any operation, all selected file will be protected.





WavCsvWav Parameters dialog
This dialog show the patameters that is used by WavCsvWav. For example, one of this parameter is current wave format of terget file. It displays also transfer mode too. Once you modify those parameter, it will remain untill all crear button is pressed. Note that the WavCsvWav only support WAVE type sound format.

Channels
Number of audio channels.
Encoding
WavCsvWav only support PCM encoding. SIGNED and UNSIGNED can be selected. The default is SIGNED.
Big Endian
You can only select Big or Small. If it is true, Big Endian will be used. The default is BIg Endian.
Sample rate
Audio sample rate per second.
Sample size in bits
Sample size. That is Audio data bit length of each sampling data. You must Specify times of 8. For example, 8, 16, 24, 32... If your order is not valid, WavCsvWav will round it and display warning.
Default button
Reset all parameter.
Replace a part of WAV data with CSV data
If you select this check box, WavCsvWav will imprint CSV data into wave data. WavCsvWav will create new wave file(suffix will be WAV$). First, WavCsvWav output valid wave data based on input wave file that was specified by "WAV filename" field of main window, until "Begin time". After "Begin time" CSV data will be used if it is valid. If it is not valid, CSV data finished, input wave data will be used or, if this data is not valid ZERO data will be used. If you select "simple replace", raw CSV data will replace wave data. If you select "Add", CSV data will be added to wave data. You can select subtract if you want subtract CSV data from wave data. Suffix WAV$ will be used for output file.
Tipical output sound file will be...
0 -----------<---Begin time ----------- End Time--->
Wave data---><--- CSV data ----><---Wave data ----->





View wave form dialog
This dialog show the wave form that is loaded by WavCsvWav. If you select WAV to CSV translation, WAV file will be displayed. If you want to view CSV, select CSV to WAV translation. Dialog show you all of wave form as large as possible, that depend on your screen graphic resolution. Dialog also show a part of wave you want to mark as Begin time or End time.

image2

Set Begin Time, Set End Time
You can set "Begin time" or "End time". Currnet cursor value will be used.
Close
Close this dialog and get back to main.
Upper wave form graphic window
This window shows a part of wave form. Bottom graphic window can select a drawing area of this window. Single click or Drag will change the cursor position. Time value of cursor will be displayed "Cursor" text field. Use scroll bar to go a part of wave you want to mark. Note that the all channels maximum value of wave will be displayed at each channel's head of wave form. The wave form of each channel, will be normalized by this value.
Bottom wave form graphic window
This window show all wave form of source wave file. Select a part of wave that you want to mark via upper window.


Author:
Makoto Shiono
shiono@kt.rim.or.jp
http://www.kt.rim.or.jp/~shiono/

Warrning: