ModPlug Central

OpenMPT => Help and Questions => Topic started by: gustinmi on June 16, 2016, 13:19:46

Title: Paste or import patter content from external source (plain text CSV formatted)
Post by: gustinmi on June 16, 2016, 13:19:46
Hi. I would like to know, if there is a program or utility, that would allow to create patterns (or convert to mpmt format) from raw text.
For example, i would have in plain text following

|G#521...SC2
|G#521...SC1
|G#620......


Is there a way to import this into tracker or convert to format tracker can understand?

Thanks in advance for any help.
Title: Re: Paste or import patter content from external source (plain text CSV formatted)
Post by: Saga Musix on June 16, 2016, 13:35:28
Yes, you are merely missing the format identifier:
ModPlug Tracker MPT
|F#512v01A01|F#512v01A01
|G-523p02B02|G-523p02B02

This way you can directly paste it into OpenMPT. Without the first line, OpenMPT cannot know that the clipboard content is pattern data (and most importantly, if the command letters are supposed to be interpreted as MOD-style or S3M-style commands).

Alternatively, you can just write binary files yourself following the IT format specifications (https://github.com/schismtracker/schismtracker/wiki/ITTECH.TXT) (MPTM is a superset of IT).
Title: Re: Paste or import patter content from external source (plain text CSV formatted)
Post by: StarWolf3000 on June 17, 2016, 08:00:45
The identifiers for line 1 (for text-based generation) are as follows:

ProTracker (.mod):
ModPlug Tracker MOD

ScreamTracker 3 (.s3m):
ModPlug Tracker S3M

FastTracker 2 (.xm):
ModPlug Tracker  XM
(yes, with two spaces after "Tracker")

Impulse Tracker (.it):
ModPlug Tracker  IT
(yes, with two spaces after "Tracker")

OpenMPT (.mptm) (IT extended):
ModPlug Tracker MPT
Title: Re: Paste or import patter content from external source (plain text CSV formatted)
Post by: Saga Musix on June 17, 2016, 11:25:29
To be precise, the extra spaces are only needed for interoperability with older OpenMPT versions, if you just want to support the latest, you can leave out the second space for XM/IT.
Title: Re: Paste or import patter content from external source (plain text CSV formatted)
Post by: StarWolf3000 on June 17, 2016, 12:50:18
Quote from: Saga Musix on June 17, 2016, 11:25:29
To be precise, the extra spaces are only needed for interoperability with older OpenMPT versions, if you just want to support the latest, you can leave out the second space for XM/IT.
Ah, okay. I used long time the old Modplug Tracker, and there was the extra space required, so I assumed that this didn't change with OpenMPT.