Musical MIDI voice generation
Project description
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
from music_voicegen import MusicVoiceGen
voice = MusicVoiceGen(
pitches=[60,62,64,65,67,69],
intervals=[-4,-3,-2,-1,1,2,3,4]
)
voices = [ voice.rand() for _ in range(8) ]
Please see the original documentation for detailed usage.
AUTHOR
thrig - Jeremy Mates (jmates at cpan.org)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file music_voicegen-0.1.1.tar.gz.
File metadata
- Download URL: music_voicegen-0.1.1.tar.gz
- Upload date:
- Size: 41.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9ee32fc553564853038c538f94e2260c73d2545b8247658a51731f8553725163
|
|
| MD5 |
428a6d76f92ac920109f924ce5174df4
|
|
| BLAKE2b-256 |
4443a6f2a84b8aa7ed034db5a296db11c2ad8efd4eedb82f5ec551cd94776888
|
File details
Details for the file music_voicegen-0.1.1-py3-none-any.whl.
File metadata
- Download URL: music_voicegen-0.1.1-py3-none-any.whl
- Upload date:
- Size: 28.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
558ceb89770fd40b63ae267654b0a949a0000da956bbefd52931db54d7f1cd31
|
|
| MD5 |
b1bd90bd805667b5c3d52cb624b08530
|
|
| BLAKE2b-256 |
f4112aefa639dc863be5a90fcb845776d63f45b7702969a42c1787b2181fb3c1
|