Pregunta

Estoy escribiendo un extremo delantero rápido para mostrar la tablatura de guitarra.El extremo delantero está en flash, pero quiero almacenar la pestaña en un formato legible por humanos.¿Alguien sabe de algo que ya existe?¿Alguna sugerencia sobre cómo hacerlo?Una idea que obtuve de leer algunos puestos de StackOverflow fue usar un formato de pestaña ASCII estricto, por lo que:

e||-1------3--------------0--|----2-------0---
B||--1-----3------------1----|----3-------0---
G||---2----0----------0------|----2-------1---
D||----3---0--------2--------|----0-------2---
A||----3---2------3----------|------------2---
E||----1---3----3------------|------------0---

Tiene ventajas.Puedo obtener mucha información de la estructura (cuántas cadenas, sus afinaciones, la colocación relativa de notas), pero es un poco verbosa.Supongo que los "" se comprimirán bastante bien cuando se envíen sobre el cable.

Si alguien sabe de un formato de datos existente para describir la pestaña Guitarra, también veré un look.

Editar:

Debería tener en cuenta que este formato es del 90% y puede haber sido visto por otra persona que no sea yo.Quiero una forma fácil de escribir archivos de pestañas que se mostrarán eventualmente como gráficos en un Flash-Front-End y no quiero tener que escribir un Frente del Editor.

¿Fue útil?

Solución

Echa un vistazo al ASCII tab formato.También es una gran descripción del formato aquí:

http://www.howtoreadguitartabs.net/

 Formato de la pestaña de la guitarra Descripción (por HowToreadGuitArtArts.net)

Otros consejos

La exportación ASCII sería una gran característica, pero usar ASCII como formato de datos interno no es una buena idea.Por ejemplo, las duraciones de nota serían extremadamente difíciles de expresar (¡Hou almacenaría 32nds o incluso los años 16, sin mencionar los trillizos ...), lo que analiza esos archivos serían extremadamente difíciles.Además, los usuarios se sentirían tentados a cargar archivos ASCII creados fuera de su aplicación, lo que probablemente fallará.

Para resumir, recomendaría tratar de reutilizar el formato existente o inventar su propio si eso no es factible.Puede intentar usar XML para eso.

Editar: junto a Dguitar, conozco a TUXGUITAR y KGUITAR, que apoya los archivos de Guitar Pro.Puede investigar sus fuentes o solicitar a sus autores sobre los formatos de archivos.Creo que también hay un convertidor de código abierto PowerTab-to-ASCII.

Consulte Formatos de archivo compatibles en TUXGUITAR .

TUXGUITAR es un software multiplataforma de código abierto para leer, escribir y reproducir las pestañas de la guitarra.

Es compatible con el formato strong> strong> Powertab y también tiene su propio formato twuxguitar (.tg).

If you need the backend data structure to remain in human readable form I would probably stick it in a CDATA inside of XML. That could be inserted into a relational database with song/artist/title information and become searchable. Another option is to save it as zipped text files and insert links to those files in a database with the main artist info still searchable by sql.

These are not human readable:

Most common formats are Guitar Pro (proprietary) and PowerTab (freeware). DGuitar and TuxGuitar are open source viewers for Guitar Pro format. I'm sure that they have documentation for the format somewhere (at least in the code).

Advantage for using a common format would be the easiness of making tabs with those programs.

The Guitar Pro 4 format is described here http://dguitar.sourceforge.net/GP4format.html

I wrote a quick utility for displaying tab. For personal use. You can happily take the internal format I used.

I use a very simple string based format. There are three important structures.

Column, a vertical column in the output tab - all notes played simultaneously. Bar, a collection of Columns Motif, a collection of Bars

A Column looks like ':#|:#|*:#' where each * is a string number and each # is a fret number. If you are playing a chord you separate each string:fret with a '|'

A Bar looks like '[,,-,*]' where each * is a Column. A - indicates an empty column where no notes are played.

A Motif looks is just many Bars running back to back. For instance

"[1:5,-,3:7,-,3:5,-,3:7,-,-,3:5,3:7,-,1:8,-,1:5]"

    e||---------------|---------------||
    B||---------------|---------------||
    G||---------------|---------------||
    D||--7-5-7--57----|--7-5-7--57----||
    A||---------------|---------------||
    E||5-----------8-5|5-----------8-5||


"[-,-,1:3|2:2|3:0|4:0|5:3|6:3,-,-][-,-,3:0|4:2|5:3|6:2,-,-]"

   e||--3--|--2--||
   B||--3--|--3--||
   G||--0--|--2--||
   D||--0--|--0--||
   A||--2--|-----||
   E||--3--|-----||
Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top