Skip to content

Commit

Permalink
Updated MIDI and Karaoke examples
Browse files Browse the repository at this point in the history
  • Loading branch information
pedrolcl committed Apr 13, 2021
1 parent f525af3 commit 9c5f9fd
Show file tree
Hide file tree
Showing 19 changed files with 75 additions and 3 deletions.
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,7 @@ endif()
if(UNIX AND NOT APPLE)
include(GNUInstallDirs)
add_subdirectory(icons)
add_subdirectory(examples)
install(TARGETS ${PROJECT_NAME}
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
install(FILES ${QM_FILES}
Expand Down
4 changes: 4 additions & 0 deletions examples/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
file(GLOB MIDI_FILES *.mid)
file(GLOB KAR_FILES *.kar)
install( FILES ${MIDI_FILES} ${KAR_FILES}
DESTINATION ${DATA_INSTALL_DIR}/${PROJECT_NAME} )
9 changes: 9 additions & 0 deletions examples/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# MIDI and Karaoke examples.

The MIDI files have been created in [Rosegarden](https://www.rosegardenmusic.com/) and the corresponding sources are included in this directory.

The license of the MIDI examples is [Creative Commons Attribution-Share Alike 3.0 Unported](https://creativecommons.org/licenses/by-sa/3.0/).

The Karaoke example is created with [MMA](https://www.mellowood.ca/mma/index.html) (Musical MIDI Accompaniment) and the corresponding source is included in this directory. Use MMA 1.5e or newer.

The MMA example is copyrighted by Bob van der Poel, and licensed under the terms of the GPLv2+, like the MMA program itself.
Binary file added examples/haendel_hallelujah.mid
Binary file not shown.
Binary file added examples/haendel_hallelujah.rg
Binary file not shown.
Binary file added examples/lindaamiga.mid
Binary file not shown.
Binary file added examples/lindaamiga.rg
Binary file not shown.
Binary file added examples/mozart_aveverum.mid
Binary file not shown.
Binary file added examples/mozart_aveverum.rg
Binary file not shown.
Binary file added examples/mozart_diesirae.mid
Binary file not shown.
Binary file added examples/mozart_diesirae.rg
Binary file not shown.
Binary file added examples/mozart_konigdernacht.mid
Binary file not shown.
Binary file added examples/mozart_konigdernacht.rg
Binary file not shown.
Binary file added examples/schubert_avemaria.mid
Binary file not shown.
Binary file added examples/schubert_avemaria.rg
Binary file not shown.
Binary file added examples/twinkle.kar
Binary file not shown.
58 changes: 58 additions & 0 deletions examples/twinkle.mma
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
// Twinkle, Twinkle, Little Star
// for MMA, http://www.mellowood.ca/mma/index.html

MIDICopyright © 2002-2010 Bob van der Poel <bob@mellowood.ca>
MIDIText @LENGL
MIDIText @IFree use of this file is granted under the terms of the GNU General Public License.
MIDIText @TTwinkle, Twinkle, Little Star

Lyric Karmode=On

Tempo 250

Groove Metronome2

z * 2

Groove HillCountryPlus

Begin Solo
Voice Recorder
Octave 7
Volume f
Harmony OpenBelow
End

Repeat

G {2g-;2g-;} [\Twin-kle,] [\When the]
G {2d;2d;} [Twin-kle] [bla-zing]
C {2e;2e;} [lit-tle] [sun is]
G {1d;} [star;] [gone,]
Am {2c;2c;} [/How I] [/When he]
G {2b-;2b-;} [won-der] [no-thing]
D7 {2a-;2a-;} [what you] [shines u-]
G {1g-;} [are.] [pon.]
G {2d;2d;} [/Up a-] [/Then you]
C {2c;2c;} [bove the] [show your]
G {2b-;2b-;} [world so] [lit-tle]
D {1a-;} [high,] [light,]
G {2d;2d;} [/Like a] [/Twin-kle,]
C {2c;2c;} [dia-mond] [twin-kle,]
G {2b-;2b-;} [in the] [all the]
D7 {1a-;} [sky!] [night.]
G {2g-;2g-;} [/Twin-kle,]
G {2d;2d;} [twin-kle]
C {2e;2e;} [Lit-tle]
G {1d;} [star,]
Am {2c;2c;} [/How I]
G {2b-;2b-;} [won-der]
D7 {2a-;2a-;} [what you]
G {1g-;} [are./]

Lyric Verse=Inc
RepeatEnd

Groove HillCountryEnd

G * 2
4 changes: 2 additions & 2 deletions sequence.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -454,8 +454,8 @@ void Sequence::smfUpdateLoadProgress()

void Sequence::smfKeySig(int alt, int mode)
{
Q_UNUSED(mode)
//qDebug() << Q_FUNC_INFO << "alt:" << alt << "mode:" << mode;
//Q_UNUSED(mode)
qDebug() << Q_FUNC_INFO << "alt:" << alt << "mode:" << mode;
m_numAlterations = alt;
smfUpdateLoadProgress();
}
Expand Down
2 changes: 1 addition & 1 deletion settings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ void Settings::internalRead(QSettings &settings)
settings.endGroup();

settings.beginGroup("Preferences");
m_lastDirectory = settings.value("LastDirectory").toString();
m_lastDirectory = settings.value("LastDirectory", dataDirectory()).toString();
m_showStatusBar = settings.value("ShowStatusBar", true).toBool();
m_showToolBar = settings.value("ShowToolBar", true).toBool();
m_drumsChannel = settings.value("DrumsChannel", MIDI_GM_STD_DRUM_CHANNEL+1).toInt();
Expand Down

0 comments on commit 9c5f9fd

Please sign in to comment.