Skip to content

Commit

Permalink
Adding the initial version 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 b5e649b commit 26d0363
Show file tree
Hide file tree
Showing 2 changed files with 56 additions and 0 deletions.
5 changes: 5 additions & 0 deletions sounds/make
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@
# Copyright 2024 Michael Pozhidaev <[email protected]>
# The LUWRAIN Project, GPL v.3

./startup.sh
mv startup.wav _startup.wav
sox -D _startup.wav startup.wav gain -10


./announce-popup.sh
mv announce-popup.wav _announce-popup.wav
sox -D _announce-popup.wav announce-popup.wav gain -22
Expand Down
51 changes: 51 additions & 0 deletions sounds/startup.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
#!/bin/bash -e
# Copyright 2024 Michael Pozhidaev <[email protected]>
# The LUWRAIN Project, GPL v.3
# Ges major


NOTE=30
DRUM_VOL=-3
DRUM_DELAY=0.0
HARM_DELAY=0.12
HARM_VOL=-5
BASS=10

cat <<EOF | csvmidi > drum.midi
0, 0, Header, 1, 2, 480
1, 0, Start_track
1, 0, Title_t, "Sound icon"
1, 0, Text_t, "LUWRAIN sound icon"
1, 0, Copyright_t, "The LUWRAIN Project"
1, 0, Time_signature, 4, 2, 24, 8
1, 0, Tempo, 500000
1, 0, End_track
2, 0, Start_track
2, 0, Instrument_name_t, "MIDI instrument"
2, 0, Program_c, 1, 118
2, 0, Note_on_c, 1, $NOTE, 120
2, 300, Note_off_c, 1, $NOTE, 0
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, 300, Note_off_c, 1, $NOTE, 0
3, 300, End_track
0, 0, End_of_file
EOF

timidity -Ow drum.midi
mv drum.wav _drum1.wav
sox --norm=$DRUM_VOL _drum1.wav -r 48000 -c 1 _drum2.wav pad $DRUM_DELAY 5 bass $BASS
sox _drum2.wav -c 2 _drum.wav reverb 85 50 100 100 50 5

sox -D -n -r 48000 -c 2 -b 16 _harm.wav \
synth 10 sin %1 sin %4 sin %9 \
fade t 0.4 2.0 1.5 \
pad $HARM_DELAY 3 \
reverb 100 gain $HARM_VOL

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

0 comments on commit 26d0363

Please sign in to comment.