Skip to content

Commit 87008f2

Browse files
authored
docs: Document File Format Features and Compatibility (#108)
2 parents c6b7c3e + d4e1ea7 commit 87008f2

File tree

14 files changed

+4852
-15
lines changed

14 files changed

+4852
-15
lines changed

docs/alphatex/lyrics.mdx

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
---
2+
title: Lyrics
3+
---
4+
5+
The lyrics system of alphaTab is borrowed from Guitar Pro. For every track multiple "lines" of lyrics can be defined which can either start at the beginning or at a later bar.
6+
The syllables of the procided lyrics are spread automatically across the beats of the track. Syllables are separated with spaces.
7+
If multiple words/syllables should stay on the same beat the space can be replaced with a `+`.
8+
Comments which should not be displayed can be put `[into brackets]`.
9+
10+
To add lyrics to a track use the `\lyrics "Text"` or `\lyrics StartBar "Text"` metadata tag on track/staff level.
11+
12+
Here some samples:
13+
14+
import { AlphaTexSample } from '@site/src/components/AlphaTexSample';
15+
16+
<AlphaTexSample>{`
17+
\\title "With Lyrics"
18+
\\instrument piano
19+
.
20+
\\lyrics "Do Re Mi Fa So La Ti"
21+
C4 D4 E4 F4 | G4 A4 B4 r
22+
`}</AlphaTexSample>
23+
24+
<AlphaTexSample>{`
25+
\\title "Combine Syllables (and empty beats)"
26+
\\instrument piano
27+
.
28+
\\lyrics "Do+Do Mi+Mi"
29+
C4 C4 E4 E4
30+
`}</AlphaTexSample>
31+
32+
<AlphaTexSample>{`
33+
\\title "Start Later"
34+
\\instrument piano
35+
.
36+
\\lyrics 2 "Do Re Mi Fa So La Ti"
37+
r r r r | r r r r |
38+
C4 D4 E4 F4 | G4 A4 B4 r
39+
`}</AlphaTexSample>
40+
41+
<AlphaTexSample>{`
42+
\\title "Comment"
43+
\\subtitle "Useful when loading lyrics from a different source"
44+
\\instrument piano
45+
.
46+
\\lyrics "[This is a comment]Do Re Mi Fa"
47+
C4 D4 E4 F4
48+
`}</AlphaTexSample>

docs/formats/capella.mdx

Lines changed: 440 additions & 0 deletions
Large diffs are not rendered by default.

docs/formats/guitar-pro-3-5.mdx

Lines changed: 537 additions & 0 deletions
Large diffs are not rendered by default.

docs/formats/guitar-pro-6.mdx

Lines changed: 640 additions & 0 deletions
Large diffs are not rendered by default.

docs/formats/guitar-pro-7.mdx

Lines changed: 691 additions & 0 deletions
Large diffs are not rendered by default.

docs/formats/guitar-pro-8.mdx

Lines changed: 727 additions & 0 deletions
Large diffs are not rendered by default.

docs/formats/musicxml.mdx

Lines changed: 1278 additions & 0 deletions
Large diffs are not rendered by default.

package-lock.json

Lines changed: 41 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
"prism-react-renderer": "^2.3.1",
3030
"react": "^18.3.1",
3131
"react-dom": "^18.3.1",
32+
"react-tooltip": "^5.28.0",
3233
"webpack": "^5.94.0"
3334
},
3435
"devDependencies": {

sidebars.ts

Lines changed: 40 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { SidebarsConfig } from '@docusaurus/plugin-content-docs';
1+
import type { SidebarsConfig } from "@docusaurus/plugin-content-docs";
22

33
const sidebars: SidebarsConfig = {
44
docs: {
@@ -144,20 +144,47 @@ const sidebars: SidebarsConfig = {
144144
"alphatex/beat-effects",
145145
"alphatex/note-effects",
146146
"alphatex/percussion",
147+
"alphatex/lyrics",
147148
],
148149
},
149-
showcase: {
150-
Showcase: [
151-
"showcase/introduction",
152-
"showcase/general",
153-
"showcase/layouts",
154-
"showcase/music-notation",
155-
"showcase/guitar-tabs",
156-
"showcase/special-tracks",
157-
"showcase/special-notes",
158-
"showcase/effects",
159-
],
160-
},
150+
showcase: [
151+
{
152+
type: "category",
153+
label: "Showcase",
154+
link: {
155+
type: "doc",
156+
id: "showcase/introduction"
157+
},
158+
items: [
159+
"showcase/introduction",
160+
"showcase/general",
161+
"showcase/layouts",
162+
"showcase/music-notation",
163+
"showcase/guitar-tabs",
164+
"showcase/special-tracks",
165+
"showcase/special-notes",
166+
"showcase/effects",
167+
],
168+
},
169+
{
170+
type: "category",
171+
label: "Formats",
172+
link: {
173+
type: "generated-index",
174+
title: "Introduction",
175+
description:
176+
"These pages provide an insight on what the input file formats alphaTab supports and the compatibility for rendering and expressing the same in alphaTex.",
177+
},
178+
items: [
179+
"formats/guitar-pro-8",
180+
"formats/guitar-pro-7",
181+
"formats/guitar-pro-6",
182+
"formats/guitar-pro-3-5",
183+
"formats/musicxml",
184+
"formats/capella",
185+
],
186+
},
187+
],
161188
};
162189

163190
module.exports = sidebars;

0 commit comments

Comments
 (0)