Packages

Elixir library for parsing and formatting chord sheets in ChordPro, ChordsOverWords, and UltimateGuitar formats.

Current section

Files

Jump to
sonx lib sonx chord_sheet.ex
Raw

lib/sonx/chord_sheet.ex

defmodule Sonx.ChordSheet do
@moduledoc """
Shared types for chord sheet items.
"""
alias Sonx.ChordSheet.{
ChordLyricsPair,
Comment,
Literal,
SoftLineBreak,
Tag,
Ternary
}
@type item() ::
ChordLyricsPair.t()
| Tag.t()
| Comment.t()
| Ternary.t()
| Literal.t()
| SoftLineBreak.t()
@type evaluatable() :: Ternary.t() | Literal.t()
end