Dancing Tutorial |
Step 1: Overview, Installation |
Latest Version - Version 4.x
Choreographing new dance steps is recommended for the ERS-210. This is the most complicated case. If you decide to submit your dance, I will automatically convert it to the other models (11x, 31x and 220). This usually gives adequate results. To do a better job, the converted dance steps may need manual tweeking.
This tutorial includes instructions specific to the ERS-210, but the ERS-220 is also supported.
Overview
This is a tutorial to explain the specific use of the ERS-2x0/31x Editor for choreographing AIBO Dance routines.This tutorial is focused on editing a motion and eye track to follow a song. The song is played on your computer, and the AIBO dances along.
What are we going to do?
We are going to create a short song. Then we will create the dancing motions for AIBO.The tutorial uses the Elvis classic "Hound Dog". You can use any song you want, but I recommend going through the tutorial with Hound Dog first.
- Step 1: Installation
- Step 2: Picking a Tune, creating Master Track
- Step 3: Creating Edit and Playback Audio Tracks
- Step 4: Editor Basics - Replace Audio
- Step 5: Flashing Eyes
- Step 6: Moving Legs
- Step 7: Preview and Smoothing
- Step 8: Yappy Mouth
- Step 9: Updating the memory stick
- Step 10: Testing it out with AIBO
- Step 11: Repeat, Repeat, Repeat
Installation
Required Hardware:
- An ERS-210 model AIBO OR
- An ERS-220 model AIBO
- A Pink Programmable Memory Stick (AKA "PMS" or RCode stick) - ERA-MS008, $34
- A memory stick reader to install the software (Sony brand recommended)
Installation part 1: The editor
- Download the ERS-2x0/31x Editor: editor23.zip
- Unzip it to a folder on your computer (say C:\AIBO\TOOLS)
- To run the editor, just double click on the AEditor23.exe program
Installation part 2: Support Files
- Download the support files for this tutorial: dtut41_250_files.zip
- Unzip these into a tutorial directory on your PC (C:\AIBO\DTUT)
Installation part 3: Memory Stick
- Install Disco AIBO 4.x on a PMS memory stick. See the Disco AIBO page for instructions.
- It is a good idea to try one of the existing songs first.
- Open the MyDanceStart210.zip file (C:\AIBO\DTUT\MyDanceStart210.zip) and unzip it to the root of the memory stick.
This will replace one file and give you a short dance step.
NOTE: if you have an ERS-220, use MyDanceStart220.zip instead.
BACKUP YOUR WORK
The dance steps are stored in the \MYDATA folder on the memory stick. You will be editing the dance steps on the memory stick itself. You should backup the 3 files in that directory during the editing process. The AIBO Editor does not have an "undo" feature, so you should back up frequently.CoolEdit
This tutorial assumes you are using the CoolEdit Audio Editor. If you do not have it, you will need CoolEdit. If you have another Audio Editor you prefer, you can use that. Be sure your audio editor can convert between .MP3 files and .WAV files.Step 2: Picking a Tune, creating Master Track |
Your first decision is to pick the song you want AIBO to dance to.
Find an .MP3 file for the song you like. If you don't have the song, I recommend Morpheus for all your music
WARNING: Morpheus is not as complete or as safe as the old Napster. Morpheus can be used to share virus infected files (and there are a lot of them). If the extension is not .MP3, delete it immediately. For the tutorial, the MP3 file for Hound Dog is provided for you ("C:\AIBO\DTUT\Elvis - HoundDog.mp3")
Converting to WAVE
Now we need to convert it to a CD format stereo WAV file. To do this, in CoolEdit, just open the .MP3 file, then save it as a .WAV file. For the tutorial, we will save is as the "Master" audio file "ElvisMaster.WAV".Open It
- "File"/"Open..." menu command
- select "c:\aibo\dtut\Elvis - Hound Dog.mp3"
- Press "Open" button.
Save it:
- "File"/"Save As..." menu command
- Save as filename "c:\aibo\dtut\ElvisMaster.wav"
- Save as type "Windows PCM (*.wav)"
- Press "Save" button
Trimming the Audio
Now we need to trim the song to a reasonable length. To start with I recommend no longer than 90 seconds of any one song. You should also trim any extra silence at the start or end of the track (unless you want the dog to move before or after the song is played).In CoolEdit, I trimmed 0.77 seconds from the start of the track and trimmed the end of the song so the total length is 49.484 seconds (trim the song to any size you would like).
Before trimming:
After trimming:
Saving it
Save this file ("File"/"Save" -- still called ElvisMaster.WAV). This is the "Master Audio Track". Two other audio tracks will be created from this master track.Are you happy ?
Play the Master Audio Track a few times. Try to envision what you want AIBO to do while the song is playing. If you are not happy with it, now is the time to change the Master Audio Track. Updating the Master Audio Track later is a pain.Step 3: Creating Edit and Playback Audio Tracks |
You have a Master Audio Track that is CD format audio. We need to create two other audio tracks (WAV files) from the Master Audio Track.
Creating the Edit Audio Track
Now we need to convert the CD format audio (44.1kHz, 16bit, stereo) to a different format (8kHz, 8bit, mono) WAVE file for use by the AIBO Editor and put it on the memory stick. This is the "Edit Audio Track", and will be used for time synchronization only. Load the Master Audio Track in CoolEdit ("File" / "Open" menu command, select "ElvisMaster.WAV" and press "Open"). Hit the F11 button. Select the following options:- 8000 Hz sampling rate
- Mono
- 8 bit resolution
- Turn off dithering
- Set quality to any value you want (I like 999 with Pre/Post filtering, pick smaller number for faster conversion)
Press the "OK" button. It will take a little time to convert.
When done, save the file to a new filename. Use the "File"/"Save As..." menu command. You must save it on the memory stick in the "\MYDATA" folder called "MyDance.WAV" (ie. "?:\MYDATA\MyDance.WAV" where ? is the memory stick drive). Replace the file that is there. At this point you should have two WAV files (ElvisMaster.WAV on your PC and MyDan.WAV on the memory stick).
Creating the Playback Audio Track
We need to create a third WAV file, used for playing back on your computer. This is the same as the Master Audio Track except it has a short intro sequence.- Load the file "c:\aibo\dtut\StartTune.wav". Copy the file to the clipboard (CTRL+A, CTRL+C)
- Load the Master Audio Track in CoolEdit again.
- Paste the intro track (CTRL+V).
At this point you should have three WAV files (ElvisMaster.WAV and ElvisPlay.WAV on your PC, and MyDance.WAV on the memory sticl).
NOTE: When you want to share you AIBO dance with your friends, you will convert the ElvisPlay.WAV file to an .MP3 file.
Audio Editing is done. You may exit the CoolEdit application.
Step 4: Editor Basics - Replace Audio |
We are going to load in and take a quick overview of the editor.
Start Editor
Start the Editor. Run AEditor23.EXE.You will get an Open dialog asking you what to open. Open the "MyDance.mtn" file in the "?\MYDATA" directory on the memory stick.
This is not a real dance performance, this is just a place holder. The tracks go from the top to the bottom. The top track is the audio which we are going to use to synchronize the motions. The next two tracks are for the green and red eyes. The remaining 18 tracks are for the servo positions (the motions of the dog's head, mouth, legs, and tail).
Time increases from left to right. The vertical lines are spaced 1 second apart. You can select any range of time by using the mouse (and the LEFT mouse button).
Zoom
Play with the two Zoom toolbar buttons to zoom in our out (the magnifying glass icons with + and - on them). When editing a longer song, you will be using Zoom a lot.Virtual AIBO
Press the Virtual AIBO toolbar button (or "Window" / "Show Player") to bring up Virtual AIBO. Click Here for more info on Virtual AIBO. Grab the AIBO with the mouse and move it around to find a good position. Also try holding down the SHIFT key to move Virtual AIBO to different positions. We are going to positition the dog so it looks like it is sitting.
Most of the AIBO dance moves occur when the dog is sitting.
NOTE: you can also resize the Virtual AIBO window.
Pre-Preview
Press the play toolbar button. Alternatively you can select a range to play with the mouse (using the LEFT mouse button). To play the selected range you can also press the space-bar.If Virtual AIBO is on the screen you will see the dog movements as well as hearing the song (otherwise you will just hear the song).
Press and hold down the Escape key to stop any playback.
Long live Monty Python.
Replace Audio
We now are going to wipe out the place-holder tracks (say goodbye to SPAM!), and use our Edit Audio Track instead. Select the "Tools"/"Replace Audio..." menu command. This will ask you what file to open. Pick the file "?:\MYDATA\MyDance.wav" on the memory stick. It will ask you two questions, answer yes to both.What do we have now ?
Now we have the Hound Dog audio track, but no eye or motion tracks. This is the starting place for editing.This only shows the first part of the song. Hit the Zoom Out toolbar button to see the entire song.
Step 5: Flashing Eyes |
This is an easy step. We are going to make the AIBO's eyes flash in time to the music.
Edit - Generate Eyes
Select the "Edit"/"Generate Eyes..." menu command (or "E" icon on the toolbar). You will see two scroll bars. Leave them in the default positions, and hit "Generate". This operation changes the entire track.NOTE: For the ERS-210 there are 3 scroll bars and 5 extra LED eye tracks in the editor window
NOTE: The full ERS-220 LEDs are not supported by the editor
You can see the results. The eyes turn on and off (more or less) in time with the loud parts of the music.
You can Zoom in for more detail:
You can try the command again, and change the thresholds to adjust how much green and red flashing you want to see.
If you want to manually edit the eye flashing, use the mouse and draw on the green and red eye bars. Press the RIGHT mouse button to draw. You can drag the mouse with the right button down to draw (or erase) a longer line.
NOTE: this is important to learn. Use the LEFT mouse button to select, the RIGHT mouse button to draw (or change).
You can do more clever things (like make the dog's eyes turn solid red or green at key parts in the song), but that's good enough for now.
Step 6: Moving Legs |
Now we get into the interesting stuff, making AIBO move.
Start and End Positions
The most important thing to worry about when choreographing AIBO dance steps is the position the dog is in. There are three main positions, Sitting, Standing and Sleeping (AKA laying down). The MyDance.mtn dance routine you are editing starts and ends with the dog in the Sitting position.The "Dance" Menu
Select a dance step from the "Dance" menu and it will insert a pre-defined dance step at the current selection. The "Dance" menu has a 5 sub-categories. "Sitting" has the most options and is for steps that start and end with the dog Sitting. Similarly "Standing" and "Sleeping" are for steps when the dog is standing and sleeping (respectively).The "Change" category includes motions to change from one position to another. We will use this later to make the dog stand up, wiggle it's butt (a Standing motion) and sit down again.
Keyframe (Expand and Reduce)
If you look at the motion tracks, you will see that they evenly spaced ticks. Each tick is a keyframe (there are 12.5 ticks per second).While editing, we use this format so that we don't have to worry about inserting or deleting keyframes. Later we will use the Reduce function to remove redundant keyframes.
Inserting Dance Steps
The procedure for inserting dance steps is simple.- Select where you want the step to start (using left-mouse button)
- Pick one of the dance steps from the "Dance" menu (if the dog is Sitting, pick it from the "Sitting" category)
- Hit the space bar to play back the added motion with sound.
- Perhaps smooth the motion (see next part of tutorial)
- If you don't like the dance step, repeat
- If you do like the dance step, select a new starting position (after the end of the just added step) and repeat
- Raise For Shimmy (under Sitting)
- Shimmy (")
- Gap
- Hand Jive
- Sit to Stand (under Change)
- DANCE2 (under Standing) -- wiggle butt motion
- Dance_FURI (under Standing)
- Stand to Sit (under Change)
- HereIAm (under Sitting)
- Boxing
- LHandGesture
You can pick different motions. The names aren't too descriptive, so try them out and see how they look.
Step 7: Preview and Smoothing |
Before using the motions in AIBO, we are going to use Virtual AIBO to preview the motions. For any movements that appear too rough, we are going to smooth them out.
Preview
You should already have Virtual AIBO running on your screen. If you closed it, re-open it with the "Window" / "Show Player" menu command or the AIBO toolbar button.At this point you should make the Virtual AIBO window bigger, and position it so that you can see the dog's legs, mouth and head.
Go back to the track editor and select "Edit"/"Select All" (or the "A" key) and then the play toolbar button (or the SPACE key).
You will now see and hear the dance played back. Keep an eye on Virtual AIBO to make sure the movements are smooth (and you do not have any rapid movements).
If you want to interrupt the playback, press and hold down the ESCAPE key.
When you want to playback a smaller portion of the song, just select it (using the LEFT mouse button) and hit the play toolbar button (or the SPACE key).
Smoothing - Why
Virtual AIBO is just a simulation of what the real AIBO will do. Virtual AIBO can react much faster than the real AIBO. Also Virtual AIBO can't fall down. You need to watch out for motion changes that may be too fast, too extreme or disconnected. In the track view, extreme values (or changes) are shown in red. Yellow indicates values (or changes) that aren't too fast, but are near the limit. Normal values (or changes) are shown in blue. A "disconnect" can occur if you forget what position the dog is in. If you insert a Standing dance step right after a Sitting dance step, the dog will immediately jump from one position to another. This looks goofy on Virtual AIBO. If you tried that on the real AIBO, it typically makes the dog fall down or be in an incorrect position. It also can increase the wear-and-tear on the leg servos. Do not allow this to happen. Use the "Change" motions to make the dog change from one position (eg: Sitting) to another (eg: Standing). Take this example:We can see that the legs are moving too quickly. To fix this we need to Smooth the leg motion.
Smoothing - How To
Smoothing is a very easy and very important feature. You simply select the range of motion you want to smooth, and hit the "S" key. This will "smooth" the motion from the start of the selection to the end of the selection (as a straight line). Typically you will hold down the SHIFT key while making the selection to smooth, so you can smooth one or more servos (not all the servos at one). As with other editor commands, there is no UNDO, so be careful and save your work. In our example, we hold down the SHIFT key, and then using the LEFT mouse button select the range and the legs we want to smooth:Then we hit the "S" key:
If we then playback the portion before and after the smoothed motion, we see (with Virtual AIBO) that the transition from one dance step to the next is a lot smoother. We do this to smooth the gaps between the different dance steps.
Step 8: Yappy Mouth |
Like the Eye flashing, we can use the audio track to generate a moving AIBO mouth. I recommend doing this after most of the dance steps (leg motions) are in place.
Mouth movement
Select the range you want the mouth to move. For our example, we select the part where Elvis sings "you never caught a rabbit...". Use the "Edit"/"Generate Mouth..." menu command (or the "M" toolbar button). This will ask you to set a threshold. You can adjust it to make the mouth be more closed or more open. Pick a value, and hit "Generate". You will see that the mouth motion now includes open and closing that go along with the song.Tweeking
The automatic mouth generation isn't perfect, so you will want to tweek it to improve the mouth tracking. Simply use the RIGHT mouse button and draw on top of the mouth track.Other Advice
Mouth movements can greatly increase the number of keyframes needed for a motion file. Use it sparingly. Also, lip-syncing works best if it is closer to the start of the song. Later in the song there is some drift in the synchronization of the audio and the motion which makes accurate lip-syncing hard to reproduce. You should already have Virtual AIBO running on your screen. If you closed it, re-open it with the "Window" / "Show Player" menu command or the AIBO toolbar button.Step 9: Saving to memory stick |
Save your work
Before saving, you should "Reduce" the motion to required keyframes.- Select "Edit"/"Select All" (or hit "A" key)
- Select "Edit"/"Reduce" (or hit "U" key)
Step 10: Test it out on AIBO |
We are going to test our dance steps out on the real AIBO.
NOTE: if your memory stick reader must be "stopped" before removing the memory stick, do that first. Now take stick out of PC, and put it in your AIBO and start him up.
Dance AIBO Dance
The dog should be sitting down waiting. Now play your song (the Playback Audio Track), or our case "ElvisPlay.wav". This will play the start tones and the dog should dance along.NOTE: playing back the LED track is not currently working. Do you like what you see ? Does the dog fall down ? Can you make the dance steps cooler ? Think about these as the dog is dancing. In the next step we will go back and improve the dance steps. Repeat this process until you are happy with your dancing AIBO.
Step 11: Repeat, Repeat, Repeat |
This step is where you will spend most of the time refining and improving the dog's dance steps. You just need to repeat the editing steps you've done before to change the dance steps.
Expand before Reduce
The only thing that is a little different is when you initially open the .mtn file. If we start the AIBO Editor (AEditor23.EXE) again, and open up our Hound Dog version of MyDance.mtn, we will see there are fewer keyframes than we started with.This is because we used the "Reduce" feature to remove keyframes that were not needed. Now that we are going back to editing, we want to expand all those possible keyframes.
So as a general rule, after loading a .MTN file in the edit, hit the "A" and "E" keys to Expand the entire motion track. When you want to save the .MTN file, hit the "A" and "U" keys to Reduce the entire motion track.