forked from nicolasbrailo/PianOli
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
New song: Frère Jacques (Are you sleeping, brother John?).
- Loading branch information
Jules Kerssemakers
committed
Jan 11, 2024
1 parent
225bd8e
commit 63d4078
Showing
5 changed files
with
49 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
44 changes: 44 additions & 0 deletions
44
app/src/main/java/com/nicobrailo/pianoli/song/BrotherJohn.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
package com.nicobrailo.pianoli.song; | ||
|
||
import com.nicobrailo.pianoli.melodies.Melody; | ||
|
||
/** | ||
* The massively translated Frère Jacques ("Are you sleeping, Brother John?") | ||
* | ||
* <p> | ||
* This nursery rhyme has been translated to dozens of languages, so it should reach a very wide audience. | ||
* </p> | ||
* | ||
* <p> | ||
* Compared to the classic C-D-E-C arrangement, this version is up-shifted by three full notes, | ||
* to account for the bass-note the final chord. Without this shift, it would fall below where we have sound samples. | ||
* </p> | ||
* | ||
* | ||
* <p> | ||
* Further reading:<ul> | ||
* <li><a href="https://en.wikipedia.org/wiki/Fr%C3%A8re_Jacques">English Wikipedia: Frère Jacques</a></li> | ||
* <li><a href="https://de.wikipedia.org/wiki/Fr%C3%A8re_Jacques">German Wikipedia: Frère Jacques</a> (listing some 50 translations)</li> | ||
* </ul></p> | ||
*/ | ||
public class BrotherJohn { | ||
public static final Melody melody = Melody.fromString( | ||
"brother_john", | ||
" " + // 'useless' string so that code formatting indentation nicely lines up | ||
// Are you sleeping, 2x | ||
"F G A F " + | ||
"F G A F " + | ||
|
||
// Brother John? 2x | ||
"A A# C2 " + | ||
"A A# C2 " + | ||
|
||
// Morning bells are ringing! 2x | ||
"C2 D2 C2 A# A F " + | ||
"C2 D2 C2 A# A F " + | ||
|
||
// Please come on! 2x | ||
"F C F " + | ||
"F C F " | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters