Safe Haskell | None |
---|
- type IsSibelius a = (IsPitch a, HasPart' a, Enum (Part a), HasPitch' a, Num (Pitch a), HasTremolo a, HasArticulation a, HasText 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 = (IsPitch a, HasPart' a, Enum (Part a), HasPitch' a, Num (Pitch a), HasTremolo a, HasArticulation a, HasText a, Tiable a)Source
This constraint includes all note types that can be constructed from a Sibelius representation.
fromSibelius :: IsSibelius a => SibeliusScore -> Score aSource
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.