Safe Haskell | None |
---|---|
Language | Haskell2010 |
- type IsSibelius a = (HasPitches' a, IsPitch a, HasPart' a, Part a ~ Part, HasArticulation' a, Articulation a ~ Articulation, HasDynamic' a, Dynamic a ~ Dynamics, HasText a, HasTremolo a, Tiable a)
- fromSibelius :: IsSibelius a => SibeliusScore -> Score a
- readSibelius :: IsSibelius a => FilePath -> IO (Score a)
- readSibeliusMaybe :: IsSibelius a => FilePath -> IO (Maybe (Score a))
- readSibeliusEither :: IsSibelius a => FilePath -> IO (Either String (Score a))
Documentation
type IsSibelius a = (HasPitches' a, IsPitch a, HasPart' a, Part a ~ Part, HasArticulation' a, Articulation a ~ Articulation, HasDynamic' a, Dynamic a ~ Dynamics, HasText a, HasTremolo a, Tiable a) Source
This constraint includes all note types that can be constructed from a Sibelius representation.
fromSibelius :: IsSibelius a => SibeliusScore -> Score a Source
Convert a score from a Sibelius representation.
readSibelius :: IsSibelius a => FilePath -> IO (Score a) Source
Read a Sibelius score from a file. Fails if the file could not be read or if a parsing error occurs.
readSibeliusMaybe :: IsSibelius a => FilePath -> IO (Maybe (Score a)) Source
Read a Sibelius score from a file. Fails if the file could not be read, and returns
Nothing
if a parsing error occurs.
readSibeliusEither :: IsSibelius a => FilePath -> IO (Either String (Score a)) Source
Read a Sibelius score from a file. Fails if the file could not be read, and returns
Left m
if a parsing error occurs.