title: Code Golf: Musical Notes
body: <h2>The challenge</h2>
  
  <p>The shortest code by character count, that will output musical notation based on user input. </p>
  
  <p>Input will be composed of a series of letters and numbers - letters will represent the name of the note and the number will represent the length of the note. A note is made of 4 vertical columns. The note's head will be a capital <code>O</code>, stem, if present will be 3 lines tall, made from the pipe character <code>|</code>, and the flag(s) will be made from backward slash <code>\</code>.</p>
  
  <p>Valid note lengths are none, 1/4 of a note, 1/8 of a note, 1/16 of a note and 1/32 of a note.</p>
  
  <pre><code>       |    |\    |\    |\
         |    |     |\    |\
         |    |     |     |\
   O    O    O     O     O
   1   1/4  1/8  1/16   1/32
  </code></pre>
  
  <p>Notes are places on the Staff, according to their note name:</p>
  
  <pre><code>  ----
  
  D ----
  C     
  B ----
  A     
  G ----
  F     
  E ----
  </code></pre>
  
  <p>All input can be assumed to be valid and without errors - Each note separated with a white space on a single line, with at least one valid note.</p>
  
  <h2>Test cases</h2>
  
  <pre><code>Input:
      B B/4 B/8 B/16 B/32 G/4 D/8 C/16 D B/16
  Output:
                                |\               
      --------------------------|---|\--------
            |   |\  |\  |\      |   |\      |\
      ------|---|---|\--|\-----O----|--O----|\
            |   |   |   |\  |      O        | 
      -O---O---O---O---O----|--------------O--
                            |                 
      ---------------------O------------------
  
      ----------------------------------------
  </code></pre>
  
  <hr>
  
  <pre><code>Input:
      E/4 F/8 G/16 A/32 E/4 F/8 G/16 A/32 
  Output:
  
      --------------------------------
  
      --------------|\--------------|\
                |\  |\          |\  |\ 
      ------|\--|\--|\------|\--|\--|\
        |   |   |  O    |   |   |  O  
      --|---|--O--------|---|--O------
        |  O            |  O          
      -O---------------O--------------
  </code></pre>
  
  <hr>
  
  <pre><code>Input:
      C E/32 B/8 A/4 B F/32 B C/16
  Output:
  
      ------------------------------|\
                |\                  |\
      ----------|---|---------------|-
       O        |   |              O   
      ---------O----|--O----|\-O------
            |\     O        |\        
      ------|\--------------|\--------
            |\             O           
      -----O--------------------------
  </code></pre>
  
  <p>Code count includes input/output (i.e full program).</p>