Sedsongs: Difference between revisions
Fako Berkers (talk | contribs) (→sed) |
|||
Line 55: | Line 55: | ||
<source lang="bash"> | <source lang="bash"> | ||
s/[^0123456789]//g | s/[^0123456789]//g | ||
s/1/c/g | s/1/c /g | ||
s/2/c+/g | s/2/c+ /g | ||
s/3/d/g | s/3/d /g | ||
s/4/d+/g | s/4/d+ /g | ||
s/5/e/g | s/5/e /g | ||
s/6/f+/g | s/6/f+ /g | ||
s/7/g/g | s/7/g /g | ||
s/8/g+/g | s/8/g+ /g | ||
s/9/a/g | s/9/a /g | ||
s/0/a+/g | s/0/a+ /g | ||
</source> | </source> | ||
Revision as of 16:33, 8 October 2010
A MIDI File
Midge
A Simple song template:
@head {
$time_sig 4/4
$tempo 120
}
@body {
@channel 1 {
$patch 1
$octave 4
$length 16
# notes here!
c e g
}
}
Shell
cat <<EOF
@head {
\$time_sig 4/4
\$tempo 120
}
@body {
@channel 1 {
\$patch 1
\$octave 4
\$length 16
# notes here!
EOF
cat
cat <<EOF
}
}
EOF
sed
s/[^0123456789]//g
s/1/c /g
s/2/c+ /g
s/3/d /g
s/4/d+ /g
s/5/e /g
s/6/f+ /g
s/7/g /g
s/8/g+ /g
s/9/a /g
s/0/a+ /g
pipeline
date | sed -f digits.sed | bash wrap.sh | midge -o sed.mid
timidity sed.mid