/
SortingAStackOfPancakes.tex
96 lines (80 loc) · 3.31 KB
/
SortingAStackOfPancakes.tex
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
\documentclass{leadsheet}
\usepackage{leadsheets}
\input{LeadsheetsTemplates.tex}
\usepackage[margin=0.75in]{geometry}
%To use chords with capo, use template mathsjamjamCapo_individual and set transpose-capo = true
%To use actual chords, use template mathsjamjam_individual and set transpose-capo = false
%To print lyrics without chords, set print-chords = false
\setleadsheets{
title-template = mathsjamjam_individual,
after-song = \newpage,
chords/sharp = \sharp ,
chords/flat = \flat,
chords/format = \bfseries,
align-chords = {l},
verse/name=Verse,
verse/named=true,
verse/numbered=false,
verse/after-label=:,
remember-chords=true,
print-chords=true,
capo-nr-format = arabic,
transpose-capo=false,
chorus/format =
}
\begin{document}
\begin{song}{title=Sorting A Stack of Pancakes,key=G, lyrics=Sam Hartburn, subtitle=Banana Pancakes by Jack Johnson}
\begin{intro}
^{Am7} ^{G7} Well can't you see that they're not ^{Am7}sorted? \\
We need to order them by ^{G7}size \\
\end{intro}
\begin{verse}
But ^{D}baby, you ^{G}hardly even ^{D}notice, ^{Am7}when I try to ^{C7}show you these \\
^{G}Cakes aren't being ^{D}stacked in the ^{Am7}order they're supp^{C7}osed to \\
There's ^{G}small ones in the ^{D}middle and ^{Am7}big ones at the ^{C7}top \\
I'm ^{G}sorting a stack of ^{D}pancakes, I ^{Am7}wonder if I'll ^{C7}ever ^{Am7}stop \\
\end{verse}
\begin{chorus}
Feels like it's taking all my ^{G7}time \\
Can't you see that they're not ^{Am7}sorted \\
We need to order them by ^{G7}size \\
\end{chorus}
\begin{verse}
But just ^{}maybe I'll ^{}find an algo^{}rithm, ^{}get into the ^{}rhythm \\
^{}Put in a load of ^{}practice `cause it ^{}takes some repe^{}tition \\
I'll ^{}flip the biggest ^{}pancake with ^{}all the ones on ^{}top \\
Then ^{}turn the whole stack ^{}over, I ^{}know that method's ^{}gonna ^{}work \\
\end{verse}
\begin{chorus}
But it's not the best that there could ^{}be, no \\
For a stack that has $n$ ^{}pancakes \\
The flips are $2n$ minus ^{}$3$ \\
\end{chorus}
\begin{bridge}
Not the best it could ^{Am7}be, mmm mmm mmm ^{G7}mmm \\
That $2n$ minus ^{Am7}$3$, it's not the best that it could ^{G7}be \\
`Cause some ^{Am7}folk they did some work and I will tell you what it was that they ^{D}found \\
Eighteen $n$ over el^{Am7}even \\
That's the number that's the currently best-known upper ^{D}bound, `s not so easy \\
If you ^{Bm}want an answer for your pile of cakes \\
If you ^{Em}really want to ^{Em/D}know how many ^{C}flips it'll take \\
They don't ^{G}know, oh ^{D}no, they don't ^{G}know \\
\end{bridge}
\begin{verse}
But ^{}baby, you ^{}hardly even ^{}notice, ^{}when I try to ^{}show you these \\
^{}Cakes aren't being ^{}stacked in the ^{}order they're supp^{}osed to \\
There's ^{}small ones in the ^{}middle and ^{}big ones at the ^{}top \\
I'm ^{}sorting a stack of ^{}pancakes, I ^{}wonder if I'll ^{}ever ^{}stop \\
\end{verse}
\begin{chorus}
Feels like it's taking all my ^{}time \\
Can't you see that they're not ^{}sorted \\
We need to order them by ^{}size \\
\end{chorus}
\begin{outro}
I give up, I'm ^{Am7}hungry \\
They're not sorted and I ^{G7}really, really, really don't mind \\
`Cause you see, `cause you ^{Am7}see, they're gonna taste just ^{G7}fine \\
\end{outro}
\end{song}
\end{document}