hamusic-0.1.2: Library to handle abstract musicSource codeContentsIndex
Music.Analysis.MusicXML
PortabilityHaXml
Stabilityexperimental
Maintainersilva.samuel@alumni.uminho.pt
Contents
Architecture of MusicXML
Description
This module make interface with MusicXML using HaXML library.
Synopsis
toTimewise :: Score_Partwise -> Score_Timewise
toPartwise :: Score_Timewise -> Score_Partwise
transpose :: [(a, [(b, c)])] -> [(b, [(a, c)])]
abst_Score_Partwise :: Score_Partwise -> Score_Partwise
abst_Part :: Part -> Part
abst_Measure :: Measure -> Measure
abst_Music_Data :: Music_Data_ -> Music_Data
abst_Note :: Note -> Note
abst_Note_ :: Note_ -> Note_
abst_Grace :: Grace -> Grace
abst_Cue :: Cue -> Cue
abst_Instrument :: Instrument -> Instrument
abst_Duration :: Duration -> Duration
abst_Full_Note :: Full_Note -> Full_Note
abst_Full_Note_ :: Full_Note_ -> Full_Note_
abst_Pitch :: Pitch -> Pitch
abst_Step :: Step -> Maybe Step
abst_Alter :: Alter -> Maybe Alter
abst_Octave :: Octave -> Octave
abst_Unpitched :: Unpitched -> Unpitched
abst_Rest :: Rest -> Rest
abst_Tie :: Tie -> Tie
abst_Editorial_Voice :: Editorial_Voice -> Editorial_Voice
abst_Type :: Type -> Maybe Type
abst_Type_ :: PCDATA -> Maybe Type_
abst_Dot :: Dot -> Dot
abst_Accidental :: Accidental -> Maybe Accidental
abst_Accidental_ :: PCDATA -> Maybe Accidental_
abst_Time_Modification :: Time_Modification -> Time_Modification
abst_Stem :: Stem -> Stem
abst_Notehead :: Notehead -> Notehead
abst_Staff :: Staff -> Staff
abst_Beam :: Beam -> Beam
abst_Notations :: Notations -> Notations
abst_Lyric :: Lyric -> Lyric
abst_Attributes :: Attributes -> Attributes
abst_Editorial :: Editorial -> Editorial
abst_Divisions :: Divisions -> Divisions
abst_Key :: Key -> Key
abst_Key_ :: Key_ -> Key_
abst_Fifths :: Fifths -> Fifths
abst_Mode :: Mode -> Maybe Mode
abst_Key_Step :: Key_Step -> Key_Step
abst_Key_Alter :: Key_Alter -> Key_Alter
abst_Key_Octave :: Key_Octave -> Key_Octave
abst_Time :: Time -> Time
abst_Time_B :: Time_B -> Time_B
abst_Beats :: Beats -> Beats
abst_Beat_Type :: Beat_Type -> Beat_Type
abst_Staves :: Staves -> Staves
abst_Part_Symbol :: Part_Symbol -> Part_Symbol
abst_Instruments :: Instruments -> Instruments
abst_Clef :: Clef -> Clef
abst_Sign :: Sign -> Maybe Sign
abst_Line :: Line -> Line
abst_Clef_Octave_Change :: Clef_Octave_Change -> Clef_Octave_Change
abst_Staff_Details :: Staff_Details -> Staff_Details
abst_Transpose :: Transpose -> Transpose
abst_Directive :: Directive -> Directive
abst_Measure_Style :: Measure_Style -> Measure_Style
rep_Score_Partwise :: Score_Partwise -> Score_Partwise
rep_Part :: Part -> Part
rep_Measure :: Measure -> Measure
rep_Music_Data :: Music_Data -> Music_Data_
rep_Note :: Note -> Note
rep_Note_ :: Note_ -> Note_
rep_Grace :: Grace -> Grace
rep_Cue :: Cue -> Cue
rep_Instrument :: Instrument -> Instrument
rep_Duration :: Duration -> Duration
rep_Full_Note :: Full_Note -> Full_Note
rep_Full_Note_ :: Full_Note_ -> Full_Note_
rep_Pitch :: Pitch -> Pitch
rep_Step :: Step -> Step
rep_Alter :: Alter -> Alter
rep_Octave :: Octave -> Octave
rep_Unpitched :: Unpitched -> Unpitched
rep_Rest :: Rest -> Rest
rep_Tie :: Tie -> Tie
rep_Editorial_Voice :: Editorial_Voice -> Editorial_Voice
rep_Type :: Type -> Type
rep_Type_ :: Type_ -> PCDATA
rep_Dot :: Dot -> Dot
rep_Accidental :: Accidental -> Accidental
rep_Accidental_ :: Accidental_ -> PCDATA
rep_Time_Modification :: Time_Modification -> Time_Modification
rep_Stem :: Stem -> Stem
rep_Notehead :: Notehead -> Notehead
rep_Staff :: Staff -> Staff
rep_Beam :: Beam -> Beam
rep_Notations :: Notations -> Notations
rep_Lyric :: Lyric -> Lyric
rep_Attributes :: Attributes -> Attributes
rep_Editorial :: Editorial -> Editorial
rep_Divisions :: Divisions -> Divisions
rep_Key :: Key -> Key
rep_Key_ :: Key_ -> Key_
rep_Fifths :: Fifths -> Fifths
rep_Mode :: Mode -> Mode
rep_Key_Step :: Key_Step -> Key_Step
rep_Key_Alter :: Key_Alter -> Key_Alter
rep_Key_Octave :: Key_Octave -> Key_Octave
rep_Time :: Time -> Time
rep_Time_B :: Time_B -> Time_B
rep_Beats :: Beats -> Beats
rep_Beat_Type :: Beat_Type -> Beat_Type
rep_Staves :: Staves -> Staves
rep_Part_Symbol :: Part_Symbol -> Part_Symbol
rep_Instruments :: Instruments -> Instruments
rep_Clef :: Clef -> Clef
rep_Sign :: Sign -> Sign
rep_Line :: Line -> Line
rep_Clef_Octave_Change :: Clef_Octave_Change -> Clef_Octave_Change
rep_Staff_Details :: Staff_Details -> Staff_Details
rep_Transpose :: Transpose -> Transpose
rep_Directive :: Directive -> Directive
rep_Measure_Style :: Measure_Style -> Measure_Style
dur_Duration :: String -> IntegerNumber
dur_Backup :: Backup -> IntegerNumber -> IntegerNumber
dur_Forward :: Forward -> IntegerNumber -> IntegerNumber
dur_Note_ :: Note_ -> IntegerNumber -> IntegerNumber
dur_Note :: Note -> IntegerNumber -> IntegerNumber
dur_Attributes :: Attributes -> Maybe Divisions
dur_Divisions :: Maybe a -> Maybe a
dur_Music_Data_ :: Music_Data_ -> (Divisions, IntegerNumber) -> (Divisions, IntegerNumber)
map_Score_Partwise' :: (Music_Data_ -> Music_Data_) -> Score_Partwise -> Score_Partwise
map_Part' :: (Music_Data_ -> Music_Data_) -> Part -> Part
map_Measure' :: (Music_Data_ -> Music_Data_) -> Measure -> Measure
map_Music_Data' :: (Music_Data_ -> Music_Data_) -> Music_Data_ -> Music_Data_
read_Number :: String -> Maybe Number
read_IntegerNumber :: String -> Maybe IntegerNumber
coread_Number :: String -> Either Number String
coread_IntegerNumber :: String -> Either IntegerNumber String
getOffSet :: Music_Data_ -> IntegerNumber
arrangeBy :: (Ord b, Num b) => (a -> b) -> [a] -> [[((b, Integer), a)]]
arrange :: Music_Data -> [[((IntegerNumber, Integer), Music_Data_)]]
Documentation
toTimewise :: Score_Partwise -> Score_TimewiseSource
toPartwise :: Score_Timewise -> Score_PartwiseSource
transpose :: [(a, [(b, c)])] -> [(b, [(a, c)])]Source
abst_Score_Partwise :: Score_Partwise -> Score_PartwiseSource
abst_Part :: Part -> PartSource
abst_Measure :: Measure -> MeasureSource
abst_Music_Data :: Music_Data_ -> Music_DataSource
abst_Note :: Note -> NoteSource
abst_Note_ :: Note_ -> Note_Source
abst_Grace :: Grace -> GraceSource
abst_Cue :: Cue -> CueSource
abst_Instrument :: Instrument -> InstrumentSource
abst_Duration :: Duration -> DurationSource
abst_Full_Note :: Full_Note -> Full_NoteSource
abst_Full_Note_ :: Full_Note_ -> Full_Note_Source
abst_Pitch :: Pitch -> PitchSource
abst_Step :: Step -> Maybe StepSource
abst_Alter :: Alter -> Maybe AlterSource
abst_Octave :: Octave -> OctaveSource
abst_Unpitched :: Unpitched -> UnpitchedSource
abst_Rest :: Rest -> RestSource
abst_Tie :: Tie -> TieSource
abst_Editorial_Voice :: Editorial_Voice -> Editorial_VoiceSource
abst_Type :: Type -> Maybe TypeSource
abst_Type_ :: PCDATA -> Maybe Type_Source
abst_Dot :: Dot -> DotSource
abst_Accidental :: Accidental -> Maybe AccidentalSource
abst_Accidental_ :: PCDATA -> Maybe Accidental_Source
abst_Time_Modification :: Time_Modification -> Time_ModificationSource
abst_Stem :: Stem -> StemSource
abst_Notehead :: Notehead -> NoteheadSource
abst_Staff :: Staff -> StaffSource
abst_Beam :: Beam -> BeamSource
abst_Notations :: Notations -> NotationsSource
abst_Lyric :: Lyric -> LyricSource
abst_Attributes :: Attributes -> AttributesSource
abst_Editorial :: Editorial -> EditorialSource
abst_Divisions :: Divisions -> DivisionsSource
abst_Key :: Key -> KeySource
abst_Key_ :: Key_ -> Key_Source
abst_Fifths :: Fifths -> FifthsSource
abst_Mode :: Mode -> Maybe ModeSource
abst_Key_Step :: Key_Step -> Key_StepSource
abst_Key_Alter :: Key_Alter -> Key_AlterSource
abst_Key_Octave :: Key_Octave -> Key_OctaveSource
abst_Time :: Time -> TimeSource
abst_Time_B :: Time_B -> Time_BSource
abst_Beats :: Beats -> BeatsSource
abst_Beat_Type :: Beat_Type -> Beat_TypeSource
abst_Staves :: Staves -> StavesSource
abst_Part_Symbol :: Part_Symbol -> Part_SymbolSource
abst_Instruments :: Instruments -> InstrumentsSource
abst_Clef :: Clef -> ClefSource
abst_Sign :: Sign -> Maybe SignSource
abst_Line :: Line -> LineSource
abst_Clef_Octave_Change :: Clef_Octave_Change -> Clef_Octave_ChangeSource
abst_Staff_Details :: Staff_Details -> Staff_DetailsSource
abst_Transpose :: Transpose -> TransposeSource
abst_Directive :: Directive -> DirectiveSource
abst_Measure_Style :: Measure_Style -> Measure_StyleSource
rep_Score_Partwise :: Score_Partwise -> Score_PartwiseSource
rep_Part :: Part -> PartSource
rep_Measure :: Measure -> MeasureSource
rep_Music_Data :: Music_Data -> Music_Data_Source
rep_Note :: Note -> NoteSource
rep_Note_ :: Note_ -> Note_Source
rep_Grace :: Grace -> GraceSource
rep_Cue :: Cue -> CueSource
rep_Instrument :: Instrument -> InstrumentSource
rep_Duration :: Duration -> DurationSource
rep_Full_Note :: Full_Note -> Full_NoteSource
rep_Full_Note_ :: Full_Note_ -> Full_Note_Source
rep_Pitch :: Pitch -> PitchSource
rep_Step :: Step -> StepSource
rep_Alter :: Alter -> AlterSource
rep_Octave :: Octave -> OctaveSource
rep_Unpitched :: Unpitched -> UnpitchedSource
rep_Rest :: Rest -> RestSource
rep_Tie :: Tie -> TieSource
rep_Editorial_Voice :: Editorial_Voice -> Editorial_VoiceSource
rep_Type :: Type -> TypeSource
rep_Type_ :: Type_ -> PCDATASource
rep_Dot :: Dot -> DotSource
rep_Accidental :: Accidental -> AccidentalSource
rep_Accidental_ :: Accidental_ -> PCDATASource
rep_Time_Modification :: Time_Modification -> Time_ModificationSource
rep_Stem :: Stem -> StemSource
rep_Notehead :: Notehead -> NoteheadSource
rep_Staff :: Staff -> StaffSource
rep_Beam :: Beam -> BeamSource
rep_Notations :: Notations -> NotationsSource
rep_Lyric :: Lyric -> LyricSource
rep_Attributes :: Attributes -> AttributesSource
rep_Editorial :: Editorial -> EditorialSource
rep_Divisions :: Divisions -> DivisionsSource
rep_Key :: Key -> KeySource
rep_Key_ :: Key_ -> Key_Source
rep_Fifths :: Fifths -> FifthsSource
rep_Mode :: Mode -> ModeSource
rep_Key_Step :: Key_Step -> Key_StepSource
rep_Key_Alter :: Key_Alter -> Key_AlterSource
rep_Key_Octave :: Key_Octave -> Key_OctaveSource
rep_Time :: Time -> TimeSource
rep_Time_B :: Time_B -> Time_BSource
rep_Beats :: Beats -> BeatsSource
rep_Beat_Type :: Beat_Type -> Beat_TypeSource
rep_Staves :: Staves -> StavesSource
rep_Part_Symbol :: Part_Symbol -> Part_SymbolSource
rep_Instruments :: Instruments -> InstrumentsSource
rep_Clef :: Clef -> ClefSource
rep_Sign :: Sign -> SignSource
rep_Line :: Line -> LineSource
rep_Clef_Octave_Change :: Clef_Octave_Change -> Clef_Octave_ChangeSource
rep_Staff_Details :: Staff_Details -> Staff_DetailsSource
rep_Transpose :: Transpose -> TransposeSource
rep_Directive :: Directive -> DirectiveSource
rep_Measure_Style :: Measure_Style -> Measure_StyleSource
dur_Duration :: String -> IntegerNumberSource
dur_Backup :: Backup -> IntegerNumber -> IntegerNumberSource
dur_Forward :: Forward -> IntegerNumber -> IntegerNumberSource
dur_Note_ :: Note_ -> IntegerNumber -> IntegerNumberSource
dur_Note :: Note -> IntegerNumber -> IntegerNumberSource
dur_Attributes :: Attributes -> Maybe DivisionsSource
dur_Divisions :: Maybe a -> Maybe aSource
dur_Music_Data_ :: Music_Data_ -> (Divisions, IntegerNumber) -> (Divisions, IntegerNumber)Source
map_Score_Partwise' :: (Music_Data_ -> Music_Data_) -> Score_Partwise -> Score_PartwiseSource
map_Part' :: (Music_Data_ -> Music_Data_) -> Part -> PartSource
map_Measure' :: (Music_Data_ -> Music_Data_) -> Measure -> MeasureSource
map_Music_Data' :: (Music_Data_ -> Music_Data_) -> Music_Data_ -> Music_Data_Source
read_Number :: String -> Maybe NumberSource
read_IntegerNumber :: String -> Maybe IntegerNumberSource
coread_Number :: String -> Either Number StringSource
coread_IntegerNumber :: String -> Either IntegerNumber StringSource
Architecture of MusicXML
getOffSet :: Music_Data_ -> IntegerNumberSource
get offset from music_data elements
arrangeBy :: (Ord b, Num b) => (a -> b) -> [a] -> [[((b, Integer), a)]]Source
generic sort of Music_Data
arrange :: Music_Data -> [[((IntegerNumber, Integer), Music_Data_)]]Source
sort of Music_Data
Produced by Haddock version 2.6.0