Skip to main content

musical 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 i in range(8) ]

Please see the original documentation for detailed usage.

AUTHOR

thrig - Jeremy Mates (jmates at cpan.org)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

music_voicegen-0.1.0.tar.gz (41.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

music_voicegen-0.1.0-py3-none-any.whl (28.4 kB view details)

Uploaded Python 3

File details

Details for the file music_voicegen-0.1.0.tar.gz.

File metadata

  • Download URL: music_voicegen-0.1.0.tar.gz
  • Upload date:
  • Size: 41.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for music_voicegen-0.1.0.tar.gz
Algorithm Hash digest
SHA256 66e9c905cd68717ac181cd4661b18c078f588ba577cda0ec3143f1730f3046cb
MD5 aaf3eff0131811053131c0a2c72029df
BLAKE2b-256 1516bd1d07e23afc241943df5aefc4d189297a5f0aa2daf1a2b0bddd13224c22

See more details on using hashes here.

File details

Details for the file music_voicegen-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: music_voicegen-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 28.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for music_voicegen-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6bc5ecda52fadcf68c8c4d3aafc635905985f66581714fd0ec376ef9863c682f
MD5 a991e1e947783cd7c612f2d3ce8bd09f
BLAKE2b-256 7c9ea3305d8ca2221f698095086f38a4f8b17fb2e60fe73b8d746a1e6f692208

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page