New subpage for the GCI Functional Programming with LilyPond Tasks.


\header {
  tagline = ##f
}

bpm_a = 120
#(define bpm_b (/ bpm_a 2))
function_a = #(define-music-function (parser location)() #{ c'4 #})

\score {
  {
    \tempo 4=\bpm_a
    c4 d e f | \tempo 4=#bpm_b g a b \function_a
  }
  \layout {}
  \midi {}
}

Task 0

edit

This short section would last for 0.5 seconds.

Task 1

edit

This piece would now last 5 seconds. After adding the function, it would last 6 seconds.