This is how songs get programmed into the Wand so they can be recognized as spells.
* Songs should have an easily recognizeable and reproducable beat.
* Each note is represented by a number from 1 to 8.
* 1 represents the shortest note in the song. For example if the shortest
note in the song is an eighth note then eighth notes are represented
by 1.
* The numbers 1-8 represent 1x, 2x, 3x, ... 8x the length of the shortest
note. So if the shortest note is an eight note then the longest note
is a whole note. If your song has both whole notes and 16th notes
then it won't work (let me know if you have such a song - it might be
easy to make that work too).
* If there is a rest in the song then include its time with the preceding
note.
* You can either do the whole song, or just the first several notes. Let
me know which it is.
o If you do just the first few notes then they will be able to tap
in an arbitrary amount of the song and the extra notes they tap
in will be ignored (so long as they tap in at least as many
notes as the wand knows about). This is good for long songs.
o If you do the entire song then I have to remove the last note
(because the wand has no way of knowing how long the last
note is). I will tell the wand to only accept such songs if
the number of notes is the same as what they tap in. This is
good for short songs.
* If you send me a complete song put the last note in parenthesis and
indicate that it is a complete song.
* If you send me just the first notes then do not use parenthesis and
indicate that it is a partial song.
For example if your shortest note is a 16th note then
* 1 = 16th note
* 2 = 8th note
* 3 = dotted 8th note
* 4 = quarter note
* 5 = quarter note + 16th note
* 6 = dotted quarter note
* 7 = dotted quarter note + 16th note
* 8 = half note
Here are some examples:
The brady bunch is a partial song:
* quarter quarter quarter whole eighth eighth quarter quarter
quarter whole quarter quarter quarter quarter
* 2 2 2 8 1 1 2 2 2 8 2 2 2 2 - partial song - brady
Shave and a Haircut is a complete song:
* 3 2 1 3 6 3 (3) - complete song - shave
Also I found that some songs can be interpreted multiple ways. I can include
multiple representations of a song so that it is more easily recognized. For
example I also encode Shave and a Haircut as
* 2 1 1 2 4 2 (2) - complete song - shave2
If you really want to make my life easier, here is the actual format I use:
* Take each pair of notes and put them together.
* Add "0x" before each pair.
* Separate them with commas.
* Remember to leave off the last note if it is a complete song
* If there are an odd number of notes use 0 for the second digit of the
last pair.
* Add "0x00" at the end of the whole thing.
So the above songs become:
* brady: 0x22, 0x28, 0x11, 0x22, 0x28, 0x22, 0x22, 0x00 - partial song
* shave2: 0x21, 0x12, 0x42, 0x00 - complete song
* shave1: 0x32, 0x13, 0x63, 0x00 - complete song
|
This file Copyright (C) 2006 by Nathan (Acorn) Pooley
Go to TOP Wand page
Go to Acorn's personal webpage
Go to Hogwarts website: www.gotohogwarts.com
Snout: www.snout.org/game
Gadgets of Justice Unlimited
Snout GC (Wiki)
Snout Wiki
File created by do_doc at Wed May 30 03:23:44 PDT 2007