-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
51340bf
commit c7f0c1c
Showing
3 changed files
with
29 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
#!/bin/bash -e | ||
# Copyright 2024 Michael Pozhidaev <[email protected]> | ||
# The LUWRAIN Project, GPL v.3 | ||
# FIXME: must be E major | ||
# Des major | ||
|
||
INS=13 | ||
|
@@ -9,7 +10,7 @@ INS=13 | |
timidity -Ow melody.midi > /dev/null | ||
|
||
sox -D -n -r 44100 -b 16 -c 2 harm.wav \ | ||
synth 10 sin %-19 sin %-16 sin %-7 \ | ||
synth 10 sin %-20 sin %-16 sin %-7 \ | ||
fade t 0.4 2 1.5 gain -30 | ||
|
||
sox -D melody.wav harm.wav -m pre.wav | ||
|
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,22 @@ | ||
#!/bin/bash -e | ||
# Copyright 2024 Michael Pozhidaev <[email protected]> | ||
# The LUWRAIN Project, GPL v.3 | ||
# Des major | ||
|
||
INS=46 | ||
TEMPO=35 | ||
VOL=120 | ||
|
||
./melody.sh $INS $VOL \ | ||
65 $TEMPO 56 $TEMPO 63 $TEMPO 61 $TEMPO 75 45 77 50 85 300 | csvmidi - > melody.midi | ||
timidity -Ow melody.midi > /dev/null | ||
sox -D --norm=-0.1 melody.wav _melody2.wav fade t 0 0.3 0.3 | ||
|
||
sox -D -n -r 44100 -b 16 -c 2 _harm.wav \ | ||
synth 10 sin %-20 sin %-16 sin %-13 \ | ||
fade t 0.2 0.9 0.5 gain -20 | ||
|
||
sox -D _melody2.wav _harm.wav -m pre.wav | ||
|
||
sox -D --norm=-0.1 pre.wav main-menu.wav pad 0 2 reverb 65 | ||
rm -f _*.wav *.midi melody.wav harm.wav pre.wav |
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