WAV_2_XI v1.3
8/16 bit mono WAV to XI converter
1. COPYRIGHT
This software is provided as-is. Author makes no warranties
on this program. It's freeware, not public domain. This means, you can use it at your own
risk as long and often as you want, but if you plan to include it on a commerical CD
(means, you sell it and get money for it, even if all programs on this CD are shareware or
freeware), send me a copy of that CD - that's it.
2. MOTIVATION / WHAT FOR ?
Usually you edit your samples in a comfortable windows-editor, find
WAV's on data-CDROM's or just rip samples from audio-CDs. WAV is the most common format on
PC, and XI is probably the most common instrument format in the tracker scene.
FastTracker 2.08 can't load WAV's properly (no loops and no pitch detection),
Impulse Tracker 2.14 ignores WAV-loops. WAV2XI does both, without hassles, it's just a
tiny tool which works.
3. FEATURES
- NEW: converts true sampler loops (SoundForge, SampleCell ...)
- NEW: WAVs with slightly corrupted headers won't be ignored anymore
without screen-output, they just load and convert :)
- supports 8/16 bit mono uncompressed WAVs in plain PCM format
- auto"detects" crosslooped samples done by COOL EDIT's script
"crossfade full" or similiar ... NOTE: I
DID THIS FOR !ME! and found it pretty usefull, even with the current
cheesy "algorithm" ... works as follows:
- check, if the first and the last sample of the waveform are nearly the
same (5% tolerance actually)
- test, if these values are in the environment (3% actually) of the zero
line, if YES, forget it (to avoid "false alarms" with proper waveforms, which
start and end with zero), if NOT, that could be a loop (remember: "-1" at the
commandline as percent value removes all that "intelligence" ;) - converter will
work in IDIOT mode)
- includes "Frequency to FT2 RelNote/FineTune conversion" - you
will always find the original recording speed at "Q"-key, no matter what
sampling frequency, note: the source WAV must be 'C', otherwise the pitch of the XI will
be wrong, maybe a next version will fix this and care about the MIDI unity note from the
WAVs sampler chunk ...
- "IDIOT mode", means plain 1:1 copy of the input waveform
without cutting crap or creating loops
- Zero Cross Detection - the exported XI will always start with a zero
crossing (if not in idiot mode and no sampler loop was detected)
- Conversion Start Trigger (deactivated if sampler loop was detected) -
conversion starts with the first sample which fits that minimum - to be exact: from the
previous zero crossing, the process is as follows:
- The WAV file will be searched for the first sample-value which meets the
via commandline-switch given minimum percent value
- From this detected point the file will be searched backwards till the
next zero crossing
- If no zero crossing was found the forward search starts
- Now the conversion starts from that detected zero crossing
4. USAGE
WAV_2_XI wav-filename [percent]
- wav-filename - must be there, wildcards allowed
- percent - integer value -1, or between 0 and 100 (default = 5%),
conversion starts with the first sample which fits that minimum - to be exact: from the
previous zero crossing
5. EXAMPLES
WAV_2_XI *.* 0
- will convert all WAVs in the current directory and leave the sample data
nearly unchanged (only zero cross detection)
WAV_2_XI *.* -1
- will convert all WAVs in the current directory in IDIOT mode - dumb 1:1
copy of the complete waveform
WAV_2_XI *.WAV 100
- will convert all WAVs in the current directory with a maximum amplitude
of 100% at the first value which meets this "minimum", if this full amplitude is
never reached the maximum amp of the current file will be printed
6. The inevitable CREDIT's:
... to all of you who expected to read their name here! :)
7. CONTACT / BUG REPORTS / SUGGESTIONS
8. Message of the year 1998:
NEVER TRUST A KLINGON.