https://github.com/HeardACat/ostinato
generates an ostinato given a melody
https://github.com/HeardACat/ostinato
Last synced: 3 months ago
JSON representation
generates an ostinato given a melody
- Host: GitHub
- URL: https://github.com/HeardACat/ostinato
- Owner: HeardACat
- License: mit
- Created: 2014-11-16T11:38:02.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2014-11-18T06:28:11.000Z (over 10 years ago)
- Last Synced: 2025-01-31T17:20:03.189Z (5 months ago)
- Language: Python
- Size: 156 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: Readme.md
- License: LICENSE.txt
Awesome Lists containing this project
README
Ostinato
========A simple program which generates the accompaniment based on a given melody.
Usage
-----Input a
```
from ostinato import Ostinatoly = Ostinato("input.ly")
ly.generate_lh()
print ly.output()
```Requirements
------------* `python-ly`
Sample Usage
------------```py
mary_had_a_little_lamb = r""" \relative c'
{\time 4/4
e d c d
e e e2
d4 d d2
e4 g g2
e4 d c d
e e e e
d d e d
c1
}
"""show(ostinato(mary_had_a_little_lamb))
```The original lilypond file would be:

whilst the updated one would be:
