SongProOrg / songpro-ruby

A Ruby Gem to convert SongPro songs to a Ruby object used to generate various output formats.
https://songpro.org
MIT License
5 stars 1 forks source link

Feature: Section References #13

Open spilth opened 1 year ago

spilth commented 1 year ago

If a song repeats a section verbatim it would be convenient to just reference the section by name rather than manually copy the entire thing. The generated song would have the two Sections automatically copied.

For example:

## Chorus

[C] This is [D] the chorus
[G] To the song

^ Chorus

^ Chorus

Would result in the following:

## Chorus

[C] This is [D] the chorus
[G] To the song

## Chorus

[C] This is [D] the chorus
[G] To the song

## Chorus

[C] This is [D] the chorus
[G] To the song

An additional nice feature would be the ability to rename the copy of the Section each time. For example:

## Chorus 1

[C] This is [D] the chorus
[G] To the song

^ Chorus 1:Chorus 2

^ Chorus 1:Outro

Would result in the following:

## Chorus 1

[C] This is [D] the chorus
[G] To the song

## Chorus 2

[C] This is [D] the chorus
[G] To the song

## Outro

[C] This is [D] the chorus
[G] To the song