Karya, built on 2023-08-29T07:47:28 (patch 7a412d5d6ba4968ca4155ef276a062ccdeb9109a)
Safe HaskellSafe-Inferred

Derive.Call.StringUtil

Description

Utilities for stringed instruments.

Synopsis

Documentation

open_strings_env :: Sig.Parser [DeriveT.Pitch] Source #

TODO if Sig.Parser supported Deriver eval, I could make these return String, and not need to call indexed_strings.

data String Source #

Constructors

String 

Fields

Instances

Instances details
Show String Source # 
Instance details

Defined in Derive.Call.StringUtil

Pretty String Source # 
Instance details

Defined in Derive.Call.StringUtil

find_harmonic Source #

Arguments

:: Bool 
-> Harmonic 
-> [String] 
-> Maybe String 
-> Pitch.NoteNumber 
-> Either Text (String, Harmonic)

Either Error (selected string, harmonic)

If string is given, try to find this pitch in the harmonics of that string. Otherwise, find the string from open_strings which has this as its lowest harmonic.