Code Monkey home page Code Monkey logo

pypadberg's Introduction

PyPadberg

A Python recreation of Harriet Padberg's 1964 Thesis, "Computer Composed Canon and Free Fugue," one of the first instances of algorithmic music created using a computer.

Run python main.py to start the program.

How it works

  • main.py creates an interface instance and runs it.
  • interface.py defines the interface, which contains an instance of the Padberg object, defined in padberg.py
  • The interface allows the user to input text and passes it to the Padberg object, which processes it according to our implementation of Padberg's original algorithm.
  • The algorithm defines the pitch contour of the resulting cannon by mapping letters to a microtonal scale (defined in padberg.py), and defines the rhythm (rhythm.py) using the relatively prime factors of the least common multiple of 5 numbers:
    • the number of vowels
    • the number of consonants
    • the total length of the text
    • number of pitches in the 'center'
    • number of pitches in the 'outer'
      • (vaguely defined in the original paper)
  • Once the text is processed, the interface directs the user to a screen displaying logging on text processing.
  • Finally, the user is directed to a final control panel with which they can play back the generated music using a chosen sound and number of voices. Additionally, the user can enter a name for and save a midi file of the music.

pypadberg's People

Contributors

bgenchel avatar jas1238smith avatar richardsavery avatar

Watchers

 avatar  avatar  avatar

Forkers

silky

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.