PMW(1)
πΈ NAME πΈ
PMW(1) from the General Commands Manual β okay bestie, this is the page for pmw, a program for typesetting music. πΆ
β¨ SYNOPSIS β¨
pmw [options] [input file]
πΆ DESCRIPTION πΆ
PMW (Philip's Music Writer) is a program for typesetting music. it is not an interactive program; instead, it reads a description of the music from a textual input file, which can be prepared by any text editor. the output from PMW is a PostScript file of page images of typeset music. this output uses the PMW-Music PostScript font, which must therefore be available for viewing, printing, or converting to PDF by an application such as GhostScript. a secondary output in the form of a MIDI file can be requested. πΉ
a full description of PMW and its markup language is given in the reference manual. this man page just summarizes the command line options. π
π OPTIONS π
okay bestie, here's the full menu of flags. no skipping, fr fr.
-a4ona3β the pages are A4-sized; print them 2-up, assuming A3 paper. π¨οΈ-a5ona4β the pages are A5-sized; print them 2-up, assuming A4 paper. π¨οΈ-a4sidewaysβ the paper is A4, but the printer feeds it sideways, so rotate the page images before printing. π-C <arg>β show a compile-time option; exit with its value (0 or 1). possible arguments are:b2pfβ suport for B2PF processingmusicxmlβ support for MusicXML input
-c <number>β arrange to print <number> copies. this number is honoured by PostScript printers. it may not be honoured by other programs that interpret PostScript. π-d<options>β write general debugging information to stderr. this option is of use only to the program maintainer. π οΈ-dbd [[<movement>,]<stave>,]<bar>β write debugging data for the bar to stderr. this option is of use only to the program maintainer. π οΈ-drawbarlinesβ instead of using characters from the music font to print bar lines, generate PostScript drawing instructions. some PostScript interpreters do not display the font bar line characters correctly on the screen when several of them are used to generate a long vertical line; drawing them instead may give a better result.-dblis an abbreviation for-drawbarlines. πΌ-drawstavelines [<thickness>]β instead of using characters from the music font to print stave lines, generate PostScript drawing instructions. some PostScript interpreters do not display the font stave characters correctly on the screen; drawing them instead may give a better result. the default thickness of drawn stave lines is 0.3 points, scaled according to relative stave size and overall magnification. an integer number given with this option specifies the thickness in tenths of a point.-dslis an abbreviation for-drawstavelines. πΆ-dtp <bar>β write debugging positioning data for the bar to stderr. if there is more than one movement (not likely while debugging at this level), the data is output for every bar with the given number. if the number is -1, data is output for all bars. this option is of use only to the program maintainer. π οΈ-duplexβ this option sets the PostScript option for duplex printing (see also-tumble). ππ-epsβ write the output as encapsulated PostScript (useful if this is an illustration that is going to be included in some other document). πΌοΈ-errormaximum <number>β set the maximum number of errors before the program gives up. the default is 40. this option is provided mainly so that an error test can generate a large number of errors.-emis an abbreviation for-errormaximum. π₯-F <directory-list>β search the given colon-separated list of directories for fontmetrics files, before searching the default directory that was set up when PMW was built. these directories are also searched for optional Unicode translation (.utr) files for fonts that do not use Adobe standard encoding, and for any special text fonts (.pfafiles) that are requested to be included in the output. π-f <name>β specifies a format name, used when the input file is set up to output in several different formats. π·οΈ-H <file>β use the given file as the PostScript header file, instead of the default that was set up when PMW was built. π-helpor--helpβ output a list of options, then stop. no file is read. π-incPMWfontor-incpmwfontor-ipfβ this option causes PMW to include the music font within the PostScript output that it generates. (if the PMW-Alpha font is used, that is also included.) if you use this option, there is no need to install the PMW music font(s) for GhostScript (or any other display program) to find. π€-MF <directory>β search the given colon-separated list of directories for PMW's music fonts, before searching the default directory that was set up when PMW was built. π-MP <file>β use the given file as the MIDIperc file, instead of the default that was set up when PMW was built. this file translates between names and "pitches" for untuned percussion voices. π₯-MV <file>β use the given file as the MIDIvoices file, instead of the default that was set up when PMW was built. this file translates voice names to MIDI voice numbers. πΉ-manualfeedβ set themanualfeedoption in the generated PostScript. most PostScript printers interpret this to mean that the paper should be taken from an alternate input tray or slot. some also require the user to push a button before each page is printed. ποΈ-midi <file>β write MIDI output to the given file (in addition to the normal PostScript output). the stave selection (see-sbelow) also applies to MIDI output. π΅-midibars <range>β if-midiis given, write only the given bars to the MIDI output. the range can be two numbers separated by a hyphen or a single number for just one bar. a single number followed by a hyphen plays from that bar to the end of the movement.-mbis an abbreviation for-midibars. π-midimovement <number>β for a multi-movement input file, this specifies the movement that is to be output as MIDI when-midiis given. the default is the first movement.-mmis an abbreviation for-midimovement. πΌ-noidβ do not show version number for error output. this is useful to a maintainer when comparing output from different versions. π«-norcor-nopmwrcβ do not read the caller's.pmwrcfile. this must be the first option given. β οΈ-norepeatsβ when generating a MIDI output file, do not repeat repeated sections of the music.-nris an abbreviation for-norepeats. π-nowidecharsβ this option stops PMW from using the 100-point wide stave characters when printing staves. instead, staves are constructed entirely from the 10-point wide characters. this option is provided because it seems that some PostScript interpreters cannot deal correctly with the very wide characters.-nwis an abbreviation for-nowidechars. the-drawstavelinesoption overrides this option. π«-o <file>β send the output to the given file, or, if "-" is given, to stdout. the default file name is the input file with the extension ".ps" replacing any existing extension, or being added if there is no extension. if there is no input file (input from stdin) the default output is to stdout. π€-p <list>β output only the specified pages. these can be individual page numbers, or pairs of numbers separated by a hyphen, to specify a range. use commas to separate items in the list. π-pamphletβ output pages in pamphlet order. this is usually used in conjunction with-a5ona4or-a4ona3. π-printadjust <x> <y>β move the image on the page by (x,y) points. π-printgutter <x>β this option specifies a distance by which righthand (recto) page images are moved to the right, and lefthand (verso) page images are moved to the left, thus creating a "gutter" for binding when the images are printed doublesided. the-printguttersetting applies only when pages are being printed 1-up. it is ignored for any of the 2-up printing styles. π-printscale <n>β scale the output image by <n>. π-printside <n>β output only odd or only even pages; <n> must either be 1 or 2. π-reverseβ output the pages in reverse order. π-SM <directory>β search the given directory for "standard macro" files instead of searching the default directory that was set up when PMW was built. π-s <list>β output only the specified staves. these can be individual stave numbers, or pair of numbers separated by a hyphen, to specify a range. use commas to separate items in the list. πΌ-t <number>β specify a transposition, in semitones. π΅-tumbleβ when-duplexis set,-tumblecauses the PostScript option for "tumbled" duplex printing. π-Vor--versionβ output the PMW version number to stdout, then stop. no file is read. π·οΈ-vβ output verification information about the typesetting to stderr. π
π DIAGNOSTICS AND RETURN CODES π
error messages are written to the standard error stream. the return code is the C return code EXIT_SUCCESS (usually 0) for success, even if there were some warnings, and EXIT_FAILURE (usually 1) otherwise. π
π΅ EXAMPLES π΅
pmw myscore
pmw -format A5 -a5ona4 -pamphlet myscore
pmw -s 3 -o quartet-viola.ps quartet.pmw
π AUTHOR π
Philip Hazel Email local part: Philip.Hazel Email domain: gmail.com
last updated: 28 May 2022, copyright (c) 2022 Philip Hazel, and yeah, this is PMW(1) from the General Commands Manual, periodt. π β¨
π¦ where this page comes from
- debian bookworm: pmw 1:5.20-2
- debian trixie: pmw 1:5.22-1
- ubuntu noble: pmw 1:5.22-1
- ubuntu questing: pmw 1:5.22-1
- ubuntu resolute: pmw 1:5.22-1build1
- ubuntu stonking: pmw 1:5.22-1build1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms