Karya, built on 2020-11-26T21:03:17 (patch 23b5be2d53a9e8e7d6136cda5aae2849abe5cded)
Safe HaskellNone

Ness.Guitar.GConvert

Contents

Synopsis

Documentation

maxAmp :: Newtons Source #

Scale dynamic=1 to this.

convert :: Guitar.Instrument -> [Note.Note] -> Either Error Guitar.Score Source #

I want to do explicit damping like reyong, so ignore all durations, but treat a special +mute note.

. Pick a predefined instrument based on Note.instrument. . Pick a string based on the lowest pitch. . Map %location. . Convert the pitch curve to finger movements. . Convert +mute notes to a finger lift.

This means I have to group together all notes on the same string, so I can assign a single finger movement.

How do I know which string for +mute? Use the pitch as usual.

muteNote :: RealTime.RealTime -> Note -> Note Source #

Mute by touching lightly higher up on the string.

data Note Source #

Constructors

Note 

Fields

Instances

Instances details
Show Note # 
Instance details

Defined in Ness.Guitar.GConvert

Methods

showsPrec :: Int -> Note -> ShowS #

show :: Note -> String #

showList :: [Note] -> ShowS #

Pretty.Pretty Note # 
Instance details

Defined in Ness.Guitar.GConvert

util

lastLessEqual :: Ord k => (a -> k) -> k -> [a] -> Maybe a Source #