paracusia v0.2.1 Paracusia.MpdTypes

Types for all information retrieved from MPD.

Summary

Types

ids are used by MPD to uniquely identify each song in the database. ids remain unchanged when a song changes its position in the queue

positions are used to identify the position of a song in the queue. The first song in the queue has index 0

Ranges are used to restrict an operation on a subset of the queue. A range is right-open and indexing starts with zero, e.g., {0, 3} is used to specify the songs at the 1st, 2nd and 3rd position

Types

find_tag()
find_tag :: tag | :any | :file | :base | :modified_since
id()
id :: integer

ids are used by MPD to uniquely identify each song in the database. ids remain unchanged when a song changes its position in the queue.

position()
position :: integer

positions are used to identify the position of a song in the queue. The first song in the queue has index 0.

range()

Ranges are used to restrict an operation on a subset of the queue. A range is right-open and indexing starts with zero, e.g., {0, 3} is used to specify the songs at the 1st, 2nd and 3rd position.

tag()
tag ::
  :artist |
  :artistsort |
  :album |
  :albumsort |
  :albumartist |
  :albumartistsort |
  :title |
  :track |
  :name |
  :genre |
  :date |
  :composer |
  :performer |
  :comment |
  :disc |
  :musicbrainz_artistid |
  :musicbrainz_albumid |
  :musicbrainz_albumartistid |
  :musicbrainz_trackid |
  :musicbrainz_releasetrackid

As described at https://musicpd.org/doc/protocol/tags.html