Sedsongs: Difference between revisions

From XPUB & Lens-Based wiki
No edit summary
No edit summary
Line 28: Line 28:
== Shell ==
== Shell ==


<source lang="sh">
<source lang="bash">
cat <<EOF
cat <<EOF
@head {
@head {

Revision as of 17:11, 8 October 2010

A MIDI File

File:I.mid


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