GuitarChords扩展在哪里能下载?
时间: 2024-02-06 16:03:59 浏览: 29
GuitarChords扩展是LilyPond默认安装的一部分,所以你不需要单独下载它。如果你安装了最新版本的LilyPond,GuitarChords扩展应该自动安装并可用。
要确保GuitarChords扩展已经安装,请在LilyPond中打开一个新文件,并在文件顶部添加以下行:
```
\include "guitarChords"
```
如果LilyPond没有安装GuitarChords扩展,它将会给出一个错误提示。
如果你使用的是旧版本的LilyPond,或者你需要手动安装GuitarChords扩展,你可以从LilyPond的源代码存储库中下载它。你可以在以下网址找到源代码存储库:https://git.savannah.gnu.org/cgit/lilypond.git/
下载源代码后,你可以在`lilypond/scm/`目录中找到`guitarChords.ily`文件。将这个文件复制到你的LilyPond项目目录中,然后在LilyPond文件顶部添加以下行来引用扩展:
```
\include "guitarChords"
```
希望这可以帮助到你!
相关问题
lilypond怎么显示吉他和弦图?
要在LilyPond中显示吉他和弦图,你需要使用GuitarChords扩展。首先,在LilyPond文件的顶部添加以下行来引用扩展程序:
```
\include "guitarChords"
```
然后,在你的乐谱中,使用以下语法来显示和弦图:
```
<<
\new ChordNames {
\chordmode {
<chord1> | <chord2> | <chord3>
}
}
\new Staff {
\chordmode {
s4 | <chord1> s2. | <chord2> s2. | <chord3> s4
}
\new Voice {
\relative c'' {
% 此处是你的乐谱
}
}
>>
```
其中,`<chord1>`,`<chord2>`和`<chord3>`是你要显示的和弦名称。你可以通过在花括号中添加和弦符号来定义和弦。例如,以下代码将显示C和弦:
```
{ c4 e g }
```
注意,你需要将和弦名称放在`ChordNames`块中,将和弦符号放在`Staff`块中。你也可以在乐谱中使用和弦符号,以便在和弦图中显示正确的指法。
希望这可以帮助到你!
将吉他和弦图单独展示成一个小方块怎么做?
要将吉他和弦图单独展示成一个小方块,你可以使用LilyPond中的`\markup`命令。这个命令可以让你在乐谱中添加文本和图形注释。
以下是一个简单的示例代码,演示如何使用`\markup`命令将吉他和弦图单独展示成一个小方块:
```
\markup {
\override #'(baseline-skip . 0) % 使文本与和弦图之间的空白最小化
\on-the-fly #not % 防止LilyPond在处理时尝试调整大小
\center-column {
\line {
\column {
\tiny % 调整字体大小
Chord
\vspace #0.2 % 调整行间距
<c e g>
}
\column {
\include "guitarChords.ily" % 引用GuitarChords扩展
\with-dimensions #'(20 . 20) { \chordDiagram { <c e g> } } % 指定和弦图的大小
}
}
}
}
```
在这个示例代码中,`\markup`命令创建了一个文本和图形注释。`\center-column`命令将两个列对齐,并在第一列中显示和弦名称,第二列中显示吉他和弦图。`\include "guitarChords.ily"`命令引用了GuitarChords扩展,使我们可以使用`\chordDiagram`命令来创建和弦图。`\with-dimensions #'(20 . 20) { \chordDiagram { <c e g> } }`命令指定了和弦图的大小。
你可以将这个代码嵌入到你的LilyPond乐谱中,以显示单独的吉他和弦图方块。
相关推荐
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![7z](https://img-home.csdnimg.cn/images/20210720083312.png)
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![docx](https://img-home.csdnimg.cn/images/20210720083331.png)