문제

기타 숟가락을 디스플레이하기 위해 빠른 프런트 엔드를 쓰고 있습니다.프런트 엔드는 플래시에 있지만 탭을 인간이 읽을 수있는 형식으로 저장하고 싶습니다.누구나 이미 존재하는 것을 알고 있습니까?그것에 대해 어떻게 가는지에 대한 제안은 무엇입니까?일부 아이디어가 일부 StackOverflow 포스트를 읽는 것은 엄격한 ASCII 탭 형식을 사용하는 것이 었습니다.

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---
.

이점이 있습니다.나는 구조에서 많은 정보를 얻을 수 있습니다 (얼마나 많은 문자열, 튜닝, 주석의 상대적인 배치)이지만 조금 자세한 것입니다.나는 '와이어를 통해 보낼 때 꽤 잘 압박 될 것입니다.

기타 탭을 설명하기위한 기존 데이터 형식을 알고있는 경우 볼 수 있습니다.

편집 :

이 형식은 나에게 90 %이며 나 자신이 아닌 다른 사람이 본 적이 없을 수도 있습니다.Flash 프런트 엔드의 그래픽으로 표시되는 탭 파일을 쉽게 작성할 수 있으며 편집기 프런트 엔드를 작성하고 싶지 않아

도움이 되었습니까?

해결책

ASCII 탭 형식을 확인하십시오.형식에 대한 훌륭한 설명은 다음과 같습니다.

http://www.howtoreadguitartabs.net/

기타 탭 형식 설명 (HOWTOREADGUITARTABS.NET에 의한)

다른 팁

ASCII 수출은 훌륭한 기능이지만 ASCII를 내부 데이터 형식으로 사용하는 것이 좋습니다.예를 들어, 기간은 익스프레스가 매우 어렵습니다.또한 사용자는 앱 외부에서 생성 된 ASCII 파일을로드하도록 유혹되므로 실패 할 가능성이 있습니다.

요약 할 수 있도록, 기존 형식을 재사용하거나 실현 가능하지 않은 경우 자신만의 자신을 발명하는 것이 좋습니다.XML을 사용하려고 시도 할 수 있습니다.

편집 : DGUITAR 옆에있는, 저는 기타 PRO 파일을 지원하는 턱시수 및 kguitar를 알고 있습니다.소식통을 들여다 보거나 파일 형식에 대해 작성자에게 요청할 수 있습니다.또한 오픈 소스 PowerTab-to-ASCII 변환기가 있습니다.

toxguitar 에서 지원되는 파일 형식을 지원합니다.

"NoFollow noreferrer"> Tuxguitar 기타 탭을 읽고 쓰고 재생하기위한 오픈 소스 Multiplatform 소프트웨어입니다.

언급 된 기타 프로 powertab 형식을 지원하며, 자체 toxguitar (.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--|-----||
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top