Class: SongMetaDataCombined

@bldr/songbook-core~SongMetaDataCombined

Combine and transform some song metadata properties.

Mapping

  • title: title (year)
  • subtitle: subtitle - alias - country
  • composer: composer, artist, genre
  • lyricist: lyricist

new SongMetaDataCombined (songMetaData)

Name Type Description
songMetaData module:@bldr/songbook-core~SongMetaData

A song metadata object.

Members

allProperties Array

All property names of all getters as an array.

composer

Format: composer, artist, genre

lyricist

Return the lyricist only if it is not the same as in the fields artist and composer.

Format: lyricist

metaData_ object private

The raw metadata object originating from the info.yml file.

musescoreUrl

For example: https://musescore.com/score/1234

subtitle

Format: subtitle - alias - country

title

title (year)

wikidataUrl

For example: https://www.wikidata.org/wiki/Q42

wikipediaUrl

For example: https://en.wikipedia.org/wiki/A_Article

youtubeUrl

For example: https://youtu.be/CQYypFMTQcE

Methods

module:@bldr/songbook-core~SongMetaDataCombined.collectProperties_ () privatestatic

Extract values of given properties of an object and collect it in an array.

module:@bldr/songbook-core~SongMetaDataCombined.externalSites ()array static

An array of external sites a song is linked to. Each external site has its ...URL property.

Returns:
Type Description
array