Friday, January 8, 2010: My sound slicer « from the old blog archive »

(This article should be very confusing for you to read, sorry, but I can't explain this tool I made very well)

When I was very new to BMS making I use Audacity to slice the sounds to make keysounds manually. It's very tiresome!

So I made a tool to slice the wav files into parts. Written in PHP:

GitHub: https://github.com/dtinth/sound-slicer

Then, for example, I have a .wav file called "x.wav", I need to make a text file called "x.txt" and type in some beats.

Syntax:

120bpm
16th
,..,..,. ,..,..,.
,...,... ,...,.,.
12th
,,,,,, ,,,,,,

Here are the explainations.

  • 120bpm -> The BPM of the wav file is 120 (changes the tempo, affects the commands after it)
  • 16th -> 1 measure is divided into 16 steps (changes the step size, will affect the commands after it)
  • , -> Starts a new wave file and put 1 step into that file.
  • . -> Put 1 step into the last file.
  • Other texts are treated as comments.

So from the above text file, the application would slice the wav file like this:

  • 0.000 sec
  • 0.375 sec
  • 0.750 sec
  • 1.000 sec
  • 1.375 sec
  • 1.750 sec
  • 2.000 sec
  • 2.500 sec
  • 3.000 sec
  • 3.500 sec
  • 3.750 sec
  • 4.000 sec
  • 4.167 sec
  • 4.333 sec
  • 4.500 sec
  • 4.667 sec
  • 4.833 sec
  • 5.000 sec
  • 5.167 sec
  • 5.333 sec
  • 5.500 sec
  • 5.667 sec
  • 5.833 sec (and lasts for 0.167 seconds)

The generated files will be saved in the folder called "wav". You can them import and use in BMSE.


Update 2012-06-23: Updated links to GitHub.