pg2mma(1)
β¨ pg2mma β bestie, it's giving .pat-to-MMA converter β¨
okay so listen. pg2mma is a lil command-line cutie that lives in the pg2mma(1) manual section, and her whole job is converting PGMusic .pat files into MMA format. that's it. that's the gig. and she slays at it π
πΈ NAME πΈ
pg2mma β convert PGMusic .pat file to MMA format π
π¦ SYNOPSIS π¦
pg2mma <infile> <outfile>
No options. Zero. None. Both infile and outfile must be specified, like, both of them, no skipping. And heads up bestie: no files will be overwritten. she is polite like that π
π DESCRIPTION π
So this program's whole moment is converting a PGMusic .pat file β the kind that's stuffed with extended patch definitions β over into MMA format. iconic behavior honestly.
The .pat files will contain lines like:
[
[Yamaha PSR 9000 - E.Piano
[ (P1)
4.0.114=Galaxy EP
4.0.117=Stage EP
4.0.115=Polaris EP
5.0.118=Jazz Chorus
5.0.113=Hyper Tines
4.0.119=Cool! EP
4.0.120=Phase EP
5.0.116=New Tines
and this program will convert the above to:
Begin Patch Set
// Yamaha PSR 9000 - E.Piano
// (P1)
4.0.114=GalaxyEp
4.0.117=StageEp
4.0.115=PolarisEp
5.0.118=JazzChorus
5.0.113=HyperTines
4.0.119=Cool!Ep
4.0.120=PhaseEp
5.0.116=NewTines
End
see what she did there? the names in the original file get converted to CamelCase πͺβ¨ and both ; and [] comments get converted to MMA // style. glow-up fr fr.
The conversion also recognizes the "ONEBASED" keyword. When found, subsequent patch values will be decremented by 1. noted π
The produced files should be useable directly by mma. however β and bestie I need you to hear me on this β there are a few cautions:
- the
.patfiles we've looked at do contain errors. not our fault, we're just the messenger π - many of the
.patfiles redefine existing GM voice names. You will need to change these names or put up with warning messages from MMA. your call, but the warnings will be yapping π
lowkey a vibe check: this converter is a whole main character, but she's working with messy source material. don't come for her, come for the .pat files.
π«Ά SEE ALSO π«Ά
π RESOURCES π
The latest version of this program is always distributed with MMA and is available at http://www.mellowood.ca/mma π
β AUTHOR β
Bob van der Poel <bob@mellowood.ca> β the actual legend behind all this π
π LICENSE π
pg2mma is Copyright 2002-2008 Bob van der Poel. Free use of this software is granted under the terms of the GNU General Public License. periodt. π
okay that's the whole page, no cap. this was pg2mma(1), dated 2015-09-17 β go forth and convert those patches, bestie, you're gonna eat πβ¨
π¦ where this page comes from
- debian bookworm: mma 21.09-1 Β· GPL-2.0-or-later
- debian trixie: mma 21.09-1 Β· GPL-2.0-or-later
- ubuntu jammy: mma 21.09-1 Β· GPL-2.0-or-later
- ubuntu noble: mma 21.09-1 Β· GPL-2.0-or-later
- ubuntu resolute: mma 21.09-1build1 Β· GPL-2.0-or-later
- ubuntu stonking: mma 21.09-1build1 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms