Code Monkey home page Code Monkey logo

ly-shapenote's Introduction

Lilypond templates for shape-note music

Write music and lyrics; the heavy lifting is done for you.

Score output

The layout template takes care of some shape-note standards:

  • Repeats with four dots
  • Removing brackets over alternate endings
  • Forcing hyphens to appear in lyrics
  • Multi-page headings ("Continued" and "Concluded")
  • Adjustments to the default note, lyric, and staff size and weights.

Repeats and D.C.

A repeat mark can be placed at the beginning of the piece by adding an explicit \bar.

D.C. can be indicated using two markup commands: \dc and \fine.

% examples/pardoning_love.ly
tenorMusic = \relative do' {
  \bar ".;"                 % Explicit beginning repeat mark
  \repeat volta 2 {
    % [music]
    \fine                   % "Fine." markup
  }
  \time 6/4
  % [music]
  \bar "|."                 % Explicit ending bar
  \dc                       % "D.C." markup
}

D.C. can be indicated in the lyrics using \stanzaDC.

Midi output

A separate (hidden) score is created for midi output, which does the following:

  • Lowers the pitch a whole step, to approximate the key the music would be sung in.
  • Unfolds repeats and D.C. (as long as you used \dc and \fine).
  • Attempts to accent the music in sacred harp style with primary and secondary accents, according to the time signature.
    • This works by attaching dynamics to each note based on where it falls in the measure

    • The amount of accent can be adjusted:

      % These are the default settings
      \setAccentDynamics "ff" "f" "mp"   % primary, secondary, unaccented

Parts can be muted:

trebleMusic = \relative do' {
  \mute
  sol'2 sol4 mi mi4 sol do do do2
}

Or a single part can solo:

trebleMusic = \relative do' {
  \solo
  sol'2 sol4 mi mi4 sol do do do2
}

ly-shapenote's People

Contributors

mrichards42 avatar

Stargazers

Mark Godfrey avatar Steve Brett avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.