Skip to main content
Drupal is a registered trademark of Dries Buytaert
Release: Views Bootstrap 5.5.4 — Minor update available for module views_bootstrap (5.5.4). Release: Rightup theme 1.0.3 — Minor update available for theme vartheme_bs5_rightup (1.0.3). Release: CommentOn 1.0.6 — Minor update available for module commenton (1.0.6). Release: ChatGPT Ads 1.0.3 — Minor update available for module chatgpt_ads (1.0.3). Release: Opensolr Search 5.1.3 — Minor update available for module opensolr_search (5.1.3). Release: ServiceM8 Webform Integration 1.2.1 — Minor update available for module servicem8_webform (1.2.1). Release: PostfixAdmin 1.0.0 — Initial release available for module postfix_admin (1.0.0)! Release: ip_analyser 1.0.3 — Minor update available for module ip_analyser (1.0.3). Module Revived: Swagger-PHP OpenAPI 3 documentation generator 1.0.0 — Module swagger_php updated after 10 months of inactivity (1.0.0). Security Coverage: Microsoft Azure AI — Module ai_provider_azure now has official Drupal security advisory coverage.

Songbook

No security coverage
View on drupal.org

The Songbook module integrates the https://github.com/intelektron/chordpro-php library into Drupal 🎸.

It provides a content filter to parse ChordPro 6.x format. This way, you can create a professional songbook with few clicks.

Features:

  • Parsing and output of multiple chord notations (French, like Do, Ré, Mi, or German, like H, Fis, or custom ones).
  • Various output formats (HTML, JSON, Monospace), and the possibility to define custom ones.
  • Read ChordPro metadata. You can define song information and organize songs into sections.

Installation:

Install the module along with the intelektron/chordpro-php library (please don't confuse it with an older library from @nicolaswurtz). The Composer will install any dependencies automatically.

To start using the module, create a new text format and enable the Parse as a ChordPro song with chords filter. The CKEditor will no longer be available for this field, it will appear as a textarea in the node edit form.

ChordPro format:

The supported syntax is described in the README.md file of the chordpro-php library.

{t:A Song}
{key:C}
[C]This is the [Dm]beautiful [Em]song
I [Dm]wrote in [F/G]Chordpro for[C]mat [Dm/F]

{soc}
[F] [G] [C]This is the refrain
{eoc}

Defining custom formatters and notations:

If you have your own classes extending ChordNotationInterface or FormatterInterface, please see songbook.api.php file for alter hook usage instructions.

Depends on

Dependencies of the latest stable release

No dependencies recorded for this project.

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
4
Tracked since
Jan 2024
Latest release
2 years ago
Releases (12 mo)
0
Maintenance
Dormant

Release Timeline

Releases

Version Type Core Release date
1.0.2 Stable May 20, 2024
1.0.1 Stable Jan 17, 2024
1.0.0 Stable Jan 16, 2024
1.0.x-dev Dev Jan 16, 2024