### External ABC File Inclusion Example Source: https://github.com/lewdlime/abcm2ps/blob/master/sample8.html Example demonstrating how to select and include specific tunes from an external ABC file using %%select and %%abc-include directives. ```abc %abc2.1 %%select 2,4 %%abc-include voices.abc ``` -------------------------------- ### Build abcm2ps Source: https://github.com/lewdlime/abcm2ps/blob/master/README.md Build the program with default settings. Ensure you have the necessary build tools installed. ```bash ./configure make ``` -------------------------------- ### Example Format File Content Source: https://context7.com/lewdlime/abcm2ps/llms.txt An example of a format file used by abcm2ps to define custom formatting parameters like orientation, title alignment, font styles, and spacing. ```text % format for wide output in landscape mode landscape 1 titleleft yes titlefont Palatino-Bold 22 composerspace 0.6cm staffsep 60 ``` -------------------------------- ### Voice Overlay Example Source: https://github.com/lewdlime/abcm2ps/blob/master/abcm2ps.rst Demonstrates splitting a single measure into two voices using the ampersand '&'. ```abc |F2A2Bc&F2c2bc| ``` -------------------------------- ### Normal ABC Tune Example Source: https://github.com/lewdlime/abcm2ps/blob/master/sample8.html A standard ABC music notation sequence. This is a basic example of a tune in ABC format. ```abc X:1 T:An durzunell %%infoline 1 C:Trad. O:Brittany M:6/8 K:Bb B,2DF2F|FB GF2z|DGFC2D|B,3-B,2z|B,2DF2F|FB GF2z|DGFC2D|B,3-B,2z|| B,2CD2D|DE DC2z|DEFG2F|C3-C2z|B,2DF2F|FB GF2z|DGFC2D|B,6|| ``` -------------------------------- ### Multi-Voice ABC Notation Example Source: https://context7.com/lewdlime/abcm2ps/llms.txt Demonstrates how to define multiple voices (e.g., for right hand and left hand on a piano) within a single ABC file using the '%%staves' directive and 'V:' fields. This allows for complex polyphonic music. ```abc X:1 T:Song for a guy C:Elton John M:C L:1/8 Q:1/4=128 %%staves {RH LH} K:C V:RH [C8E8]|zE FG- GEC2|[B,3E3][B,D]- [B,4D4]|zD EF- FED2|D8| V:LH [C,3G,3][C,G,]- [C,4G,4]|[C,3G,3][C,G,]- [C,4G,4]|[B,,3G,3][B,,G,]- [B,,4G,4]| [B,,3G,3][B,,G,]- [B,,4G,4]|[_B,,3F,3][B,,F,]- [B,,4F,4]| ``` -------------------------------- ### Set Starting Measure Number Source: https://github.com/lewdlime/abcm2ps/blob/master/abcm2ps.rst Set the starting measure number for numbering. Corresponds to the '%%measurefirst' parameter. ```shell -b ``` -------------------------------- ### Bar and Measure Numbering Options Source: https://context7.com/lewdlime/abcm2ps/llms.txt Configure measure numbering frequency, placement, and style. Options include numbering every N bars, at the start of each staff, with boxes, starting numbering from 0, and setting bars per staff line. ```bash # Number measures every 5 bars abcm2ps -j 5 sample.abc # Number measures at left of each staff abcm2ps -j 0 sample.abc # Number measures with boxes abcm2ps -j 5b sample.abc # Start measure numbering at 0 abcm2ps -b 0 sample.abc # Set bars per staff line abcm2ps -B 4 sample.abc ``` -------------------------------- ### Standard Decorations in ABC Notation Source: https://context7.com/lewdlime/abcm2ps/llms.txt Applies standard musical decorations and ornaments to notes. The example shows grace notes (~), dots (.), slurs (J), fermatas (H), trills (R), and bowings. ```abc X:5 T:Standard decorations M:none L:1/8 K:C ~C.D JENF HCRD TEuF vcLB MAPG ScOB| w: ~ . J N H R T u v L M P S O w: grace dot slide tenuto fermata roll trill upbow downbow w: emphasis lmordent umordent segno coda ``` -------------------------------- ### ABC Tune in Textline Example Source: https://github.com/lewdlime/abcm2ps/blob/master/sample8.html An ABC music notation sequence embedded within a textline, often used for inline display. ```abc X:2 T:Au clair de la lune %%bgcolor lightblue %%musicspace 0 M:C L:auto %%pagewidth 14cm K:C cccd|ed|cedd|c|| ``` -------------------------------- ### Grace Notes in ABC Notation Source: https://context7.com/lewdlime/abcm2ps/llms.txt Adds grace notes before principal notes using curly braces {}. The example shows simple grace notes and more complex ones with accidentals and ties. ```abc X:12 T:Gracenotes L:1/8 M:C K:D FA{c}AF DF{^dc}A f{A}df f{AGA}df | {B}D2 {A}D2 {G}D2 {F}D2 {E}D2 | {E}c2 {F}c2 {G}c2 {A}c2 {B}c2 | {A}^c2 {gcd}c2 {gAGAG}A2{g}c<{GdG}e {Gdc}d>c {gBd}B<{e}G | {G}[G4e4] {FGAB}[^c4A4] {ef}[e4c4] {d'c'bagfedcB_AcBFGC}D4| ``` -------------------------------- ### HTML Integration with SVG in ABC Notation Source: https://context7.com/lewdlime/abcm2ps/llms.txt Embeds ABC notation within an HTML document, which can then be processed by 'abcm2ps' to generate an HTML file with embedded SVG music. The 'pre' tag is used for the command-line conversion example. ```html ABC HTML formatting example

ABC in HTML formatting example

To generate the music, do:

abcm2ps sample8.html -z -O Out.html
X:1 T:An durzunell %%infoline 1 C:Trad. O:Brittany M:6/8 K:Bb B,2DF2F|FB GF2z|DGFC2D|B,3-B,2z|B,2DF2F|FB GF2z|DGFC2D|B,3-B,2z||

Beginning of 'Au clair de la lune' X:2 %%bgcolor lightblue %%musicspace 0 M:C L:auto %%pagewidth 14cm K:C cccd|ed|cedd|c||

%abc2.1 %%select 2,4 %%abc-include voices.abc
``` -------------------------------- ### Display Help Information Source: https://github.com/lewdlime/abcm2ps/blob/master/abcm2ps.rst Run abcm2ps without arguments to display quick help information. ```shell abcm2ps -h ``` -------------------------------- ### Applying Custom Formatting with Format Files Source: https://context7.com/lewdlime/abcm2ps/llms.txt Use format files to apply custom styling and settings. You can load a specific format file, skip the default one, specify a directory for format files, or set parameters directly on the command line. ```bash # Load a format file abcm2ps -F flute.fmt sample.abc # Skip default format file abcm2ps +F sample.abc # Search format files in specific directory abcm2ps -D /usr/share/abcm2ps sample.abc # Set format parameters directly abcm2ps --landscape 1 --scale 0.8 sample.abc ``` -------------------------------- ### Select Tunes by Index or Regex Source: https://github.com/lewdlime/abcm2ps/blob/master/abcm2ps.rst Select specific tunes from an ABC file for printing using a comma-separated list of tune numbers or a regular expression matching tune headers. This option must follow an ABC file name. ```shell -e [ ] [ ] ``` -------------------------------- ### Tablature Support Options Source: https://context7.com/lewdlime/abcm2ps/llms.txt Enable or disable tablature output for specific voices or all voices. Use '-T' followed by a number to enable tablature, and optionally a voice name. Use '+T' to disable tablature. ```bash # Enable tablature #1 for all voices abcm2ps -T1 sample.abc # Enable tablature #1 for specific voice abcm2ps -T1flute sample.abc # Disable tablature #2 abcm2ps +T2 sample.abc # Use with format file containing tablature definitions abcm2ps -F flute.fmt -T1 -T3 sample.abc ``` -------------------------------- ### Custom Output File and Directory Source: https://context7.com/lewdlime/abcm2ps/llms.txt Control the output filename and directory. Use '-O' followed by a filename to set a custom name, or a directory path to specify the output location. Using '=' as the filename uses the ABC source filename. ```bash # Set custom output filename abcm2ps sample.abc -O myscore.ps # Set output directory (must end with /) abcm2ps sample.abc -O /path/to/output/ # Use ABC source filename as output name abcm2ps sample.abc -O = ``` -------------------------------- ### Read Format or PostScript File Source: https://github.com/lewdlime/abcm2ps/blob/master/abcm2ps.rst Read a format or PostScript file. If omitted, the default type is '.fmt'. Using '+F' skips reading the default format file. ```shell -F , +F ``` -------------------------------- ### Enable Flat Beams Source: https://github.com/lewdlime/abcm2ps/blob/master/abcm2ps.rst Enable flat beams, which is useful for bagpipe tunes. Corresponds to the '%%flatbeams' parameter. ```shell -f ``` -------------------------------- ### Read ABC from Standard Input Source: https://github.com/lewdlime/abcm2ps/blob/master/abcm2ps.rst Read ABC music notation from standard input instead of a file. ```shell - ``` -------------------------------- ### All Decorations in ABC Notation Source: https://context7.com/lewdlime/abcm2ps/llms.txt Demonstrates a comprehensive set of decorations and ornaments, including dynamic markings (!mf!, !p!), phrase markings (!longphrase!, !shortphrase!), and articulation symbols (!accent!, !wedge!). ```abc X:6 T:All decorations M:none L:1/8 K:C !0!C!1!D !2!E!3!F !4!G!5!A !+!B!accent!c| !breath!C!crescendo(!D !crescendo)!E!D.C.!F !diminuendo(!G!diminuendo)!A !f!B!ffff!c| !fine!C!invertedfermata!D !longphrase!E !mediumphrase!F !mf!G!open!A !p!B!pppp!c| !pralltriller!C!sfz!D !shortphrase!E !snap!F !thumb!G!turn!A!wedge!B!D.S.!c| ``` -------------------------------- ### Enable Automatic Line Breaking Source: https://github.com/lewdlime/abcm2ps/blob/master/abcm2ps.rst Implicitly append the continuation symbol to each music line, enabling automatic line breaking. Corresponds to the '%%continueall' parameter. ```shell -c, +c ``` -------------------------------- ### Generate nroff Manual Page Source: https://github.com/lewdlime/abcm2ps/blob/master/abcm2ps.rst Process ABC music notation files with rst2man from python-docutils to generate a nroff manual page. ```shell rst2man ``` -------------------------------- ### Encapsulated PostScript (EPS) Output Source: https://context7.com/lewdlime/abcm2ps/llms.txt Generates Encapsulated PostScript (EPS) output. Use '-E' for one EPS file per tune. Custom basenames can be specified with the '-O' option, creating sequentially numbered files. ```bash # Generate Encapsulated PostScript (one file per tune) abcm2ps -E sample.abc # Generate EPS files with custom basename abcm2ps -E sample.abc -O myscore # Creates myscore001.eps, myscore002.eps, etc. ``` -------------------------------- ### Display Current Format Values Source: https://github.com/lewdlime/abcm2ps/blob/master/abcm2ps.rst Display the current values of the format parameters. ```shell -H ``` -------------------------------- ### Define Staff System with Brackets Source: https://github.com/lewdlime/abcm2ps/blob/master/abcm2ps.rst Assigns voices 'v1' and 'v2' to separate staves, with a bracket indicating they are joined. ```abc %%staves [v1 v2] ``` -------------------------------- ### Basic Lyric Alignment Source: https://github.com/lewdlime/abcm2ps/blob/master/abcm2ps.rst Shows how to align lyrics under a staff using the 'w:' line. Each word corresponds to a note. ```abc edc2 edc2| w:Three blind mice, three blind mice ``` -------------------------------- ### Specify Format File Directory Source: https://github.com/lewdlime/abcm2ps/blob/master/abcm2ps.rst Specify a directory to search for format files. ```shell -D ``` -------------------------------- ### SVG Output Options Source: https://context7.com/lewdlime/abcm2ps/llms.txt Generates Scalable Vector Graphics (SVG) output from an ABC file. Use '-g' for one SVG file per tune or '-v' for one SVG file per page. Output can also be directed to standard output. ```bash # Generate SVG output (one file per tune) abcm2ps -g sample.abc # Generate SVG output (one file per page) abcm2ps -v sample.abc # Output to stdout in SVG format abcm2ps -g -O- sample.abc ``` -------------------------------- ### Tune Selection by Index or Pattern Source: https://context7.com/lewdlime/abcm2ps/llms.txt Select specific tunes from an ABC file using their index number, a range, or a regular expression pattern matching the tune's header. ```bash # Select tune by X: number abcm2ps sample.abc -e 5 # Select multiple tunes by number abcm2ps sample.abc -e 1,3,5 # Select range of tunes abcm2ps sample.abc -e 1-5 # Select all tunes from number 10 onwards abcm2ps sample.abc -e 10- # Select tunes matching a pattern (regex on headers) abcm2ps sample.abc -e "Scale" ``` -------------------------------- ### Define Staff System with Braces Source: https://github.com/lewdlime/abcm2ps/blob/master/abcm2ps.rst Assigns voices 'v1' and 'v2' to two staves, indicated by a large brace, suitable for keyboard music. ```abc %%staves {v1 v2} ``` -------------------------------- ### Set Maximal Horizontal Compression Source: https://github.com/lewdlime/abcm2ps/blob/master/abcm2ps.rst Set the maximal horizontal compression factor for automatic staff breaks. Must be a float between 0 and 1. Corresponds to the '%%maxshrink' parameter. ```shell -a ``` -------------------------------- ### Define Staff System with Parentheses Source: https://github.com/lewdlime/abcm2ps/blob/master/abcm2ps.rst Assigns voices 'v1' and 'v2' to the same staff. ```abc %%staves (v1 v2) ``` -------------------------------- ### Page Layout Control Source: https://context7.com/lewdlime/abcm2ps/llms.txt Adjust page orientation, margins, scaling, staff spacing, and indentation. Options include landscape mode, scale factor, left margin, staff width, interstaff space, and first line indent. ```bash # Landscape orientation abcm2ps -l sample.abc # Set page scale factor (default: 0.75) abcm2ps -s 0.9 sample.abc # Set left margin (default: 1.8cm) abcm2ps -m 2.5cm sample.abc # Set staff width abcm2ps -w 18cm sample.abc # Set vertical interstaff space (default: 46pt) abcm2ps -d 50pt sample.abc # Indent first line of tune abcm2ps -I 2cm sample.abc # Page numbering at top right abcm2ps -N 2 sample.abc ``` -------------------------------- ### EPS to PNG Conversion using GhostScript Source: https://context7.com/lewdlime/abcm2ps/llms.txt Generates a PNG image from an EPS file using GhostScript. The command specifies the output device, resolution (dpi), dimensions, and input/output files. ```bash # Generate EPS for tune 7 abcm2ps voices.abc -E -e 7 # Convert EPS to PNG using GhostScript # Resolution: 80 dpi, dimensions calculated from bounding box * (80/72) gs -sDEVICE=pngmono -r80 -g590x174 \ -dBATCH -dNOPAUSE \ -sOutputFile=output.png Out001.eps ``` -------------------------------- ### Basic ABC to PostScript Conversion Source: https://context7.com/lewdlime/abcm2ps/llms.txt Converts an ABC file to PostScript using default settings. The output file is named 'Out.ps' in the current directory. You can view the generated file using a PostScript viewer. ```bash # Basic conversion - creates Out.ps in current directory abcm2ps sample.abc # View the generated PostScript file gs Out.ps # or on macOS open Out.ps ``` -------------------------------- ### Convert HTML with Embedded ABC to HTML with SVG Source: https://context7.com/lewdlime/abcm2ps/llms.txt Command-line instruction to convert an HTML file containing ABC notation into an HTML file with embedded SVG graphics representing the music. The '-z' flag enables SVG output. ```bash # Convert HTML with embedded ABC to HTML with SVG abcm2ps sample8.html -z -O Out.html ``` -------------------------------- ### abcm2ps Command Usage Source: https://github.com/lewdlime/abcm2ps/blob/master/abcm2ps.rst General usage and description of the abcm2ps tool. ```APIDOC ## abcm2ps Command Usage ### Description `abcm2ps` translates tunes written in the ABC music notation format to customary sheet music scores in PostScript or SVG. It is based on `abc2ps` 1.2.5 and was developed mainly to print Baroque organ scores that have independent voices played on multiple keyboards and a pedal-board. The program has since been extended to support various other notation conventions in use for sheet music. Options given immediately after the command name apply to the run as a whole; options given after an ABC file name apply to that file. Formatting parameters can also be set in "format files" and in the ABC files themselves. ### Synopsis `abcm2ps` [global_options] ABC_file [file_options] ... ### General Options The options may be grouped when they have no argument, but the last one (ex: `-lnGI20`). The options may be disabled when starting with '+' or ending with '-' (ex: `+MT1` is the same as `-MT1-`). ### Output Format Options The general output format is the last found in the command line. It may be: -E for Encapsulated PostScript, one file per tune -g for SVG, one file per tune -v for SVG, one file per page -X for XHTML+SVG -z for (X)HTML+SVG with (X)HTML+ABC input (see below for more information) ### Specific Options - Read the abc file from stdin. -- Set the parameter to . This has the same effect as a format parameter directly in the source file. -a Maximal horizontal compression when staff breaks are chosen automatically. Must be a float between 0 and 1. This correspond to the `%%maxshrink` formatting parameter (default: 0.65). -A This option inserts reference elements in the PostScript or SVG output. -B , +B Try to typeset bars on each staff line. This corresponds to the `%%barsperstaff` formatting parameter. -b Start measure numbering at . This corresponds to the `%%measurefirst` formatting parameter. -c, +c The continuation symbol is implicitly appended to each music line. This amounts to automatic line breaking. This corresponds to the `%%continueall` formatting parameter. -D Search the format files in the directory . -d Set the vertical interstaff space to . This corresponds to the `%%staffsep` formatting parameter (default: 46pt). -E Produce EPS output instead of simple PS. In this mode, each tune goes to a different file which name is "nnn.eps" or ".eps" (see option '-O') - 'nnn' is a sequence number incremented at each tune Output to stdout is forbidden. EPS files are normally embedded into Postscript documents, but they may be a way to generate graphical images. For example, using GhostScript:: abcm2ps voices -Ee7 gs -sDEVICE=pngmono -r80 -g590x174 \ -dBATCH -dNOPAUSE \ -sOutputFile=quitolis.png Out001.eps (the values for -g are the values of the bounding box in the .eps, multiplied by (80 / 72), where 80 is the value for -r, and 72 is the default resolution) -e [ <tune index list> ] [ <regular expression> ] Select which tunes from an ABC file to print. <tune index list> is either a comma-separated list of tune numbers (as per the `X:` header), or a regular expression which will be matched against the tune headers as a whole. The `-e` option must occur after an ABC file name and applies to that file. Ranges of tune numbers may be specified like `<t1>-<t2>`; <t2> may be omitted which means "all remaining tunes until the end of file". Note that filtering may cause problems, e.g., with global (non-tune) definitions in the ABC file. This corresponds to the `%%select` formatting parameter. -F <file>, +F Read the format (or PostScript) file <file>. When omitted, the default type of a format file is '.fmt'. In the form '+F', the default format file ('default.fmt') is not read. -f Enable flat beams (useful for bagpipe tunes). This corresponds to the `%%flatbeams` formatting parameter. -G, +G Omit slurs on grace notes. This corresponds to the `%%graceslurs` formatting parameter. -g Produce SVG output instead of EPS. In this mode each tune goes to a different file which name is 'Outnnn.svg' (see option '-O'). If the output is stdout (option '-O-'), all the SVG images are output without XML header. -H Display the current format values. -h Quick help, equivalent to "abcm2ps" without any arguments. ``` -------------------------------- ### Insert Reference Elements Source: https://github.com/lewdlime/abcm2ps/blob/master/abcm2ps.rst Insert reference elements into the PostScript or SVG output. ```shell -A ``` -------------------------------- ### Set Bars per Staff Line Source: https://github.com/lewdlime/abcm2ps/blob/master/abcm2ps.rst Attempt to typeset a specified number of bars on each staff line. Corresponds to the '%%barsperstaff' parameter. ```shell -B <int>, +B ``` -------------------------------- ### Run abcm2ps Command Source: https://github.com/lewdlime/abcm2ps/blob/master/README.md Basic usage of the abcm2ps command. Specify input files and options to generate PostScript output. Run `abcm2ps -h` for a list of command-line options. ```bash abcm2ps [options] file1 [file1_options] file2 [file2_options] ... ``` -------------------------------- ### Control abcm2ps Verbosity and Display Version Source: https://context7.com/lewdlime/abcm2ps/llms.txt Control output verbosity with quiet mode or display version and help information. Quiet mode shows only errors. ```bash # Quiet mode - show only errors abcm2ps -q sample.abc ``` ```bash # Display version number abcm2ps -V ``` ```bash # Display help and default settings abcm2ps -h ``` ```bash # Display current format values abcm2ps -H ``` -------------------------------- ### Convert EPS to PNG using GhostScript Source: https://github.com/lewdlime/abcm2ps/blob/master/abcm2ps.rst Convert generated EPS files to PNG format using GhostScript. Adjust -g values based on the EPS bounding box and desired resolution. ```shell gs -sDEVICE=pngmono -r80 -g590x174 -dBATCH -dNOPAUSE -sOutputFile=quitolis.png Out001.eps ``` -------------------------------- ### Set Formatting Parameter Source: https://github.com/lewdlime/abcm2ps/blob/master/abcm2ps.rst Set a specific formatting parameter to a given value, equivalent to setting it directly within the ABC source file. ```shell --<format> <value> ``` -------------------------------- ### Set Inline Format Parameters in ABC Files Source: https://context7.com/lewdlime/abcm2ps/llms.txt Format options can be set directly within ABC files using %% directives. These parameters control layout, scaling, fonts, and spacing. ```abc X:1 T:Formatted Tune %%landscape 1 %%scale 0.9 %%leftmargin 2cm %%titlefont Helvetica-Bold 18 %%composerfont Helvetica-Oblique 12 %%staffsep 50 %%barsperstaff 4 %%measurenb 0 M:C K:G |: G2AB c2Bc | d2ed c2BA :| ``` -------------------------------- ### Multi-Measure Voice Overlay Source: https://github.com/lewdlime/abcm2ps/blob/master/abcm2ps.rst Illustrates splitting multiple measures into two voices using the '(&...&...&)' construction. ```abc |!f!(&GG<G|GG F=E| E2 E(_D/E)|_D D C D |C4- |C &DC<C|CC_D C|=B,2_B,B, |_A,A,(G,/A,/)B,|F,4-|F,&)zzD=E| ``` -------------------------------- ### Run abcm2ps in Secure Mode Source: https://context7.com/lewdlime/abcm2ps/llms.txt Use secure mode to disable potentially unsafe PostScript commands. This is recommended when processing untrusted input files. ```bash abcm2ps -S untrusted.abc ``` -------------------------------- ### Voice Overlay in ABC Notation Source: https://context7.com/lewdlime/abcm2ps/llms.txt Layers multiple voices on the same staff using the '%%staves' directive and separate 'V:' headers. This allows for complex polyphonic textures. ```abc X:10 T:Voice overlap M:2/4 L:1/8 %%staves (1 2) K:C V:1 FEDC:GGGG|G2 G2|c4[|]GABc| V:2 GABc:FEDC|GD G>D|cBAG[|]G4| ``` -------------------------------- ### Organ Score with Multiple Manuals in ABC Notation Source: https://context7.com/lewdlime/abcm2ps/llms.txt Creates a multi-staff organ score with registration labels for different manuals. Each voice (V:) can be assigned a program number for MIDI output. ```abc X:6 T:Wär Gott nicht mit uns diese Zeit C:Johann Nicolaus Hanff M:C L:1/8 Q:1/4=66 %%staves [1 (2 3) 4] V:1 nm="Rückpos" V:2 nm="Organo" K:Am V:1 %%MIDI program 53 A3B c2c2 |d2e2 de/f/P ^c3/d/|d8 |z8 | V:2 %%MIDI program 73 z2E2- E2AG |F2E2 F2E2 |F6 F2|E2CD E3F/G/| V:3 %%MIDI program 73 z2C2- CB,A,2 |A,8 |A,6 D2|C2A,B, C3D/E/| V:4 %%MIDI program 73 z2A,2- A,G,F,E,|D,2^C,2 D,2A,,2 |D,,8 |z4 z2A,2| ``` -------------------------------- ### Tuplets in ABC Notation Source: https://context7.com/lewdlime/abcm2ps/llms.txt Defines various tuplet groupings, including triplets (3), quintuplets (5), and sextuplets (6). Use parentheses to group notes and specify the tuplet ratio. ```abc X:9 T:Strange tuplet cases M:C K:C L:1/8 (3cde c(3d/e/f/ |(3zcd (3z/c/d/ (3czc c(4d/e/f/z/ d2-(3def | (3::2 c4d2 (3::4 cde/f/ (3gfe | (3z2G,2A,2 (3C2E2G2 |e-(5e//f//g//f//g// de- (5e//f//g//f//g// | (6z/c/e/g/e/c/ (6z/c/e/g/e/c/ | (3d/e/f/g-(3g/f/e/d || ``` -------------------------------- ### Guitar Chords and Annotations in ABC Notation Source: https://context7.com/lewdlime/abcm2ps/llms.txt Adds chord symbols (e.g., "Em", "Am7") and text annotations above the musical staff. Supports changing time signatures and key signatures within the same piece. ```abc X:8 T:Changing Time or Key Signatures, Guitar Chords M:6/8 K:G "Em"ABc def | M:9/8 "Am7"A,CC DFF GBB |[M:4/4]"G"a,2b,2"D"c2d2 ||[L:1/4][K:Bb]"Eb"e4-| K:Gb M:6/8 L:1/8 | "Gb"ede edc | def fed |1 "A"efg "D"gfe | e6 :|2 "G"gag "F"f"Em"e"D7"d | "C"c6 |] ``` -------------------------------- ### Generate EPS Output Source: https://github.com/lewdlime/abcm2ps/blob/master/abcm2ps.rst Produce Encapsulated PostScript (EPS) output. Each tune is saved to a separate file named '<name>nnn.eps' or '<title>.eps'. Output to stdout is forbidden in this mode. ```shell abcm2ps voices -Ee7 ``` -------------------------------- ### ABC Notation Basic Tune Structure Source: https://context7.com/lewdlime/abcm2ps/llms.txt Defines the fundamental structure of an ABC music notation file, including essential header fields like tune number (X:), title (T:), composer (C:), rhythm (R:), meter (M:), default note length (L:), tempo (Q:), and key signature (K:). ```abc X:1 T:My First Tune T:Subtitle C:Composer Name O:Country/Region R:Rhythm (e.g., Jig, Reel) M:6/8 L:1/8 Q:1/4=120 K:G |: GAB c2d | edB G3 :| |: g2g fef | edB G3 :| ``` -------------------------------- ### Force Dynamic Mark Positioning Source: https://github.com/lewdlime/abcm2ps/blob/master/abcm2ps.rst Forces dynamic marks to be positioned below the staff. ```abc V:part5 dyn=down ``` -------------------------------- ### EPS File Inclusion Source: https://github.com/lewdlime/abcm2ps/blob/master/abcm2ps.rst Includes an Encapsulated PostScript (EPS) file within an ABC tune using a pseudo-comment. ```abc %%EPS <file> ``` -------------------------------- ### Microtone Pitch Notation Source: https://github.com/lewdlime/abcm2ps/blob/master/abcm2ps.rst Indicates microtone pitches using a fraction after an accidental. Defaults to 1/2 if omitted. ```abc ^3/4c ``` ```abc ^/c ``` -------------------------------- ### Generate SVG Output Source: https://github.com/lewdlime/abcm2ps/blob/master/abcm2ps.rst Produce Scalable Vector Graphics (SVG) output. Each tune is saved to a separate file named 'Outnnn.svg'. If stdout is used, SVG images are output without an XML header. ```shell abcm2ps voices -g ``` -------------------------------- ### Define Voice with Name Source: https://github.com/lewdlime/abcm2ps/blob/master/abcm2ps.rst Defines a voice with a display name 'My Violin Part'. Newlines can be included for formatting. ```abc V:part1 name="My Violin Part\n(Solo)" ``` -------------------------------- ### Lyrics and Vocals Alignment in ABC Notation Source: https://context7.com/lewdlime/abcm2ps/llms.txt Aligns lyrics under musical notes, supporting multiple verses. The 'w:' line specifies the lyrics for the preceding musical line. ```abc X:13 T:Vocals Example M:C| K:F L:1/4 BA |: "Gm"G2AB|"C7"cd2e|"F"f2fe|"Dm"dA2d| w: Close your eyes and I'll kiss you, to-mor-row I'll miss you; re- "Bb"d2dc|"Gm"B2GF|"Eb"G4-|"Gm"G2 z2| w:mem-ber I'll al-ways be true._ ``` -------------------------------- ### Define Voice with Clef Source: https://github.com/lewdlime/abcm2ps/blob/master/abcm2ps.rst Defines a new voice named 'violin1' and sets its clef to treble on the second line. ```abc V:violin1 clef=treble2 ``` -------------------------------- ### Secure Mode in ABC Notation Processing Source: https://context7.com/lewdlime/abcm2ps/llms.txt Command-line option to enable secure mode, which disables potentially dangerous features when processing untrusted ABC input. This is a safety measure. ```bash # Enable secure mode for processing untrusted input abcm2ps --secure input.abc -o output.ps ``` -------------------------------- ### Omit Slurs on Grace Notes Source: https://github.com/lewdlime/abcm2ps/blob/master/abcm2ps.rst Omit slurs on grace notes. Corresponds to the '%%graceslurs' parameter. ```shell -G, +G ``` -------------------------------- ### Clef Definitions in ABC Notation Source: https://context7.com/lewdlime/abcm2ps/llms.txt Specifies various clefs (bass, alto, treble) directly within the key and voice headers. Use K: followed by the clef name and optional octave. ```abc X:1 T:All clefs M:C L:1/4 K:C bass "bass"G,CEG|[K:bass3]"bass3"G,CEG|[K:alto4]"alto4"G,CEG|[K:alto]"alto"G,CEG| [K:alto2]"alto2"G,CEG|[K:alto1]"alto1"G,CEG|[K:treble]"treble"G,CEG| [K:treble1]"treble1"G,CEG|[K:treble-8]"treble-8"G,CEG|[K:treble+8]"treble+8"G,CEG| ``` -------------------------------- ### Define Score with Voice Blocks Source: https://github.com/lewdlime/abcm2ps/blob/master/abcm2ps.rst Groups voice groups '(v1 v2)' and '(v3 v4)' into a larger voice block, indicated by a big brace, suitable for keyboard music. ```abc %%score {(v1 v2) (v3 v4)} ``` -------------------------------- ### Set Vertical Interstaff Space Source: https://github.com/lewdlime/abcm2ps/blob/master/abcm2ps.rst Set the vertical space between staves. Corresponds to the '%%staffsep' parameter. ```shell -d <unit> ``` -------------------------------- ### Merge Voice onto Previous Staff Source: https://github.com/lewdlime/abcm2ps/blob/master/abcm2ps.rst Instructs the system to place the current voice on the same staff as the preceding voice. ```abc V:part3 merge ``` -------------------------------- ### XHTML with Embedded SVG Output Source: https://context7.com/lewdlime/abcm2ps/llms.txt Generates XHTML output with embedded SVG graphics. This is useful for web display. ```bash # Generate XHTML with embedded SVG abcm2ps -X sample.abc ``` -------------------------------- ### Set Staff Scale Source: https://github.com/lewdlime/abcm2ps/blob/master/abcm2ps.rst Sets the scale of the staff for this voice to 1.5. ```abc V:part7 staffscale=1.5 ``` -------------------------------- ### Choral (SATB) Score in ABC Notation Source: https://context7.com/lewdlime/abcm2ps/llms.txt Defines a four-part vocal score (Soprano, Alto, Tenor, Bass) with lyrics using ABC notation. Ensure correct voice assignments and lyric alignment for proper rendering. ```abc X:5 T:Tridal a ra va c'halon M:4/4 L:1/8 Q:1/4=48 %%staves [(S A) (T B)] K:A V:S EEE |C3E EEFF |(D2F3) FFF |E3C EEDD |C4 z:| w:Ka-na a |rin, ka-na a rin be-|pred,* rag an Ao-|trou en-eus va zan-tel-|let. V:A CCC |A,3A, B,CA,A, |(B,2A,3) DDB, |C3A, B,A,A,G, |A,4 z:| V:T A,A,A,|E,3E, G,A,F,F, |(F,2F,3) A,A,G,|A,3A, G,A,F,E, |E,4 z:| V:B A,,A,,A,,|A,,3C, B,,A,,D,D,|(B,,2D,3) D,D,B,,|E,3F, E,C,B,,E,, |A,,4 z:| ``` -------------------------------- ### Force Stem Direction Source: https://github.com/lewdlime/abcm2ps/blob/master/abcm2ps.rst Forces the direction of note stems for this voice to be upwards. ```abc V:part4 gstem=up ``` -------------------------------- ### Set Staff Lines Source: https://github.com/lewdlime/abcm2ps/blob/master/abcm2ps.rst Sets the number of lines for the staff associated with this voice to 4. ```abc V:part6 stafflines=4 ``` -------------------------------- ### Define Score with Voice Groups Source: https://github.com/lewdlime/abcm2ps/blob/master/abcm2ps.rst Groups voices 'v1' and 'v2' into a single staff group. Voice 'v3' will be on its own staff. ```abc %%score (v1 v2) v3 ``` -------------------------------- ### Define Percussion Clef Source: https://github.com/lewdlime/abcm2ps/blob/master/abcm2ps.rst Sets the percussion clef mode. Accidentals will change note head glyphs, with defaults for sharp ('x') and flat (circled 'x'). ```abc clef=perc ``` -------------------------------- ### Define Voice with Subname Source: https://github.com/lewdlime/abcm2ps/blob/master/abcm2ps.rst Defines a voice with a subname 'Section A'. This name appears on staves after the first. ```abc V:part2 snm="Section A" ``` -------------------------------- ### Define Clef Type and Line Source: https://github.com/lewdlime/abcm2ps/blob/master/abcm2ps.rst Specifies the clef type and the line on which it is placed. '+8' or '-8' can be added to indicate an octave above or below. ```abc clef=G2+8 ``` -------------------------------- ### Prevent Measure Bars Between Staves Source: https://github.com/lewdlime/abcm2ps/blob/master/abcm2ps.rst Specifies that measure bars should not be drawn between the staves assigned to voices 'v1' and 'v2'. ```abc %%staves (v1 | v2) ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.