Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/takluyver/edinburgh-dojo-2018-10
Generating music
https://github.com/takluyver/edinburgh-dojo-2018-10
Last synced: 4 days ago
JSON representation
Generating music
- Host: GitHub
- URL: https://github.com/takluyver/edinburgh-dojo-2018-10
- Owner: takluyver
- Created: 2018-10-23T19:02:07.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2018-10-24T08:01:40.000Z (about 6 years ago)
- Last Synced: 2024-11-05T10:58:18.863Z (about 2 months ago)
- Language: Python
- Size: 2.98 MB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Python Edinburgh Code Dojo, October 2018
The theme of the dojo was music.
We decided to convert text to music, with the most common letters in English becoming notes near the middle of the scale.
Note lengths are scaled so that each word takes the same time,
so short words sound slow, and long words make a quick flurry of notes.
A rest follows each word.We used [PySynth](https://mdoege.github.io/PySynth/) to convert notes to wav files,
and then `aplay` to play the wav files.Ebooks were downloaded from [Project Gutenberg](http://www.gutenberg.org/). Shorter texts were from a variety of online sources.