Giter VIP home page Giter VIP logo

ps_meso's Introduction

About P.S.: Meso

(author: Nicki Hoffman)

Background

Al Filreis of the University of Pennsylvania leads a MOOC on Coursera, called Modern and Contemporary American Poetry (a.k.a "ModPo"). Poems studied include experimental and aleatory/chance-based works, among them the "mesostics" of John Cage. In the first run of the course, students used an online mesostic generator called the "Mesostomatic," written by Matthew McCabe, to make and analyze mesostics of their own. However, the program had its quirks and did not necessarily follow Cage's rules for mesostics, and moreover, McCabe took it down sometime after the MOOC ended in late 2012. A few months after I began learning Python, I decided to try writing my own and see if I could do better.

The program

Originally coded in Python 3.3 in April 2013, with minor adjustments to make it compatible with Python 2.7, as that is the version supported at the time by Django projects on my host (pythonanywhere.com). Web framework Django. I include in this repository the original program and framework, including the templates and css.

I was still new to Python, my first OO language, when I coded the original, and was as yet mostly unfamiliar with classes (and with other useful features, such as filter() and lambda functions). In December 2014, I refactored the code to clean it up, simplify it where possible and remove redundancy. I include in the repository the refactored model as ps_meso.py.

The program is to be ported to PHP by ModPo's tech team in early 2015, so that it can be mirrored on the university's servers for use in the next iteration of the MOOC.

Original in situ program can be found at: http://vyh.pythonanywhere.com/psmeso/
Refactored version here: http://vyh.pythonanywhere.com/psmeso2/

About Mesostics

A "mesostic" is a deterministally generated poem with some chance elements. It is generated by "reading through" a source text with a chosen word or phrase that will be the spine of the completed poem. Words included must follow a few rules, below. The spine text is often the name of the source text's author or of the mesostic's creator.

Criteria of a mesostic:

  1. Between 2 spine letters, neither letter may appear in lowercase;
  2. Limit of 45 characters left of the spine, same to the right;
  3. (Cage: "Then I take out the words I don't want."
    My interpretation: Don't add all possible words between spine letters.)

For some of his mesostics, at least, Cage used chance operations based on the I Ching to determine which words to include. More about mesostics in general and Cage's in particular here:

http://everything2.com/title/mesostic
http://www.writing.upenn.edu/~afilreis/88v/perloff-on-cage-howl.html
http://www.writing.upenn.edu/~afilreis/88v/cage-quotes.html

ps_meso's People

Contributors

vyh avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.