3月11日是什么星座| 三净肉是什么| 唇上有痣代表什么| 什么是乙肝病毒携带者| 牛b克拉斯什么意思| 胃不好应该吃什么| 喝藿香正气水不能吃什么| 头昏是什么原因引起的| 点状钙化灶是什么意思| 鬼玺是什么| 湿气重是什么原因造成的| 人为什么要吃饭| 全血低切相对指数偏高什么意思| 咳嗽发烧是什么原因| 多梦睡眠质量不好是什么原因| 咽喉有异物感吃什么药| 梦见妹妹是什么意思| 甘之如饴什么意思| 常熟有什么好玩的地方| 检查淋巴挂什么科| 花苞裤不适合什么人穿| 过肺是什么意思| 翡翠跟玉有什么区别| 心肌缺血是什么原因| 直男是什么意思| 前列腺在什么位置| 什么养胃| 葛仙米是什么| 指奸是什么意思| 孕激素六项检查什么时候做| 紫癜挂什么科| 梦见自己拉粑粑是什么意思| 血红蛋白是指什么| 什么防晒霜效果最好| 暗语是什么意思| 什么是音序| 背上长痘痘擦什么药膏| 属虎适合佩戴什么饰品| 小便发白是什么原因| hz是什么意思| 晚上睡觉咳嗽是什么原因| 航空器是什么| 清热败火的败是什么意思| 两班倒是什么意思| 什么颜色属水| 山楂片泡水喝有什么好处| 萝卜丁口红什么牌子| 下一个台风什么时候来| 男性支原体感染什么症状| 送什么生日礼物给妈妈| zw是什么意思| 硫酸羟氯喹片是治什么病| wlp是什么意思| 乙肝前s1抗原阳性是什么意思| 喝苹果醋有什么好处和坏处| 什么是双数| 吃什么补血小板快| 来月经有异味什么原因| 蛋白粉什么时间喝最好| 头顶发热是什么原因| 那天午后我站在你家门口什么歌| 红细胞高是什么原因| 晚上吃什么菜| 脚真菌感染用什么药最好| 降调针什么时候打| fog是什么牌子| 女人梦见自己掉牙齿是什么征兆| 叶黄素有什么功效| 1963年五行属什么| prime是什么意思| 桑黄是什么| 今天什么日子老黄历| 火龙果对身体有什么好处| 空集是什么意思| 口头禅是什么意思| 哆啦a梦为什么没有耳朵| 小孩子注意力不集中是什么原因| 长乘宽乘高算的是什么| 左眼跳什么预兆| 麻疹是什么症状| 雍正叫什么名字| 1961年属什么| bb霜和粉底液有什么区别| 为什么短信验证码收不到| 睡眠不好吃什么| 体感是什么意思| 一直放屁什么原因| 覆盆子有什么作用| mj是什么意思| 感染梅毒有什么症状| 不由自主的摇头是什么病| 人为什么会缺钾| cd是什么牌子| 桉字五行属什么| 空调综合征有什么症状| 胃袋是什么| 应无所住而生其心什么意思| 奔走相告是什么意思| 王晶为什么不娶邱淑贞| 冬瓜吃了有什么好处| 真命天子是什么生肖| 血管明显是什么原因| 粉色分泌物是什么原因| 为什么胸一碰就疼| 什么是拘役| 脑出血什么症状| 美特斯邦威是什么档次| 也许是什么意思| 汗多是什么原因| 孩子晚上睡觉磨牙是什么原因| 白羊座上升星座是什么| 饮片是什么意思| 双性恋是什么意思| 骨加客读什么| 数字2代表什么意思| 济公叫什么名字| 1995年属什么生肖| 什么样的田野| 稠的反义词是什么| 1007是什么星座| 金与什么相生相克| 入园体检都检查什么| 前列腺炎吃什么药最有效| 绿豆什么时候收获| 鼻子上长脓包型痘痘是什么原因| 小孩肚子疼吃什么药好| 吃什么可以增强抵抗力和免疫力| 二大爷是什么意思| 农历五月二十四是什么星座| vogue什么意思| 用盐水漱口有什么好处| 灭活是什么意思| 开除党籍有什么影响| 形影不离是什么意思| 女生左手无名指戴戒指什么意思| 林可霉素主治什么病| 9.11是什么星座| 秋天的落叶像什么| 州字五行属什么| 陈惠敏和陈慧琳什么关系| 覆盆子有什么功效| 四月份什么星座| lgg是什么意思| 去香港需要办理什么证件| 帕罗西汀是什么药| 粉瘤是什么| 男人左手断掌是什么命| 恩客是什么意思| 生物公司是做什么的| 韩国的思密达是什么意思| 氯雷他定片治什么病| 今年80岁属什么生肖| 什么叫生化流产| 肛门溃烂用什么药膏| 冬至是什么时候| 红薯什么时候传入中国| 洋葱配什么菜炒好吃| 血压是什么意思| 洗面奶是什么意思| 调理月经吃什么药最好| 麦芯粉是什么面粉| 东北冻梨是什么梨| 杀鸡取卵是什么生肖| 老公生日送什么礼物好| psy是什么意思| 吃鸡蛋有什么好处| 斯密达什么意思| 什么都不需要| 头孢和阿莫西林有什么区别| 什么的小莲蓬| 8月15日什么星座| 晚上看见黄鼠狼有什么预兆| 子午是什么时间| 脖子痒是什么原因| 貔貅是什么生肖| 练深蹲有什么好处| 一根筋是什么意思| 血小板是什么| 95年是什么年| 梦见飞机是什么意思| 北加田加共是什么字| 6月14号什么星座| 3月1号是什么星座| 心电图能检查出什么| 两眼中间的位置叫什么| 五福是什么| 肾小球滤过率偏高说明什么| 屁股上有痣代表什么| 吕布为什么要杀董卓| 什么李子品种最好吃| 慢性肠炎吃什么药| cr是什么| 女命带驿马是什么意思| 粥配什么菜最好吃| 乙肝前s1抗原阳性是什么意思| 老九门2什么时候上映| 绿色加蓝色是什么颜色| 钼靶是什么检查| 普瑞巴林胶囊治什么病| 9.6什么星座| 无济于事的意思是什么| 喝什么排湿气| 生不如死是什么生肖| 一什么颜色| 宫颈纳囊多发是什么意思| 碘是什么东西| 玄乎是什么意思| 皮肤发黄什么原因| 云雾茶是什么茶| 什么叫pc| 正县级是什么级别| 孕妇吃海参对胎儿有什么好处| 定海神针是什么意思| 空气炸锅什么牌子好| 大校军衔相当于什么官| 58年属什么今年多大| 前列腺是什么意思| 嘴边起水泡是什么原因| igc是什么意思| 流鼻血是什么原因| 紧急避孕药对身体有什么伤害| 半元音是什么意思| 上坟可以带什么水果| 便便是绿色的是什么原因| cg是什么| 荨麻疹有什么忌口| 梦见被鱼咬是什么意思| 三月初什么星座| 黄褐斑是什么引起的| bp是什么职位| 凌字五行属什么| 一什么金光| 郭富城属什么生肖| 汗毛重是什么原因| 芒果不能跟什么一起吃| 莲子和什么搭配最好| 晚上喝蜂蜜水有什么好处| 流产有什么症状或感觉| 77代表什么意思| 为什么不呢| AD是什么意思啊| 眼压高有什么症状| 小便无力是什么原因| 痱子是什么样的| 什么水果低糖| 5月7日什么星座| 热锅上的蚂蚁是什么意思| 女性尿里带血是什么原因| 什么是直径| 观音得道日是什么时候| 10月30日什么星座| 拉痢疾是什么症状| 喉结大是什么原因| 电视剧上星是什么意思| 身份证上的数字是什么字体| fed是什么意思| 羊肉炖什么好吃| 甘少一横读什么| 小狗发烧吃什么药| 脾与什么相表里| 骨折吃什么恢复快| 血小板平均体积偏高是什么意思| 血尿是什么颜色的| 扁桃体结石有什么危害| 百度Jump to content

支付宝小程序或于下周正式发布 将与微信刚正面!

From Wikisource
Sheet music
百度 《通知》明确了2018年普通高校招生工作的六项重点任务。

Shortcut:
H:SM

The Score extension is now deployed on Wikisource! It renders musical scores from notation in LilyPond and ABC format, and can generate a preview as a MIDI or an Ogg Vorbis audio file.

Overview

[edit]

The Score extension renders musical notation and optionally generates audio and MIDI previews.

Here's a mindlessly simple LilyPond input file, using syntax for LilyPond 2.4.:

<score sound="1">{ a b c d }</score>

When run through LilyPond, it renders the musical notation, e.g. as PostScript, or on a wiki page using the Score extension:

{ a b c d }

The generated MIDI files leave out many expressive effects, making them unsuitable to demonstrate nuances of music (notation).

A more complicated piece, again written in LilyPond notation, looks like this:

<score sound="1">
	 \relative c' { 
		e16-.->a(b gis)a-.->c(d b)c-.->e(f dis)e-.->a(b a)
		gis(b e)e,(gis b)b,(e gis)gis,(b e)e,(gis? b e)
	}
</score>

and it outputs as this:


	 \relative c' { 
		e16-.->a(b gis)a-.->c(d b)c-.->e(f dis)e-.->a(b a)
		gis(b e)e,(gis b)b,(e gis)gis,(b e)e,(gis? b e)
	}

Transcribing music

[edit]

You do not need to be able to write music yourself to be able to transcribe music from existing, published sources. Reading basic musical notation is not that difficult and once you know what the symbols mean it is usually easy to write out the appropriate code in either LilyPond or ABC.

Each note is made of one to three parts:

The parts of a musical note: note head, stem and flag. The note head is a circular dot, the stem is a vertical line connected to the head at one side and the flag is a short diagonal mark at the opposite end of the stem to the note head.
The parts of a musical note: note head, stem and flag. The note head is a circular dot, the stem is a vertical line connected to the head at one side and the flag is a short diagonal mark at the opposite end of the stem to the note head.
  1. Note head: All notes have a note head, a circular mark like a dot. Notes heads show the pitch of the note.
  2. Stem: Most notes have stems, they are the vertical lines connected to the notes head(s). Multiple note heads on one stem are a "chord".
  3. Flag: Some notes have flags, short diagonal "tails" at the end of the stem opposite to the note head. Flags show the duration of a note. Two or more notes with flags next to each other are often connected together; these connections are called "beams".

Notes are written in "bars" on a "stave" (or "staff"). A stave starts with a "clef" and will usually have five lines. A bar is a section of the stave, representing a period of time, marked by vertical lines called "bar lines".

Knowing the pitch and duration of notes is important. The pitch is shown by the vertical position of the note head. Each line and each space is a different pitch. Pitches are represented by the first seven letters of the alphabet (A, B, C, D, E, F and G), the next pitch after G is A again and the pattern repeats.

Simple guide to musical notes in sheet music: treble and bass clefs shown with names of the notes.
Simple guide to musical notes in sheet music: treble and bass clefs shown with names of the notes.

On staves with a treble clef (the first example in the diagram), the bottom line is E. The space above is F and the line above that is G; and so on until the top line, which is F. Common mnemonics that can help you to remember these are "Every Good Boy Deserves Favours" (for the pitches on the lines) and "FACE in the space" (for the pitches on the spaces between lines).

On staves with a bass clef (the second example in the diagram), the pitches are two lower than with a treble clef. The bottom line is G and the top line is A. Mnemonics that can help you to remember these are "Good Boys Deserve Favours Always" (for the pitches on the lines) and "Any Cow Eats Grass" (for the pitches on the spaces).

The duration of the note is shown by its appearance.

Basic music note values
Note Rest Description American name British name Traditional value LilyPond duration ABC length
Hollow head, no stem Whole note Semibreve 4 1 1
Hollow head, stem Half note Minim 2 2 1/2
or Full head, stem, no flags Quarter note Crotchet 1 4 1/4
One flag Eighth note Quaver 1/2 8 1/8
Two flags Sixteenth note Semiquaver 1/4 16 1/16
Three flags Thirty-second note Demisemiquaver 1/8 32 1/32
For more information, see Note value on Wikipedia.

For more complicated symbols, please refer to List of musical symbols on Wikipedia and the Wikisource help page Help:List of musical symbols.

It may also help to read parts of Music Theory on Wikibooks, especially the page "How to read Music".

General notes on writing with Score

[edit]

Score ignores excess white space, which can be useful when writing music just as it is with writing computer code. The following is perfectly functional code:

<score>\relative c { b c d e f e b c b c d e }</score>

However, with long pieces, it can be hard to read for anyone attempting to edit it (even for the original user). Pipes can be entered to indicate separate bars, for example:

<score>\relative c { b c d e | f e b c | b c d e }</score>

This is a little better because a user who has noticed a mistake in the third bar can more easily find the code the corresponds to that bar.

To make it even clearer, white space (including line feeds/carriage returns) can be used to break up the code into easily legible sections. For example:

<score>
  \relative c {
    b c d e
    f e b c
    b c d e
  }
</score>

Indenting sections helps show where sections begin and end, and what those sections contain.

Maintenance templates

[edit]
Missing score

Pages with missing scores can be tagged with the {{missing score}} maintenance template. This will add the page to the Texts with missing musical scores? tracking category.

LilyPond

[edit]
See also: Help:LilyPond

Basic LilyPond notation

[edit]

All notations must open and close with the score tags, e.g. <score>...</score>

When writing in LilyPond, "commands" start with a backslash and "expressions" are containing in curly brackets. All notations must be contained in a single musical expression. A command followed by an expression counts as a single musical expression.

For example, \relative c and \time 6/8 are commands; \relative c { ... } is a musical expression.

"Relative mode" is the simplest way to write in LilyPond notation. In this mode notes are assumed to be the closest pitch to the previous note. Absolute notes can be entered instead. The command \relative c will start in Bass C (C3, small octave).

The code so far, using relative mode and Bass C but no notes as yet, will appear as:

<score>
  \relative c {

  }
</score>

Notes can be entered as the appropriate letters, separated by spaces. LilyPond is whitespace insensitive, so it does not matter how much space is put between any element. Notes can be separated into different lines or follow each other in unbroken sequence without causing any difference.

Notes can be raised an octave by adding an apostrophe after the letter, raised two octaves by adding two apostrophes, and so forth. Similarly, notes can be lowered octaves by adding commas after the letter in the same way. This applies to the note used in relative mode as well: \relative c' is Middle C, \relative c'' is Treble C, \relative c, is Low C, etc.

The duration of notes can be specified by adding a number after the letter: 1 2 4 8 or 16. The default is 4. All subsequent notes will repeat the duration of the previous note until a new duration is specified. If raising or lowering a note as well as changing the duration, the number follows the apostrophe or comma.

For example:

<score sound="1">
  \relative c'' {
    a b c d e f g a
    a, b c2 d e
  }
</score>

  \relative c'' {
    a b c d e f g a
    a, b c2 d e
  }
Basic notation
a b c d e f g Letters separated by space(s) are notes.
a a' a, Apostrophes raise the note by an octave, commas lower the note by an octave.
a1 a2 a4 a8 a16 A number after a note indicates duration (4 is default).
| A pipe creates a bar line (this is not required).

Lyrics

[edit]

Song lyrics can be added directly to a score. They are held in a separate expression and have their own code for certain situations.

The expression for lyrics, which should be added between the same score tags, is \addlyrics { ... }. The whole score will appear something like:

<score>
  \relative c {

  }

  \addlyrics {

  }
</score>

The words of the lyrics should be places in the expression following the addlyrics command. Each syllable should be separated by a space. LilyPond will automatically assign each syllable to a different note.

Example:

<score>
  \relative c'' {
    a b c d
  }
  \addlyrics {
    foo bar baz qux
  }
</score>

  \relative c'' {
    a b c d
  }
  \addlyrics {
    foo bar baz qux
  }

The assignment of syllables to notes can be altered by code based on underscores. Multiple syllables can be aligned to the same note by connecting the syllables with underscores. Alternatively, one syllable can be aligned to multiple notes by using underscores instead of subsequent syllables (which would otherwise be assigned to those notes instead). Extender lines can be created with a double underscore (with space either side of it).

Where a word is split into syllables this is indicated with hyphens between the syllables. Hyphens can be created with a double dash in the lyrics (with spaces on either side).

More LilyPond notation

[edit]
Term Code Description Example Example code
Beam a[ b] Beaming will be created automatically by the extension by default. To force this, however, or if automatic beaming has been deactivated, beaming can be indicated manually. An open square bracket should be placed after the first note to be beamed. A closing square bracket after the last note ends the beam.
{ \relative c'' { b8[ d] d[ c b a] c b } }
<score>
{
  \relative c'' {
    b8[ d] d[ c b a] c b 
  } 
}
</score>
Chord <a b> Chords can be written much like other notes. However, all the notes in a chord should be wrapped in angle brackets. If setting the duration, a single number should be placed after the closing bracket.
{ \relative c'' { <g e> <g b d> <f a c e> <d f>8 <a' c> } }
<score>
{
  \relative c'' {
    <g e> <g b d> <f a c e> <d f>8 <a' c> 
  } 
}
</score>
Rest r Like notes, the duration of rests is set by a following number, e.g. r1 r8 r16 etc.
Full bar rests can be indicated with a capital R.
{ \relative c'' { g b d r } }
<score>
{
  \relative c'' {
    g b d r 
  } 
}
</score>
Slur a( b) Slurred notes work in a similar way to beaming, but using round brackets (parentheses). An open bracket after a note begins the slur and a closing bracket after the final note ends the slur. Slurs cannot be nested.
{ \relative c'' { g( b) d( f) } }
<score>
{
  \relative c'' {
    g( b) d( f) 
  }
}
</score>
Slur (phrasing) a\( b\) Normal slurs can be used inside phrasing slurs.
{ \relative c'' { g\( b d f\) } }
<score>
{
  \relative c'' {
    g\( b d f\)
  }
}
</score>
Spacer s Again, like notes, the duration of spaces is set by a following number, e.g. s1 s8 s16, etc.
{ \relative c'' { b4 s2 b4 } }
<score>
{
  \relative c'' {
    b4 s2 b4
  } 
}
</score>
Ties a ~ b Ties can be indicated with a tilde after the first note. (NB: Ties look similar to slurs but only occur with notes of the same pitch.)
{ \relative c'' { b~ b d~ d} }
<score>
{
  \relative c'' {
    b~ b d~ d
  } 
}
</score>

ABC notation

[edit]
See also: Help:ABC notation

The Score extension also supports ABC. This was originally designed for monophonic Western folk music, although it can be used to typeset pretty complex stuff. It's simpler to learn than LilyPond.

Here's an example of ABC notation in wiki markup

<score lang="ABC" sound="1">
X:173
L:1/4
M:6/4
K:Gm
Q:1/4=120
A|B2BB3/2c/2d|cAFFGA|BAGGAB|AGAD2A|\
B2BB3/2c/2d|c3/2B/2Ac2d|B3/2A/2GAG^F|\
G2AB3/2c/2d|B3/2A/2GA3/2G/2^F|(G3G2)|]
</score>

This produces


X:173
L:1/4
M:6/4
K:Gm
Q:1/4=120
A|B2BB3/2c/2d|cAFFGA|BAGGAB|AGAD2A|\
B2BB3/2c/2d|c3/2B/2Ac2d|B3/2A/2GAG^F|\
G2AB3/2c/2d|B3/2A/2GA3/2G/2^F|(G3G2)|]

Notes

[edit]

The pitch is usually represented by a letter. Middle C is entered as C and all the pitches up to Treble C are capital letter. Treble C and subsequent pitches are entered as lower case letters. The pitches below Middle C, to Bass C, are capitals with a following comma (as in LilyPond) and the pitches from High C upwards are lower case letters with a following apostrophe (also as in LilyPond).

This full sequence is: C, D, E, F, G, A, B, C D E F G A B c d e f g a b c' d' e' f' g' a' b'

Duration is indicated by a fraction after the pitch. For example, C1/2 is a half-length Middle C note. A numerator of 1 or a denominator of 2 can be omitted, so the same note can be represented by C/2 or just C/. If a note is entered without a duration, the default length in the header is used.

Rests are entered as note z.

Header lines

[edit]

Pieces in ABC notation start with header lines that either provides information or can affect the way the score is displayed. Each one is a capital letter, followed by a colon and the appropriate value.

For example, L is the header line for default note length. The following sets the note length for a piece at a crotchet or quarter-length note: L:1/4

List of header lines
Header Use
B Book
C Composer's name
D Discography
H History
K Key (a single letter for the pitch, followed by a lower-case "m" if minor)
L Default note length (given as a fraction, e.g. 1/8 for a quaver)
M Meter (appears like length but refers to the time signature, e.g. 4/4)
N Comment
O Origin
Q Tempo (1/4=120 indicates 120 quarter notes per minute)
T Title
R Rhythm (entered as text)
S Source
X Sequence number
Z Transcription notes (who transcribed it)

Audible output

[edit]

As well as simply allowing Wikisource users to write in musical notation, the Score extension can generate a MIDI file from the score notation and even turn this into audio that you can play on the page.

Clicking the image generated by the Score extension offers links to download the LilyPond and generated MIDI files. To enable audio playing, add sound="1" (replaces the deprecated vorbis="1" attribute) to the opening <score> tag. The extension creates a JavaScript control module below the image of the score, which can stream the generated audio file; you can play and pause and adjust the volume of the audio.

Example:

<score sound="1"> ... </score>

Additionally, you could override the MIDI and Ogg Vorbis files. With additional attributes, the Score extension can instead use a MIDI or Ogg Vorbis file uploaded to Wikisource or Wikimedia Commons (in the File: namespace as normal).

The override_ attributes are deprecated, see mw:Project:Tech News/2019#Tech_News:_2019-25. Instead you can provide wikilinks to these media files.

Examples:

<score override_midi="Example.midi"> ... </score>
<score sound="1" override_ogg="Example.ogg"> ... </score>

Merging multiple parts of score-based music from Page namespace

[edit]
See: Template:Tscore
[edit]

LilyPond

[edit]
  • Help:Score on English Wikipedia has more examples of entering LilyPond syntax in the <score> element.

ABC

[edit]
梅干菜是什么菜做成的 ag医学上是什么意思 维c不能和什么一起吃 爱豆什么意思 外婆菜是什么菜做的
看乳腺应该挂什么科 手指甲软薄吃什么补 f4是什么意思 什么是富贵包 翘首以盼是什么意思
解酒吃什么水果 皮肤黄是什么原因 腿弯疼是什么原因 检查前列腺做什么检查 什么奶粉比较好
木日念什么 全性向是什么意思 变节是什么意思 玥字五行属什么 手掌小鱼际发红是什么原因
糖尿病患者适合吃什么水果tiangongnft.com 胰腺炎是什么原因引起的hcv9jop1ns4r.cn 龟苓膏不能和什么一起吃jiuxinfghf.com 证候是什么意思hcv8jop2ns3r.cn 乳腺疼挂什么科hcv9jop0ns7r.cn
为什么会得梅毒hcv8jop9ns3r.cn 70大寿有什么讲究hcv9jop1ns0r.cn 能吃是福是什么意思hcv9jop6ns2r.cn 九月十七日是什么星座hcv7jop5ns4r.cn 五彩斑斓的意思是什么hcv8jop7ns1r.cn
孕妇可以吃什么hcv7jop9ns3r.cn 微针是什么美容项目wuhaiwuya.com 三克油是什么意思aiwuzhiyu.com 六味地黄丸治什么hcv8jop4ns0r.cn 月经期间可以吃什么水果hcv8jop8ns6r.cn
小儿割包皮挂什么科hcv9jop6ns1r.cn 什么样的大便是正常的hcv8jop8ns3r.cn 法院庭长是什么级别hcv8jop7ns5r.cn 特点是什么意思hcv8jop0ns9r.cn 加湿器加什么水最好hcv8jop6ns5r.cn
百度