Sedsongs: Difference between revisions
No edit summary |
No edit summary |
||
Line 24: | Line 24: | ||
} | } | ||
} | } | ||
</source> | |||
== Shell == | |||
<source lang="sh"> | |||
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 | |||
</source> | </source> |
Revision as of 16:10, 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