Prototyping/Soldier Soldier Will You Marry Me: Difference between revisions

From XPUB & Lens-Based wiki
(Created page with "= Soldier, Soldier, Will You Marry Me = Exercises Soldier, Soldier * 1 Draw the lyrics graphically using the structure of the song. "Compress" where possible. * 2 Express in py...")
 
 
(6 intermediate revisions by the same user not shown)
Line 1: Line 1:
= Soldier, Soldier, Will You Marry Me =
= Soldier, Soldier, Will You Marry Me =
Exercises
Soldier, Soldier
* 1 Draw the lyrics graphically using the structure of the song.
"Compress" where possible.
* 2 Express in python with loops
Assignment
Create a "loop" book or movie, with Inkscape + Python + BASH
(Eventual BONUS assignment: create a PDF clock animation using a nested loop)
>> cf. /home/murtaugh/Pictures/Camera/VID_20110904_153151.m4v
Handouts:
Overview of Python things.( MIT handout -- or make custom)
+ Declarative vs. Procedural
Introducing XPATH
* File paths (. .. absolute and relative...)
* XPAThs... Xpath Cheat sheet?
Using XPATH in Python
(Example of the for loop)
Intro Python as Procedural language.
>> Ask someone to instruct someone on singing the song.
TIPS
Text->Convert To Text
(Also Path -> Object to Path)
and
Placing text on a path.
http://www.youtube.com/playlist?list=PLB9D6C5820E3651F1
Soldier, Soldier, Will You Marry Me
http://mudcat.org/@displaysong.cfm?SongID=5430
See also: http://mudcat.org/@displaysong.cfm?SongID=10201
http://en.wikipedia.org/wiki/Baude_Cordier
http://www.pdinfo.com/record.php
http://www.youtube.com/watch?v=8G3v0CIu7M4
http://www.youtube.com/watch?v=FFatVLSuQ3U&feature=related
http://www.youtube.com/watch?v=9lL_Oycqx_w&feature=related
http://www.youtube.com/watch?v=O319aTO9Wow&feature=related
http://www.youtube.com/watch?v=8FHOOgNHn-8&feature=related
http://meaningfulidly.blogspot.com/2011/02/o-soldier-soldier-wont-you-marry-me.html
http://lipalicious.blogspot.com/2010/09/soldier-soldier-wont-you-marry-me-by.html
Whose song is this?
http://www.youtube.com/watch?v=eOWsGg1mD_0


== Lyrics ==
== Lyrics ==
 
<pre>
Soldier, soldier, will you marry me
Soldier, soldier, will you marry me
With your musket, fife and drum?
With your musket, fife and drum?
Line 97: Line 37:
Oh how can I marry such a pretty little girl
Oh how can I marry such a pretty little girl
When I've a wife and child at home?
When I've a wife and child at home?
</pre>
== Links ==
* [http://www.youtube.com/playlist?list=PLB9D6C5820E3651F1 playlist]
* [http://mudcat.org/@displaysong.cfm?SongID=5430 Lyrics on mudcat.org]
* [http://www.pdinfo.com/record.php Audio recordings in the public domain?]
* [http://meaningfulidly.blogspot.com/2011/02/o-soldier-soldier-wont-you-marry-me.html contemporary response]
* [http://lipalicious.blogspot.com/2010/09/soldier-soldier-wont-you-marry-me-by.html inevitable potential for connecting to shopping]
== Exercise ==
"Compress" the lyrics by expressing as a Python script using a loop.
Python basics
* Variables
* Assignment
* Printing with variables (including the format method)
* For loop
* For loops, and the '''range''' function
Generate SVGs with Python
See [[Variable Television]] for an example of manipulating an SVG as an XML object in Python.

Latest revision as of 18:43, 20 October 2011

Soldier, Soldier, Will You Marry Me

Lyrics

Soldier, soldier, will you marry me
With your musket, fife and drum?
Oh how can I marry such a pretty little girl
When I have no coat to put on?

Off to the tailor she did go
As fast as she could run
She brought him back the finest that was there
Now soldier, put it on

Soldier, soldier, will you marry me
With your musket, fife and drum?
Oh how can I marry such a pretty little girl
When I have no shoes to put on?

Off to the cobbler she did go
As fast as she could run
She brought him back the finest that was there
Now soldier, put them on

Soldier, soldier, will you marry me
With your musket, fife and drum?
Oh how can I marry such a pretty little girl
When I have no hat to put on?

Off to the hatter she did go
As fast as she could run
She brought him back the finest that was there
Now soldier, put it on

Soldier, soldier, will you marry me
With your musket, fife and drum?
Oh how can I marry such a pretty little girl
When I've a wife and child at home?

Links

Exercise

"Compress" the lyrics by expressing as a Python script using a loop.

Python basics

  • Variables
  • Assignment
  • Printing with variables (including the format method)
  • For loop
  • For loops, and the range function

Generate SVGs with Python

See Variable Television for an example of manipulating an SVG as an XML object in Python.