OESF Portal | OESF Forum | OESF Wiki | LinuxPDA | #planetgemini chat on matrix.org | #gemini-pda chat on Freenode | #zaurus and #alarmz chat on Freenode | ELSI (coming soon) | Ibiblio


Welcome Guest ( Log In | Register )

Reply to this topicStart new topic
> The Zaurus, Tae Kwon Do, And Me, Zaurus-based workout routine
post Nov 21 2007, 10:41 AM
Post #1

Group: Members
Posts: 22
Joined: 11-October 05
Member No.: 8,291

Just wanted to share a little script I wrote for my Zaurus. I studied Tae Kwon Do (Korean Karate) a while back, and I always thought it provided a good aerobic workout. So I wrote down in a file every move (kicks, punches, blocks) I had learned, sent that list through an awk script that spat out random moves, and piped *that* list through flite.

The result is a script that runs completely on my SL-5500 and speaks 1000 random Tae Kwon Do moves for me to perform. Takes 30-40 minutes to run through the whole routine, and I'm sweating pretty hard by the end. Don't know if anyone else would be interested in this. I suppose it could be adapted to call out any random series of phrases for someone's amusement. :-)

Requires flite, awk, and, umm, probably the GNU textutils or bash or something.

Anyway, here's the script, between the rows of equals signs:
export MAXCOUNT=10
export COUNT=0
while [ $COUNT -lt $MAXCOUNT ]
COUNT=`expr $COUNT + 1`
echo "front kick
jumping front kick
side kick
#jumping side kick
turning side kick
back wheel kick
roundhouse kick
jumping roundhouse kick
half-moon kick
jumping half-moon kick
crescent kick
jumping crescent kick
side attack
fighting stance number one
fighting stance number two
one knife hand attack
reverse punch
middle punch
upper punch
reverse spinning knife hand attack
inside knife hand
outside knife hand
upper block
inside block
double inside block
outside block
lower block
double lower block"|
grep -v ^# | \
'BEGIN {srand();INDEX=0}
if (COUNT == 1) {print "begin tie kwon doe exercise.";}
print "begin part " COUNT ".";
while (I < 100) {
print MOVE[int(INDEX*rand())] ".";
print "end part " COUNT "."
if (COUNT == MAXCOUNT) {print "end tie kwon doe exercise.";}
}' |\
flite --setf duration_stretch=1.5 --setf int_f0_target_mean=145

Hope somebody likes it.
Go to the top of the page
+Quote Post
post Nov 24 2007, 03:06 PM
Post #2

Group: Admin
Posts: 3,512
Joined: 29-July 04
From: Cambridge, England
Member No.: 4,149

hmm, change the phrase list and you could inadvertently give your Zaurus a case of Tourettes Syndrome!
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:


RSS Lo-Fi Version Time is now: 26th May 2018 - 03:47 PM