TeamOfOne / guitarjs

Interactive creating, editing, playing and sharing guitar scores in the browser
https://teamofone.github.io/guitarjs/#/app/playlists/1/noname
Other
7 stars 2 forks source link

Support exporting to ASCII/unicode diagrams #35

Open waldyrious opened 8 years ago

waldyrious commented 8 years ago

ASCII (as proposed by David Potsiadlo's Fretboard):

 x  ^ ^ 
 ||||o| 
 ||o||| 
 |o|||| 
 |||||| 

Unicode (as proposed by David R. Arnold's OpenGuitar):

  C7       D       C       G   
  x   x    o     x  o o    ooo 
 ╒╤╤╤╤╕  ╒╤╤╤╤╕  ╒╤╤╤╤╕  ╒╤╤╤╤╕
 ││││1│  ││││││  ││││1│  ││││││
 ├┼┼┼┼┤  ├┼┼┼┼┤  ├┼┼┼┼┤  ├┼┼┼┼┤
 ││2│││  │││1│2  ││2│││  │1││││
 ├┼┼┼┼┤  ├┼┼┼┼┤  ├┼┼┼┼┤  ├┼┼┼┼┤
 3││4││  ││││3│  │3││││  2││││3
 ├┼┼┼┼┤  ├┼┼┼┼┤  ├┼┼┼┼┤  ├┼┼┼┼┤

Alternative, using some sort of bullets instead of finger numbers:

  C7       D       C       G   
  x   x    o     x  o o    ooo 
 ╒╤╤╤╤╕  ╒╤╤╤╤╕  ╒╤╤╤╤╕  ╒╤╤╤╤╕
 ││││•│  ││││││  ││││⧫│  ││││││
 ├┼┼┼┼┤  ├┼┼┼┼┤  ├┼┼┼┼┤  ├┼┼┼┼┤
 ││•│││  │││●│●  ││⧫│││  │◆││││
 ├┼┼┼┼┤  ├┼┼┼┼┤  ├┼┼┼┼┤  ├┼┼┼┼┤
 •││•││  ││││●│  │⧫││││  ◆││││◆
 ├┼┼┼┼┤  ├┼┼┼┼┤  ├┼┼┼┼┤  ├┼┼┼┼┤

(ideally we should be able to combine both approaches using ➊➋➌➍, but these characters break the lining up because they're slightly wider)