https://github.com/ology/python-music-voicegen
musical voice generation
https://github.com/ology/python-music-voicegen
music phrase-generator pitch python
Last synced: about 1 month ago
JSON representation
musical voice generation
- Host: GitHub
- URL: https://github.com/ology/python-music-voicegen
- Owner: ology
- License: gpl-3.0
- Created: 2025-09-04T20:34:45.000Z (about 1 month ago)
- Default Branch: main
- Last Pushed: 2025-09-04T21:37:20.000Z (about 1 month ago)
- Last Synced: 2025-09-04T22:29:51.019Z (about 1 month ago)
- Topics: music, phrase-generator, pitch, python
- Language: Python
- Homepage:
- Size: 19.5 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGES.txt
- License: LICENSE
Awesome Lists containing this project
README
# Music VoiceGen
Musical Voice Generation
Python based on https://metacpan.org/dist/Music-VoiceGen by Jeremy Mates (gemini://thrig.me)
## DESCRIPTION
This module offers the ability to generate a voice (a series of notes or melody) using only certain pitches and intervals, or otherwise a custom set of possible choices (via a hash of hashes) that a given pitch (an integer) will move to some other pitch. The design suits choral work, where leaps of a tritone or similar must be forbidden, and the range of pitches confined to a certain ambitus. With suitable input this module could be made to produce more chromatic lines over larger ranges.
## SYNOPSIS
```python
from music_voicegen import MusicVoiceGenvoice = MusicVoiceGen(
pitches=[60,62,64,65,67,69],
intervals=[-4,-3,-2,-1,1,2,3,4]
)voices = [ voice.rand() for i in range(8) ]
```Please see [the original documentation](https://metacpan.org/pod/Music::VoiceGen) for detailed usage.
## AUTHOR
thrig - Jeremy Mates (jmates at cpan.org)