Skip to content

Commit

Permalink
New improving of the startup sound
Browse files Browse the repository at this point in the history
  • Loading branch information
marigostra committed Feb 27, 2024
1 parent fad3319 commit 146a262
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions sounds/startup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ DRUM_VOL=-2
DRUM_DELAY=0.0
HARM_DELAY=0.12
HARM_VOL=-10
BASS=5
BASS=10

NOTE=30

Expand All @@ -18,7 +18,7 @@ NOTE1_VOL=-20
NOTE2_VOL=-25

cat <<EOF | csvmidi > drum.midi
0, 0, Header, 1, 2, 480
0, 0, Header, 1, 4, 480
1, 0, Start_track
1, 0, Title_t, "Sound icon"
1, 0, Text_t, "LUWRAIN sound icon"
Expand All @@ -34,10 +34,16 @@ cat <<EOF | csvmidi > drum.midi
2, 300, End_track
3, 0, Start_track
3, 0, Instrument_name_t, "MIDI instrument"
3, 0, Program_c, 1, 115
3, 0, Note_on_c, 1, $NOTE, 120
3, 0, Program_c, 1, 117
3, 0, Note_on_c, 1, $NOTE, 60
3, 300, Note_off_c, 1, $NOTE, 0
3, 300, End_track
4, 0, Start_track
4, 0, Instrument_name_t, "MIDI instrument"
4, 0, Program_c, 1, 55
4, 0, Note_on_c, 1, 66, 40
4, 300, Note_off_c, 1, 66, 0
4, 300, End_track
0, 0, End_of_file
EOF

Expand Down Expand Up @@ -66,5 +72,5 @@ sox -D --norm=$NOTE2_VOL _note2-1.wav -r 48000 _note2.wav \
reverb 100 50 100 100 0 10

sox -D _drum.wav _harm.wav _note1.wav _note2.wav -m _startup.wav
sox -D --norm=-0.1 _startup.wav -r 44100 startup.wav fade q 0 3 3
sox -D --norm=-0.1 _startup.wav -r 44100 startup.wav fade q 0 4 4
rm -f *.midi _*.wav

0 comments on commit 146a262

Please sign in to comment.