<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[ChipMusic.org - Convert hundreds of .opm's to .tfi's, in one sweep?]]></title>
	<link rel="self" href="https://chipmusic.org:80/forums/feed/atom/topic/9929/"/>
	<updated>2013-02-15T03:15:02Z</updated>
	<generator>PunBB</generator>
	<id>https://chipmusic.org/forums/topic/9929/convert-hundreds-of-opms-to-tfis-in-one-sweep/</id>
		<entry>
			<title type="html"><![CDATA[Re: Convert hundreds of .opm's to .tfi's, in one sweep?]]></title>
			<link rel="alternate" href="https://chipmusic.org/forums/post/156298/#p156298"/>
			<content type="html"><![CDATA[<div class="quotebox"><cite>metropeak wrote:</cite><blockquote><p>Wow nice detective work - I owe you one dude! That thing sure is picky, that&#039;s great though, should be able to whip up a script to batch convert all my OPMs now and update my site, thanks <img src="https://chipmusic.org/forums/img/smilies/big_smile.png" width="15" height="15" alt="big_smile" /></p></blockquote></div><p>Np! Anything to help out!</p>]]></content>
			<author>
				<name><![CDATA[robugaa]]></name>
				<uri>https://chipmusic.org/robugaa</uri>
			</author>
			<updated>2013-02-15T03:15:02Z</updated>
			<id>https://chipmusic.org/forums/post/156298/#p156298</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Convert hundreds of .opm's to .tfi's, in one sweep?]]></title>
			<link rel="alternate" href="https://chipmusic.org/forums/post/156280/#p156280"/>
			<content type="html"><![CDATA[<p>Wow nice detective work - I owe you one dude! That thing sure is picky, that&#039;s great though, should be able to whip up a script to batch convert all my OPMs now and update my site, thanks <img src="https://chipmusic.org/forums/img/smilies/big_smile.png" width="15" height="15" alt="big_smile" /></p>]]></content>
			<author>
				<name><![CDATA[metropeak]]></name>
				<uri>https://chipmusic.org/metropeak</uri>
			</author>
			<updated>2013-02-15T00:30:30Z</updated>
			<id>https://chipmusic.org/forums/post/156280/#p156280</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Convert hundreds of .opm's to .tfi's, in one sweep?]]></title>
			<link rel="alternate" href="https://chipmusic.org/forums/post/156122/#p156122"/>
			<content type="html"><![CDATA[<div class="quotebox"><cite>metropeak wrote:</cite><blockquote><p>Thanks for the comments!</p><p>But yeah, I was hoping to avoid extracting them from the VGM again, since I&#039;ll have no way to match them up with my already extracted, split and sorted OPMs...</p></blockquote></div><br /><p>Aha.... I solved your problem.</p><p>When opened in a text editor. your .opm looks like this:</p><div class="codebox"><pre><code>//MiOPMdrv sound bank Paramer Ver2002.04.22
//LFO: LFRQ AMD PMD WF NFRQ
//@:[Num] [Name]
//CH: PAN    FL CON AMS PMS SLOT NE
//[OPname]: AR D1R D2R    RR D1L    TL    KS MUL DT1 DT2 AMS-EN

@:0 Instrument 0
LFO: 0 0 0 0 0
CH: 64 4 2 0 0 120 0
M1: 3 0 3 15 1 30 0 10 3 0 0
C1: 18 19 2 15 1 24 0 3 4 0 0
M2: 18 19 2 15 0 38 0 5 3 0 0
C2: 17 0 1 15 0 22 0 1 4 0 0</code></pre></div><p>Apparently, the .opm file must have 128 banks defined in it. So I opened up an .opm that converted successfully and found that after all of their defined instruments, the rest of the bank looked like this:</p><div class="codebox"><pre><code>@:1 no Name
LFO: 0 0 0 0 0
CH: 64 0 0 0 0 64 0
M1: 31 0 0 4 0 0 0 1 0 0 0
C1: 31 0 0 4 0 0 0 1 0 0 0
M2: 31 0 0 4 0 0 0 1 0 0 0
C2: 31 0 0 4 0 0 0 1 0 0 0

@:2 no Name
LFO: 0 0 0 0 0
CH: 64 0 0 0 0 64 0
M1: 31 0 0 4 0 0 0 1 0 0 0
C1: 31 0 0 4 0 0 0 1 0 0 0
M2: 31 0 0 4 0 0 0 1 0 0 0
C2: 31 0 0 4 0 0 0 1 0 0 0

...... (all the way to 127)

@:127 no Name
LFO: 0 0 0 0 0
CH: 64 0 0 0 0 64 0
M1: 31 0 0 4 0 0 0 1 0 0 0
C1: 31 0 0 4 0 0 0 1 0 0 0
M2: 31 0 0 4 0 0 0 1 0 0 0
C2: 31 0 0 4 0 0 0 1 0 0 0</code></pre></div><p>So simply filling up any unused slots with these should fix your problem.</p><p>So, here is the complete .opm file:<br /><a href="http://dl.dropbox.com/u/4117079/Accordion%20(MZ%234)%20(CREDITS%2313).opm" target="_blank">http://dl.dropbox.com/u/4117079/Accordi &#133; %2313).opm</a></p><p>and here is the resulting .tfi file:<br /><a href="http://dl.dropbox.com/u/4117079/Instrument%200.tfi" target="_blank">http://dl.dropbox.com/u/4117079/Instrument%200.tfi</a></p>]]></content>
			<author>
				<name><![CDATA[robugaa]]></name>
				<uri>https://chipmusic.org/robugaa</uri>
			</author>
			<updated>2013-02-13T19:52:54Z</updated>
			<id>https://chipmusic.org/forums/post/156122/#p156122</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Convert hundreds of .opm's to .tfi's, in one sweep?]]></title>
			<link rel="alternate" href="https://chipmusic.org/forums/post/156116/#p156116"/>
			<content type="html"><![CDATA[<p>Well, if we can&#039;t rule out the possibility of vopmxtfi.exe being broken, then someone will have to create a new version of it...Wasn&#039;t .tfi, Shiru&#039;s specification? I wish I knew more about it, myself.</p>]]></content>
			<author>
				<name><![CDATA[robugaa]]></name>
				<uri>https://chipmusic.org/robugaa</uri>
			</author>
			<updated>2013-02-13T19:04:21Z</updated>
			<id>https://chipmusic.org/forums/post/156116/#p156116</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Convert hundreds of .opm's to .tfi's, in one sweep?]]></title>
			<link rel="alternate" href="https://chipmusic.org/forums/post/155071/#p155071"/>
			<content type="html"><![CDATA[<p>Thanks for the comments!</p><p>But yeah, I was hoping to avoid extracting them from the VGM again, since I&#039;ll have no way to match them up with my already extracted, split and sorted OPMs...</p>]]></content>
			<author>
				<name><![CDATA[metropeak]]></name>
				<uri>https://chipmusic.org/metropeak</uri>
			</author>
			<updated>2013-02-07T04:50:06Z</updated>
			<id>https://chipmusic.org/forums/post/155071/#p155071</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Convert hundreds of .opm's to .tfi's, in one sweep?]]></title>
			<link rel="alternate" href="https://chipmusic.org/forums/post/155025/#p155025"/>
			<content type="html"><![CDATA[<p>Yeah there must be something wrong with that .opm or maybe even the vopmxtfi.exe tool. If you can get ahold of a .vgm that has what you need I recommend using the vgm2tfi.exe tool. That&#039;s what I used.</p><p><a href="http://www.mdscene.net/md/shiru/vgm2tfi.zip" target="_blank">http://www.mdscene.net/md/shiru/vgm2tfi.zip</a></p><br /><p>By the way, your site is very cool. I like the previews!!</p>]]></content>
			<author>
				<name><![CDATA[robugaa]]></name>
				<uri>https://chipmusic.org/robugaa</uri>
			</author>
			<updated>2013-02-07T02:28:16Z</updated>
			<id>https://chipmusic.org/forums/post/155025/#p155025</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Convert hundreds of .opm's to .tfi's, in one sweep?]]></title>
			<link rel="alternate" href="https://chipmusic.org/forums/post/155010/#p155010"/>
			<content type="html"><![CDATA[<div class="quotebox"><cite>robugaa wrote:</cite><blockquote><p>On a side note, I think it would be cool if someone could figure out how to write an algorithm to determine what type of patch each .tfi is (brass, guitar, bass, bells, etc) based on the register data or w/e, and organize them into folders accordingly, with the name of the game and song still intact somehow. Idk, just an idea that was floating around in my head.</p></blockquote></div><p>Would sure beat having to manually categorize them like I had to do for my Sonic 1 soundpack release. Link:<br /><a href="http://metropeak.ca/packs/" target="_blank">http://metropeak.ca/packs/</a>[SotXB]%20[Vol.01]%20Sonic%20the%20Hedgehog%201/index.html<br />(silly messageboard keeps breaking the link, copy and paste the whole thing, same for the link below)</p><p>I did use scripts to break apart the OPMs and in the process remove duplicates which helped.</p><p>Anyway, I&#039;m actually having trouble myself converting the OPMs I released there into TFIs. vopmxtfi.exe gives me the same &quot;0 instruments converted&quot; error - even with single OPMs, is there something wrong with the format of these files? This is a sample file: <a href="http://metropeak.ca/packs/" target="_blank">http://metropeak.ca/packs/</a>[SotXB]%20[Vol.01]%20Sonic%20the%20Hedgehog%201/A-LEADS/Accordion%20%28MZ%234%29%20%28CREDITS%2313%29.opm</p><p>Something I&#039;m missing? Perhaps something wrong with the format?</p>]]></content>
			<author>
				<name><![CDATA[metropeak]]></name>
				<uri>https://chipmusic.org/metropeak</uri>
			</author>
			<updated>2013-02-07T00:49:18Z</updated>
			<id>https://chipmusic.org/forums/post/155010/#p155010</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Convert hundreds of .opm's to .tfi's, in one sweep?]]></title>
			<link rel="alternate" href="https://chipmusic.org/forums/post/153283/#p153283"/>
			<content type="html"><![CDATA[<p>Thank you Robugaa for this massive patch collection, gonna make good use of it <img src="https://chipmusic.org/forums/img/smilies/smile.png" width="15" height="15" alt="smile" /></p>]]></content>
			<author>
				<name><![CDATA[DJ-PIE]]></name>
				<uri>https://chipmusic.org/DJ-PIE</uri>
			</author>
			<updated>2013-01-28T23:02:23Z</updated>
			<id>https://chipmusic.org/forums/post/153283/#p153283</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Convert hundreds of .opm's to .tfi's, in one sweep?]]></title>
			<link rel="alternate" href="https://chipmusic.org/forums/post/153095/#p153095"/>
			<content type="html"><![CDATA[<p>That all sounds nice.</p>]]></content>
			<author>
				<name><![CDATA[robugaa]]></name>
				<uri>https://chipmusic.org/robugaa</uri>
			</author>
			<updated>2013-01-28T02:28:37Z</updated>
			<id>https://chipmusic.org/forums/post/153095/#p153095</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Convert hundreds of .opm's to .tfi's, in one sweep?]]></title>
			<link rel="alternate" href="https://chipmusic.org/forums/post/153075/#p153075"/>
			<content type="html"><![CDATA[<p>+1</p>]]></content>
			<author>
				<name><![CDATA[Aly James]]></name>
				<uri>https://chipmusic.org/Aly+James</uri>
			</author>
			<updated>2013-01-28T01:40:16Z</updated>
			<id>https://chipmusic.org/forums/post/153075/#p153075</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Convert hundreds of .opm's to .tfi's, in one sweep?]]></title>
			<link rel="alternate" href="https://chipmusic.org/forums/post/153042/#p153042"/>
			<content type="html"><![CDATA[<div class="quotebox"><cite>robugaa wrote:</cite><blockquote><p>On a side note, I think it would be cool if someone could figure out how to write an algorithm to determine what type of patch each .tfi is (brass, guitar, bass, bells, etc) based on the register data or w/e, and organize them into folders accordingly, with the name of the game and song still intact somehow. Idk, just an idea that was floating around in my head.</p></blockquote></div><p>How about a .VGM file that plays demo notes for all patches in a file?</p>]]></content>
			<author>
				<name><![CDATA[little-scale]]></name>
				<uri>https://chipmusic.org/little-scale</uri>
			</author>
			<updated>2013-01-27T22:21:11Z</updated>
			<id>https://chipmusic.org/forums/post/153042/#p153042</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Convert hundreds of .opm's to .tfi's, in one sweep?]]></title>
			<link rel="alternate" href="https://chipmusic.org/forums/post/153041/#p153041"/>
			<content type="html"><![CDATA[<p>I&#039;m currently writing a tool that converts .OPM to GenMDM. This tool will likely include batch processing. </p><p>I can probably add support for .TFI files... let me get it working with GenMDM .genm files first, and I&#039;ll go from there <img src="https://chipmusic.org/forums/img/smilies/smile.png" width="15" height="15" alt="smile" /></p>]]></content>
			<author>
				<name><![CDATA[little-scale]]></name>
				<uri>https://chipmusic.org/little-scale</uri>
			</author>
			<updated>2013-01-27T22:20:23Z</updated>
			<id>https://chipmusic.org/forums/post/153041/#p153041</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Convert hundreds of .opm's to .tfi's, in one sweep?]]></title>
			<link rel="alternate" href="https://chipmusic.org/forums/post/152098/#p152098"/>
			<content type="html"><![CDATA[<p>Do not need necessary trackers...You could use midi2vgm...to translate your track to VGM format, with a lot of work indeed. with it You can assign some instruments parameters with an editor ( loads/import every format ) to classic midi program, like said : my custom instruments = Midi Acoustic Grand piano and convert a midi file to a VGM from there <img src="https://chipmusic.org/forums/img/smilies/smile.png" width="15" height="15" alt="smile" /> homebrew ready<br /><a href="http://forums.sonicretro.org/index.php?showtopic=23851&amp;st=0&amp;p=604458&amp;#entry604458" target="_blank">http://forums.sonicretro.org/index.php? &#133; ntry604458</a></p><p>&quot;Very nice how you can simply use a single instance of that VST to create a whole track&quot; <br />in fact not really, the FMDRIVE YM2612 VST is able to output only one channel at a time, so you just load multiple instances and freeze, unfreeze them to edit <img src="https://chipmusic.org/forums/img/smilies/smile.png" width="15" height="15" alt="smile" /> of course you can also do it the tracker way as you can switch program changes and switch from FM to DAC on one channel like say : FM bass/program change/DAC hihat/Program change/ anoher FM sound/DAC snare samples etc...you also have the choice to be polyphonic thus removing the mono channel limitation...<br />++</p>]]></content>
			<author>
				<name><![CDATA[Aly James]]></name>
				<uri>https://chipmusic.org/Aly+James</uri>
			</author>
			<updated>2013-01-23T01:39:00Z</updated>
			<id>https://chipmusic.org/forums/post/152098/#p152098</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Convert hundreds of .opm's to .tfi's, in one sweep?]]></title>
			<link rel="alternate" href="https://chipmusic.org/forums/post/152090/#p152090"/>
			<content type="html"><![CDATA[<div class="quotebox"><cite>Aly James wrote:</cite><blockquote><p>Indeed that would be rad ! nice to share <img src="https://chipmusic.org/forums/img/smilies/smile.png" width="15" height="15" alt="smile" /><br />I am actually working on a The FMDRIVE YM2612 VST emulation &amp; improvement of the sega megadrive soundchip that is aimed toward easy sound design and work free from the trackers in any DAWs on Windows, I mean you know...VOPM &amp; VGMM are great but lacks in easy engaging GUI for sound designing.<br />That is the reason I have not implemented and import function for opm,tfi etc FM instruments formats...then you will have to manually enter parameters from OPM files or VGM dumps if you want to copy instruments, Not to hard, it is done in 2 min ;p .<br />Rather an interesting approach is to start tweaking from scratch with basic FM knowledge and experiment from there <img src="https://chipmusic.org/forums/img/smilies/smile.png" width="15" height="15" alt="smile" /><br />The best part is that it will be compatible with the real hardware, acting as a controller for the GENMDM midi interface<br />anyway thank you! and check it out<br />cheers<br /><a href="http://www.youtube.com/watch?v=nxAKR9f437w&amp;list=PL2X0FVUU6ExZq-HA6AqtRleTdnhRvNBIq" target="_blank">http://www.youtube.com/watch?v=nxAKR9f4 &#133; TdnhRvNBIq</a></p></blockquote></div><p>Wow, holy mackerel. That thing is legit. I liked the SSG video. Very nice how you can simply use a single instance of that VST to create a whole track. The presentation is amazing as well; that 3D effect was nice. This thing wouldn&#039;t be able to output a VGM format or some sort of raw data, would it? One reason I&#039;m trying to get the hang of the tracker is that I would like to be able to put music into real homebrew, in the future.</p>]]></content>
			<author>
				<name><![CDATA[robugaa]]></name>
				<uri>https://chipmusic.org/robugaa</uri>
			</author>
			<updated>2013-01-23T01:07:34Z</updated>
			<id>https://chipmusic.org/forums/post/152090/#p152090</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Convert hundreds of .opm's to .tfi's, in one sweep?]]></title>
			<link rel="alternate" href="https://chipmusic.org/forums/post/152086/#p152086"/>
			<content type="html"><![CDATA[<p>Indeed that would be rad ! nice to share <img src="https://chipmusic.org/forums/img/smilies/smile.png" width="15" height="15" alt="smile" /><br />I am actually working on a The FMDRIVE YM2612 VST emulation &amp; improvement of the sega megadrive soundchip that is aimed toward easy sound design and work free from the trackers in any DAWs on Windows, I mean you know...VOPM &amp; VGMM are great but lacks in easy engaging GUI for sound designing.<br />That is the reason I have not implemented and import function for opm,tfi etc FM instruments formats...then you will have to manually enter parameters from OPM files or VGM dumps if you want to copy instruments, Not to hard, it is done in 2 min ;p .<br />Rather an interesting approach is to start tweaking from scratch with basic FM knowledge and experiment from there <img src="https://chipmusic.org/forums/img/smilies/smile.png" width="15" height="15" alt="smile" /><br />The best part is that it will be compatible with the real hardware, acting as a controller for the GENMDM midi interface<br />anyway thank you! and check it out<br />cheers<br /><a href="http://www.youtube.com/watch?v=nxAKR9f437w&amp;list=PL2X0FVUU6ExZq-HA6AqtRleTdnhRvNBIq" target="_blank">http://www.youtube.com/watch?v=nxAKR9f4 &#133; TdnhRvNBIq</a></p>]]></content>
			<author>
				<name><![CDATA[Aly James]]></name>
				<uri>https://chipmusic.org/Aly+James</uri>
			</author>
			<updated>2013-01-23T00:42:42Z</updated>
			<id>https://chipmusic.org/forums/post/152086/#p152086</id>
		</entry>
</feed>
