termtab-0.1.0.0: TUI guitar tablature and score editor
Safe HaskellNone
LanguageGHC2021

Termtab.Parser.GP5

Description

Load a Song from a Guitar Pro 5 (.gp5) file.

This module drives the low-level binary readers in Termtab.Parser.GP5.Internal in the fixed order GP5's format requires, then converts the resulting GP5* values (file-shaped: raw duration codes, 1-based string numbers, a flat measure×track bar grid) into the domain Song / Track / Measure shape, where bars are keyed by MeasureIndex inside each track instead of living in a separate grid.

Synopsis

Documentation

parseGP5 :: FilePath -> IO (Either ParseError Song) Source #

Read and parse a .gp5 file. Any failure from the underlying Get decoder (wrong version, truncated file, unrecognized structure) becomes ParseErrorMalformed with the decoder's error message.