User Tools

Site Tools


music:abcnotation

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

music:abcnotation [2007/12/05 16:59]
Chris Freyer
music:abcnotation [2009/05/04 14:22] (current)
Chris Freyer replacing <draw> plugin with <graphviz> for diagram
Line 1: Line 1:
 +~~NOCACHE~~
 +
 +
 +
 ====== ABC Notation ====== ====== ABC Notation ======
 I learned about [[http://www.walshaw.plus.com/abc/|ABC Notation]] indirectly.  I was looking for backing tracks to accompany me while I practice the guitar.  Its fairly tedious to find exactly what I need (right speed, right key, etc...), so I thought:  why not program my own tracks.  MIDI seemed like the obvious starting point...everything supports it.  But it turns out to be a complicated thing to program.  Lots of effort would be needed, and the output isn't very human-friendly.   I learned about [[http://www.walshaw.plus.com/abc/|ABC Notation]] indirectly.  I was looking for backing tracks to accompany me while I practice the guitar.  Its fairly tedious to find exactly what I need (right speed, right key, etc...), so I thought:  why not program my own tracks.  MIDI seemed like the obvious starting point...everything supports it.  But it turns out to be a complicated thing to program.  Lots of effort would be needed, and the output isn't very human-friendly.  
Line 14: Line 18:
   * there is an [[http://abcwiki.selfthinker.org/|abc plugin]] for my wiki!!   * there is an [[http://abcwiki.selfthinker.org/|abc plugin]] for my wiki!!
  
-Very nice!  That's the kind of leverage I was looking for.  The idea is starting to take shape now...  Write a small program to create ABC files and let abcMIDI and the abc plugin do the rest.  So I can have sheet music in standard notation on my website, and midi files available for download.  Cool!+Very nice!  That's the kind of leverage I was looking for.  The idea is starting to take shape now...  Use an external editor to create ABC files, then use tools to create various forms of output.  Something like this: 
 + 
 +<graphviz> 
 +digraph{ 
 +rankdir = LR; 
 +node [shape=box]; 
 + 
 +External_Editor [style=filled, fillcolor = limegreen]; 
 +ABC_Text_File [shape=note, style=filled, fillcolor = khaki]; 
 +WikiPlugin [style=filled, fillcolor = limegreen]; 
 +abc2midi [style=filled, fillcolor = limegreen]; 
 +abc2pdf [style=filled, fillcolor = limegreen]; 
 +other_processor [style=filled, fillcolor = limegreen]; 
 + 
 +HTML [shape=note, style=filled, fillcolor = khaki]; 
 +MIDI [shape=note, style=filled, fillcolor = khaki]; 
 +PDF  [shape=note, style=filled, fillcolor = khaki]; 
 +other_output [shape=note, style=filled, fillcolor = khaki]; 
 + 
 +External_Editor->ABC_Text_File; 
 +ABC_Text_File->WikiPlugin->HTML; 
 +ABC_Text_File->abc2midi->MIDI; 
 +ABC_Text_File->abc2pdf->PDF; 
 +ABC_Text_File->other_processor->other_output; 
 +
 +</graphviz> 
 + 
 +Now I can have sheet music on my website, with PDF and other output formats available for download.  Cool! 
  
  
Line 21: Line 53:
  
 ===== First Attempt ===== ===== First Attempt =====
 +My first attempt at using the ABC tools was on my home Linux machine.  I was able to produce all the assets as expected.  Not bad for a 15-minute exercise!  I uploaded the assets and put them here just for reference.  Now I need to try the same thing on my hosting service.  I'm certain there will be issues.
 +
 +  * {{music:maryhadalittlelamb.abc|ABC}} - the ABC file
 +  * {{music:maryhadalittlelamb.pdf|PDF}} - the PDF file
 +  * {{music:maryhadalittlelamb1.mid|MID}} - the MIDI file((Note:  if you can't play the midi file, it could be that you have RealPlayer handling your MIDI files, which it doesn't like to do.  Try QuickTime or another player instead.))
 +
 +
 +
 +
 +
 +
  
-My first attempt at using the ABC tools ended up like this.  Not bad for a 15-minute exercise. 
-^File^Comment^ 
-|{{music:maryhadalittlelamb.abc|ABC}}  |the ABC file| 
-|{{music:maryhadalittlelamb.pdf|PDF}}  |the PDF file  | 
-|{{music:maryhadalittlelamb1.mid|MID}}| the MIDI file| 
-(Note:  if you can't play the midi file, it could be that you have RealPlayer handling your MIDI files, which it doesn't like to do.  Try QuickTime or another player instead.) 
  
  
Line 33: Line 70:
  
 ===== Second Attempt ===== ===== Second Attempt =====
-This is my second attempt, done on my hosted website instead of my home server.  After installing the [[http://wiki.splitbrain.org/plugin:abc|ABC Plugin]] for Dokuwiki, I saw this message in my wiki: +This is my second attempt, done on my hosted website instead of my home server.  It took a lot of effort to make this work properly on my hosting account.  A full description of what I had to do is [[MakingABCPluginWork|here]]. 
-  (abc2ps) is not executable. + 
-  (im_convertis not executable. +I have to say thanks to the support staff at [[http://www.asmallorange.com|A Small Orange]] for helping to get this working  Tim G, Jayson G, Phil Z, Jason H, Josh S, and Victor T got the job done (at different times of day, of course).  I don't think most hosting services would go that far.  I'm happy to be with them
-  (abc2midi) is not executable. + 
-  If you do not want to install it, you can change the displayType to '0' ('image only')+[[music:abc_example|Here is an example]] of the ABC Plugin in action. 
-These errors were caused by binaries not being executable by my user ID.  So I put in a support request to my hosting service (work still in progress).+ 
 + 
 + 
 + 
 + 
  
-Below is the output of the ABCPlugin.  You will see a small piece of sheet music if everything works right. +===== Music Collection ===== 
-<abc> +  * [[William Marshall's Scottish Melodies]] 
-X:42 +  * [[http://www.blanksheetmusic.net/|Blank Sheet Music]]
-T:Test +
-M:4/+
-K:C +
-"C" C2 D2 E2 G2 |"C" c8 |] +
-w:This is just a test +
-</abc>+
/home/cfreyer/public_html/data/attic/music/abcnotation.1196891999.txt.gz · Last modified: 2007/12/05 16:59 by Chris Freyer