Himig: a Python module that lets you turn strings of notes into melodies

Created 𝐇𝐒𝐦𝐒𝐠, a Python module that lets you turn strings of notes into melodies.

:musical_score:I built a Streamlit playground so you can experiment with it instantly.

With 𝐇𝐒𝐦𝐒𝐠, you can:

  • Compose using β€œC4:0.5” [Note_Octave:Duration] style.
  • Play or save your melody.
  • Control sample rate and amplitude.

Install with pip install himig

:link: Resources:

Demo

2 Likes

Sharing the latest release:

Himig v1.0.3

:musical_notes: Audio Improvements

  • Replaced apply_fade() with apply_adsr_envelope() for more natural dynamics and smoother note transitions.
  • Added piano-like harmonics using layered sine waves for richer one.
  • Normalized output levels to prevent clipping and ensure consistent playback.
  • Added additional sample melodies Ode to Joy and FΓΌr Elise.

:hammer_and_wrench: Development & Packaging

  • Updated pyproject.toml with license information and version bump.
  • Improve test suite with fixture for simple_melody() and new edge case tests: test_malformed_note_format_raises() and test_multiple_rest_notes().
  • Refined README.md with clearer feature descriptions and license details.
2 Likes