https://github.com/allencch/musgen
Music generator (simple)
https://github.com/allencch/musgen
Last synced: 4 months ago
JSON representation
Music generator (simple)
- Host: GitHub
- URL: https://github.com/allencch/musgen
- Owner: allencch
- Created: 2021-05-23T06:19:51.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2021-05-23T06:20:26.000Z (over 4 years ago)
- Last Synced: 2025-05-30T16:24:03.081Z (7 months ago)
- Language: Python
- Size: 17.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Musgen (Music Generator)
This is an old project, created in 2011.
## Run script
```
python src/music_gen.py -o output.ly --pdf
```
With `--pdf`, `lilypond` is able to generate the PDF as well.
There are other options, please refer to source code.
## Convert output to music file
Install `lilypond`. Then run
```
lilypond output.ly
```
To play the MIDI file using `timidity`,
```
timidity output.midi
```
# Limitations
* The script uses pre-defined music chord progressions.
* The script only generates time signature 4-4.
# Deprecated notes
Musgen is only the engine.
It uses web interface.
To setup the web interface, the process.sh (or process-cyg.sh) and music-gen.py must be work together. Both files can be put to any folder, then the process.sh will be called by PHP to do the process.