semcod

Harp

AI Cost Tracking

PyPI Version Python License AI Cost Human Time Model

Generated on 2026-05-10 using openrouter/qwen/qwen3-coder-next


A Python package for musical string manipulation and analysis, particularly focused on harp-like string instruments and their properties.

Features

Installation

pip install harp

Quick Start

from harp import Harp, note_to_frequency, frequency_to_note

# Convert between notes and frequencies
freq = note_to_frequency('A4')
note = frequency_to_note(440.0)

# Create a harp with standard tuning
harp = Harp(num_strings=47)
harp.tune_to_standard()

# Play a note
harp.pluck_string(0, velocity=0.8)

Development

Install in development mode:

git clone https://github.com/yourusername/harp.git
cd harp
pip install -e .[dev]

This package uses modern Python packaging with pyproject.toml. No setup.py file is required.

Run tests:

pytest

License

Licensed under Apache-2.0.