add desktop file and wrapper script for fluidsynth

This commit is contained in:
- 2019-06-11 08:34:17 +03:00
parent 0a4fa9c7a2
commit 6107016711
5 changed files with 66 additions and 2 deletions

View File

@ -69,6 +69,8 @@ You need to translate:
[Desktop file #2](https://github.com/captnfab/PianoBooster/blob/master/tools/timidity/pianobooster-timidity.desktop)
[Desktop file #3](https://github.com/captnfab/PianoBooster/blob/master/tools/fluidsynth/pianobooster-fluidsynth.desktop)
LICENSE
=======

View File

@ -0,0 +1,24 @@
#/bin/sh
if [ -f "/usr/share/soundfonts/FluidR3_GM.sf2" ] && [ -f "/usr/share/soundfonts/FluidR3_GS.sf2" ]
then
sf2_1="/usr/share/soundfonts/FluidR3_GM.sf2"
sf2_2="/usr/share/soundfonts/FluidR3_GS.sf2"
fi
if [ -f "/usr/share/sounds/sf2/FluidR3_GM.sf2" ] && [ -f "/usr/share/sounds/sf2/FluidR3_GS.sf2" ]
then
sf2_1="/usr/share/sounds/sf2/FluidR3_GM.sf2"
sf2_2="/usr/share/sounds/sf2/FluidR3_GS.sf2"
fi
if [ -z "$sf2_1" ] && [ -z "$sf2_2"]
then
echo "Error: SoundFonts FluidR3_GM.sf2 and FluidR3_GS.sf2 were not found!"
exit 1
fi
xterm -e "fluidsynth -C 0 -R 0 -r 22050 -c 6 -z 128 -l -a alsa -o audio.alsa.device=plughw:0 -o midi.alsa_seq.id=fs $sf2_1 $sf2_2" &
PID=$!
pianobooster
kill $PID

View File

@ -0,0 +1,38 @@
[Desktop Entry]
Name=Piano Booster (FluidSynth)
Comment=A MIDI file player that teaches you how to play the piano, with FluidSynth sequencer
GenericName=Piano Teacher
Exec=pianobooster-fluidsynth
Icon=pianobooster
Terminal=false
Type=Application
Categories=Music;Education;
MimeType=audio/x-karaoke;audio/x-midi;audio/midi;
Keywords=audio;midi;music;piano;education;learning;playing;songs;
# Translations
GenericName[gl]=Profesor de piano
Name[hi]=ि (FluidSynth)
Name[pt]=Piano Booster (FluidSynth)
Comment[pt]=Um reprodutor de ficheiro MIDI que ensina a tocar piano, com o sequenciador FluidSynth
GenericName[pt]=Professor de Piano
Comment[pt_BR]=Um reprodutor de arquivos MIDI que ensina a tocar piano, com o sequenciador FluidSynth
GenericName[pt_BR]=Professor de Piano
Name[ru]=Piano Booster (FluidSynth)
Comment[ru]=Проигрыватель MIDI-файлов, который научит вас играть на пианино с помощью секвенсора FluidSynth
GenericName[ru]=Обучение пианино
Name[is]=Píanó Booster (FluidSynth)
GenericName[is]=Píanókennari
Name[cs]=Piano Booster (FluidSynth)
Comment[cs]=Přehrávač souborů MIDI, který vás učí hře na klavír, se sekvencerem FluidSynth
GenericName[cs]=Učitel klavíru
Name[de]=Piano Booster (FluidSynth)
Name[es]=Piano Booster (FluidSynth)
Comment[es]=Un reproductor de archivos MIDI que te enseña a tocar el piano, con el secuenciador FluidSynth
GenericName[es]=Profesor de piano
Name[uk]=Piano Booster (FluidSynth)
Comment[uk]=Програвач файлів MIDI, який навчить вас гри на піаніно за допомогою синтезатора FluidSynth
GenericName[uk]=Навчання гри на піаніно
Name[fr]=Piano Booster (FluidSynth)
GenericName[fr]=Professeur de piano

View File

@ -51,7 +51,7 @@
<source>&lt;body bgcolor=&quot;#FFFFC0&quot;&gt;&lt;p&gt;&lt;strong&gt;Start With Middle C&lt;/strong&gt; is an extremely easy piece. Just find &lt;strong&gt;middle C&lt;/strong&gt; on the piano and then play that note four times using your &lt;strong&gt;thumb&lt;/strong&gt; on your &lt;strong&gt;right hand&lt;/strong&gt;. The first half of the piece has &lt;strong&gt;middle C&lt;/strong&gt; in the &lt;strong&gt;Treble Clef&lt;/strong&gt;, then for the second half of the piece the same &lt;strong&gt;middle C&lt;/strong&gt; note is shown the &lt;strong&gt;Bass Clef&lt;/strong&gt;. Play this using your &lt;strong&gt;thumb&lt;/strong&gt; on your &lt;strong&gt;left hand&lt;/strong&gt;.&lt;/p&gt;
&lt;font color=&quot;#ff0000&quot;&gt;&lt;p&gt;&lt;b&gt;Hint:&lt;/strong&gt; &lt;em&gt;Try to remember where &lt;strong&gt;Middle C&lt;/strong&gt; is on the piano - this is the most &lt;strong&gt;important note&lt;/strong&gt;!&lt;/em&gt;&lt;/p&gt;&lt;/font&gt;&lt;/body&gt;</source>
<translation>&lt;body bgcolor=&quot;#FFFFC0&quot;&gt;&lt;p&gt;&lt;strong&gt;Comienza con Do Medio&lt;/strong&gt;es una pieza extremadamente fácil. Solo encuentra la &lt;strong&gt;Do Medio&lt;/strong&gt;en el piano y luego toca esa nota cuatro veces con el &lt;strong&gt;pulgar &lt;/strong&gt;de tu&lt;strong&gt; mano derecha&lt;/strong&gt;. La primera mitad de la pieza tiene &lt;strong&gt;Do Medio &lt;/strong&gt;en la &lt;strong&gt;Clave de Sol&lt;/strong&gt;, luego, para la segunda mitad de la pieza, la misma nota &lt;strong&gt;Do medio&lt;/strong&gt;se muestra la &lt;strong&gt;Clave de Fa&lt;/strong&gt;. Juega esto usando tu &lt;strong&gt;pulgar &lt;/strong&gt;de tu &lt;strong&gt;mano izquierda&lt;/strong&gt;. &lt;/p&gt;
<translation>&lt;body bgcolor=&quot;#FFFFC0&quot;&gt;&lt;p&gt;&lt;strong&gt;Comienza con Do Medio&lt;/strong&gt; es una pieza extremadamente fácil. Solo encuentra la &lt;strong&gt;Do Medio&lt;/strong&gt;en el piano y luego toca esa nota cuatro veces con el &lt;strong&gt;pulgar &lt;/strong&gt;de tu&lt;strong&gt; mano derecha&lt;/strong&gt;. La primera mitad de la pieza tiene &lt;strong&gt;Do Medio &lt;/strong&gt;en la &lt;strong&gt;Clave de Sol&lt;/strong&gt;, luego, para la segunda mitad de la pieza, la misma nota &lt;strong&gt;Do medio&lt;/strong&gt;se muestra la &lt;strong&gt;Clave de Fa&lt;/strong&gt;. Juega esto usando tu &lt;strong&gt;pulgar &lt;/strong&gt;de tu &lt;strong&gt;mano izquierda&lt;/strong&gt;. &lt;/p&gt;
&lt;font color=&quot;#ff0000&quot;&gt;&lt;p&gt;&lt;b&gt;Consejo:&lt;/strong&gt; &lt;em&gt;Trate de recordar dónde está &lt;strong&gt;Do Medio&lt;/strong&gt;en el piano. ¡Esta es la &lt;strong&gt;nota más importante&lt;/strong&gt;!&lt;/em&gt;&lt;/p&gt;&lt;/font&gt;&lt;/body&gt;</translation>
</message>

View File

@ -67,7 +67,7 @@
&lt;font color=&quot;#ff0000&quot;&gt;&lt;p&gt;&lt;b&gt;Hint:&lt;/strong&gt; &lt;em&gt;Try to remember where &lt;strong&gt;Middle C&lt;/strong&gt; is on the piano - this is the most &lt;strong&gt;important note&lt;/strong&gt;!&lt;/em&gt;&lt;/p&gt;&lt;/font&gt;&lt;/body&gt;</source>
<translation>&lt;body bgcolor=&quot;#FFFFC0&quot;&gt;&lt;p&gt;&lt;strong&gt;Почнімо з середнього до&lt;/strong&gt; надзвичайно простий твір. Просто знайдіть &lt;strong&gt;середнє до&lt;/strong&gt; на піаніно, а потім зіграйте цю ноту чотири рази за допомогою вашого &lt;strong&gt;великого пальця&lt;/strong&gt; на &lt;strong&gt;правій руці&lt;/strong&gt;. У перша половині твору &lt;strong&gt;середнє до&lt;/strong&gt; грають у &lt;strong&gt;скрипковому ключі&lt;/strong&gt;, а у другій половині ту саму ноту &lt;strong&gt;середнього до&lt;/strong&gt; грають у &lt;strong&gt;басовому ключі&lt;/strong&gt;. Цю ноту слід грати &lt;strong&gt;великим пальцем&lt;/strong&gt; вашої &lt;strong&gt;лівої руки&lt;/strong&gt;.&lt;/p&gt;
&lt;font color=&quot;#ff0000&quot;&gt;&lt;p&gt;&lt;b&gt;Hint:&lt;/strong&gt; &lt;em&gt;Try to remember where &lt;strong&gt;Middle C&lt;/strong&gt; is on the piano -- this is the most &lt;strong&gt;important note&lt;/strong&gt;!&lt;/em&gt;&lt;/p&gt;&lt;/font&gt;&lt;/body&gt;</translation>
&lt;font color=&quot;#ff0000&quot;&gt;&lt;p&gt;&lt;b&gt;Підказка:&lt;/strong&gt; &lt;em&gt;Постарайтеся згадати, де знаходиться &lt;strong&gt;середньої до&lt;/strong&gt; на піаніно -- це &lt;strong&gt;найважливіша нота&lt;/strong&gt;!&lt;/em&gt;&lt;/p&gt;&lt;/font&gt;&lt;/body&gt;</translation>
</message>
<message>
<source>&lt;body bgcolor=&quot;#FFFFC0&quot;&gt;&lt;p&gt;The &lt;strong&gt;Chord of C Major&lt;/strong&gt; piece, introduces you to the chord of &lt;strong&gt;C Major&lt;/strong&gt; which has three notes &lt;strong&gt;Middle C&lt;/strong&gt;, &lt;strong&gt;E&lt;/strong&gt; and &lt;strong&gt;G&lt;/strong&gt;.&lt;/p&gt;