Wav files

From Calimacil
Jump to: navigation, search

Here is the steps to edit .wav files that will be played on the Calimotion. We recommend to use the free audio editor Audacity 2.0.1. You can use the command PLAY to test .wav files with the Calimotion.


  1. All the files must have the same bit rate
  2. The Calimotion can only play .wav files
  3. For best results, use 22050Hz bit rate
  4. Try to keep the file under 500KB

WAV Files List

There is a set of default files you need. They use the Calimotion's naming convention.

File Name Usage
open.wav This sound is played when the button of the LED Saber is pressed when the Calimotion is in closed mode, i.e. no active LED. The length of this file needs to be in sync with the open.lux file if the Calimotion is set to use .lux file in MODE command.
close.wav This sound is played when the button of the LED Saber is pressed for 2 seconds after it was been opened.
hum.wav This sound is played after the wav open.wav was played
hit.wav This sound is played after the Calimotion detects a hit using hit.mod AI resource. See AI for more details about how to create a hit.mod machine learning file.
swing.wav This sound is played when the Calimotion detects a motion. The sound is adjusted dynamically using the speed of the motion based on the accelerometer and gyroscope. You can adjust the value of the sound volume using the config file File_name.

Steps for Using Audacity 2.1.0

  1. Open the file
  2. Change the Project Rate at 22050 (tracks - resample)
  3. Set the Chanel to Mono
  4. Create the .wav from menu File->Export Audio (Ctrl+Shit+E)
  5. Select Option Header = WAV (Microsoft)
  6. Select Option Encoding = Unsigned 8 bit PCM
  7. Save the file as file_name.wav
  8. Export the file on the Calimotion using the PUT command
  9. Test the file using the PLAY command