Extension:ABC/zh-hans
From MediaWiki.org
< Extension:ABC(Redirected from Extension:ABC/zh)
|
Release status: beta |
|
|---|---|
| Implementation | Tag |
| Description | {{{description}}} |
| Author(s) | River Tarnell (KateTalk) |
| License | No license specified |
| Download | Download snapshot |
在wiki页面显示以 ABC [1] 格式编写的音乐乐谱。显示一个音乐的低分辨率PNG图片,并带有一个下载其他格式(PDF, PS, MIDI, Ogg Vorbis, and the original ABC)的链接和嵌入式媒体播放器。 与 Extension:AbcMusic 相似的,不用Lilypond,有很多属性。
Example:
<abc float="right"> X: 1 T: Tommy Peoples' M: 4/4 L: 1/8 R: reel K: Bmin |:B3 c dBAF|~B3 c dfed|~B3 c dcdB|1 ABde fded:|2 ABde fdec|| |:dfaf bfaf|dfaf (3ggg fg|afge ~d3 B|1 ABde fdec:|2 ABde fded|| </abc>
would produce:
float can be either left or right, or unspecified, in which case it defaults to left.
[edit] Installation
For basic use, just add this to your LocalSettings.php:
require_once("/export/home/river/www/extensions/ABC/ABC.php");
$abcPath = "/export/home/river/www/phase3/abc";
$abcURL = "/~river/phase3/abc";
(You will need to change the paths to fit your system.)
The extension requires abcm2ps, GhostScript (for ps2pdf), and ImageMagick. It can optionally use abc2midi to produce MIDI renderings of the music, and TiMidity++ to produce Ogg Vorbis renderings.
[edit] Configuration options
Set these after the require_once.
-
$abcm2ps = "/usr/bin/abcm2ps";
- Set the path to abcm2ps, if it's not in /usr/bin. abcm2ps is required.
-
$abcps2pdf = "/usr/bin/ps2pdf14";
- Set the path to ps2pdf, if it's not in /usr/bin. ps2pdf is required.
-
$abc2midi = "/usr/bin/abc2midi";
- Set the path to abc2midi, if it's not in /usr/bin. abc2midi is optional; if enabled, MIDI renderings of the music will be produced.
-
$abctimidity = "/usr/bin/timidity";
- Set the path to timidity, if it's not in /usr/bin. TiMidity++ is optional; if enabled, Ogg Vorbis renderings of the music will be produced. If you set this, you must also set $abc2midi.
-
$abcMIDIvoice = 0;
- Change the MIDI voice that will be used for the Ogg Vorbis recording. (This does not change the voice used in the MIDI rendering). 0 = Piano; 40 = Violin; 73 = Flute. See the General MIDI specification for other voices (unless your TiMidity++ patches aren't General MIDI, in which case you're on your own). If the ABC input specifies a particular voice itself, this will be ignored.
-
$abcOggHandler = false;
- Change this to true to enable the embedded media player. This requires Extension:OggHandler also be installed.
