{{Extension|templatemode = |name = Import2 |status = experimental |type1 = api |type2 = Modify include file |hook1 = |hook2 = |username = Zzmonty |author = Melissa Newman |description = Replacement for "import.php" include file. |image = |imagesize = |version = 0.1 |update = 2009-12-08 |mediawiki = 1.15.1 |license = CreateCommons Share Alike |download = {{WikimediaDownload}} |readme = [[User:zzmonty/import2/readme.txt]] |changelog = [[User:zzmonty/import2/changelog.txt]] |parameters = |rights = |example = [[User:zzmonty/import2/example]] }}
Formats ABC [1] music notation in a wiki page. A low-resolution PNG rendering of the music is displayed inline, with links to download other formats (PDF, PS, MIDI, Ogg Vorbis, and the original ABC), and an embedded media player. Similar to Extension:AbcMusic except it doesn't use Lilypond, and has more features.
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.
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.
Set these after the require_once.
$abcm2ps = "/usr/bin/abcm2ps";
$abcps2pdf = "/usr/bin/ps2pdf14";
$abc2midi = "/usr/bin/abc2midi";
$abctimidity = "/usr/bin/timidity";
$abcMIDIvoice = 0;
$abcOggHandler = false;
{{Extension|templatemode = |name = Import2 |status = experimental |type1 = api |type2 = Modify include file |hook1 = |hook2 = |username = Zzmonty |author = Melissa Newman |description = Replacement for "import.php" include file. |image = |imagesize = |version = 0.1 |update = 2009-12-08 |mediawiki = 1.15.1 |license = CreateCommons Share Alike |download = {{WikimediaDownload}} |readme = [[User:zzmonty/import2/readme.txt]] |changelog = [[User:zzmonty/import2/changelog.txt]] |parameters = |rights = |example = [[User:zzmonty/import2/example]] }}
Formats ABC [1] music notation in a wiki page. A low-resolution PNG rendering of the music is displayed inline, with links to download other formats (PDF, PS, MIDI, Ogg Vorbis, and the original ABC), and an embedded media player. Similar to Extension:AbcMusic except it doesn't use Lilypond, and has more features.
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.
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.
Set these after the require_once.
$abcm2ps = "/usr/bin/abcm2ps";
$abcps2pdf = "/usr/bin/ps2pdf14";
$abc2midi = "/usr/bin/abc2midi";
$abctimidity = "/usr/bin/timidity";
$abcMIDIvoice = 0;
$abcOggHandler = false;