Data.Abc.Accidentals  
- Package
 - purescript-abc-parser
 - Repository
 - newlandsvalley/purescript-abc-parser
 
Accidentals are a set of mappings from a PitchClass to an Accidental They are useful, for example, when interpreting a bar of music where the accidental nature of a note may depend on the existence of a previous note of the same pitch within the bar.
#Accidentals Source
type Accidentals = Map PitchClass AccidentalA set of accidentals
#empty Source
empty :: Accidentalscreate an empty set of Key Accidentals
#add Source
add :: PitchClass -> Accidental -> Accidentals -> Accidentalsadd an accidental to the set
#fromKeySet Source
fromKeySet :: KeySet -> Accidentalsbuild Accidentals from a KeySet
#lookup Source
lookup :: PitchClass -> Accidentals -> Maybe Accidentallookup a pitch class and see of it exists in the Accidentals set
#member Source
member :: Pitch -> Accidentals -> Booleanlookup a KeyAccidental (represented as a Pitch) and see if it's a member of the Accidentals set (i.e. the value of the Accidental matches for the supplied pitch)
#fromKeySig Source
fromKeySig :: KeySignature -> Pitchextract the KeyAccidental Pitch from a KeySignature
#implicitInKeySet Source
implicitInKeySet :: PitchClass -> KeySet -> Maybe AccidentalReturn an accidental if it is implicitly there in the supplied KeySet (which is obtained from a key signature) attached to the pitch class of the note. In ABC, notes generally inherit their (sharp, flat or natural) accidental nature from the key signature.
- Modules
 - Data.
Abc  - Data.
Abc. Accidentals  - Data.
Abc. Canonical  - Data.
Abc. KeySignature  - Data.
Abc. Meter  - Data.
Abc. Midi  - Data.
Abc. Midi. Pitch  - Data.
Abc. Midi. RepeatSections  - Data.
Abc. Midi. Types  - Data.
Abc. Normaliser  - Data.
Abc. Octave  - Data.
Abc. Optics  - Data.
Abc. Parser  - Data.
Abc. Repeats. Section  - Data.
Abc. Repeats. Types  - Data.
Abc. Repeats. Variant  - Data.
Abc. Tempo  - Data.
Abc. Transposition  - Data.
Abc. UnitNote  - Data.
Abc. Utils  - Data.
Abc. Voice