Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: Document File Format Features and Compatibility #108

Merged
merged 6 commits into from
Feb 13, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 48 additions & 0 deletions docs/alphatex/lyrics.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
---
title: Lyrics
---

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.
The syllables of the procided lyrics are spread automatically across the beats of the track. Syllables are separated with spaces.
If multiple words/syllables should stay on the same beat the space can be replaced with a `+`.
Comments which should not be displayed can be put `[into brackets]`.

To add lyrics to a track use the `\lyrics "Text"` or `\lyrics StartBar "Text"` metadata tag on track/staff level.

Here some samples:

import { AlphaTexSample } from '@site/src/components/AlphaTexSample';

<AlphaTexSample>{`
\\title "With Lyrics"
\\instrument piano
.
\\lyrics "Do Re Mi Fa So La Ti"
C4 D4 E4 F4 | G4 A4 B4 r
`}</AlphaTexSample>

<AlphaTexSample>{`
\\title "Combine Syllables (and empty beats)"
\\instrument piano
.
\\lyrics "Do+Do Mi+Mi"
C4 C4 E4 E4
`}</AlphaTexSample>

<AlphaTexSample>{`
\\title "Start Later"
\\instrument piano
.
\\lyrics 2 "Do Re Mi Fa So La Ti"
r r r r | r r r r |
C4 D4 E4 F4 | G4 A4 B4 r
`}</AlphaTexSample>

<AlphaTexSample>{`
\\title "Comment"
\\subtitle "Useful when loading lyrics from a different source"
\\instrument piano
.
\\lyrics "[This is a comment]Do Re Mi Fa"
C4 D4 E4 F4
`}</AlphaTexSample>
440 changes: 440 additions & 0 deletions docs/formats/capella.mdx

Large diffs are not rendered by default.

537 changes: 537 additions & 0 deletions docs/formats/guitar-pro-3-5.mdx

Large diffs are not rendered by default.

640 changes: 640 additions & 0 deletions docs/formats/guitar-pro-6.mdx

Large diffs are not rendered by default.

691 changes: 691 additions & 0 deletions docs/formats/guitar-pro-7.mdx

Large diffs are not rendered by default.

727 changes: 727 additions & 0 deletions docs/formats/guitar-pro-8.mdx

Large diffs are not rendered by default.

1,278 changes: 1,278 additions & 0 deletions docs/formats/musicxml.mdx

Large diffs are not rendered by default.

41 changes: 41 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
"prism-react-renderer": "^2.3.1",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"react-tooltip": "^5.28.0",
"webpack": "^5.94.0"
},
"devDependencies": {
Expand Down
53 changes: 40 additions & 13 deletions sidebars.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { SidebarsConfig } from '@docusaurus/plugin-content-docs';
import type { SidebarsConfig } from "@docusaurus/plugin-content-docs";

const sidebars: SidebarsConfig = {
docs: {
Expand Down Expand Up @@ -144,20 +144,47 @@ const sidebars: SidebarsConfig = {
"alphatex/beat-effects",
"alphatex/note-effects",
"alphatex/percussion",
"alphatex/lyrics",
],
},
showcase: {
Showcase: [
"showcase/introduction",
"showcase/general",
"showcase/layouts",
"showcase/music-notation",
"showcase/guitar-tabs",
"showcase/special-tracks",
"showcase/special-notes",
"showcase/effects",
],
},
showcase: [
{
type: "category",
label: "Showcase",
link: {
type: "doc",
id: "showcase/introduction"
},
items: [
"showcase/introduction",
"showcase/general",
"showcase/layouts",
"showcase/music-notation",
"showcase/guitar-tabs",
"showcase/special-tracks",
"showcase/special-notes",
"showcase/effects",
],
},
{
type: "category",
label: "Formats",
link: {
type: "generated-index",
title: "Introduction",
description:
"These pages provide an insight on what the input file formats alphaTab supports and the compatibility for rendering and expressing the same in alphaTex.",
},
items: [
"formats/guitar-pro-8",
"formats/guitar-pro-7",
"formats/guitar-pro-6",
"formats/guitar-pro-3-5",
"formats/musicxml",
"formats/capella",
],
},
],
};

module.exports = sidebars;
Loading