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 .pat files we've looked at do contain errors. not our fault, we're just the messenger 😭
  • many of the .pat files 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