<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[ChipMusic.org - Convert hundreds of .opm's to .tfi's, in one sweep?]]></title>
		<link>https://chipmusic.org/forums/topic/9929/convert-hundreds-of-opms-to-tfis-in-one-sweep/</link>
		<description><![CDATA[The most recent posts in Convert hundreds of .opm's to .tfi's, in one sweep?.]]></description>
		<lastBuildDate>Fri, 15 Feb 2013 03:15:02 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Convert hundreds of .opm's to .tfi's, in one sweep?]]></title>
			<link>https://chipmusic.org/forums/post/156298/#p156298</link>
			<description><![CDATA[<b><i>robugaa says:</i></b><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>]]></description>
			<pubDate>Fri, 15 Feb 2013 03:15:02 +0000</pubDate>
			<guid>https://chipmusic.org/forums/post/156298/#p156298</guid>
		</item>
		<item>
			<title><![CDATA[Re: Convert hundreds of .opm's to .tfi's, in one sweep?]]></title>
			<link>https://chipmusic.org/forums/post/156280/#p156280</link>
			<description><![CDATA[<b><i>metropeak says:</i></b><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>]]></description>
			<pubDate>Fri, 15 Feb 2013 00:30:30 +0000</pubDate>
			<guid>https://chipmusic.org/forums/post/156280/#p156280</guid>
		</item>
		<item>
			<title><![CDATA[Re: Convert hundreds of .opm's to .tfi's, in one sweep?]]></title>
			<link>https://chipmusic.org/forums/post/156122/#p156122</link>
			<description><![CDATA[<b><i>robugaa says:</i></b><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>]]></description>
			<pubDate>Wed, 13 Feb 2013 19:52:54 +0000</pubDate>
			<guid>https://chipmusic.org/forums/post/156122/#p156122</guid>
		</item>
		<item>
			<title><![CDATA[Re: Convert hundreds of .opm's to .tfi's, in one sweep?]]></title>
			<link>https://chipmusic.org/forums/post/156116/#p156116</link>
			<description><![CDATA[<b><i>robugaa says:</i></b><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>]]></description>
			<pubDate>Wed, 13 Feb 2013 19:04:21 +0000</pubDate>
			<guid>https://chipmusic.org/forums/post/156116/#p156116</guid>
		</item>
		<item>
			<title><![CDATA[Re: Convert hundreds of .opm's to .tfi's, in one sweep?]]></title>
			<link>https://chipmusic.org/forums/post/155071/#p155071</link>
			<description><![CDATA[<b><i>metropeak says:</i></b><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>]]></description>
			<pubDate>Thu, 07 Feb 2013 04:50:06 +0000</pubDate>
			<guid>https://chipmusic.org/forums/post/155071/#p155071</guid>
		</item>
		<item>
			<title><![CDATA[Re: Convert hundreds of .opm's to .tfi's, in one sweep?]]></title>
			<link>https://chipmusic.org/forums/post/155025/#p155025</link>
			<description><![CDATA[<b><i>robugaa says:</i></b><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>]]></description>
			<pubDate>Thu, 07 Feb 2013 02:28:16 +0000</pubDate>
			<guid>https://chipmusic.org/forums/post/155025/#p155025</guid>
		</item>
		<item>
			<title><![CDATA[Re: Convert hundreds of .opm's to .tfi's, in one sweep?]]></title>
			<link>https://chipmusic.org/forums/post/155010/#p155010</link>
			<description><![CDATA[<b><i>metropeak says:</i></b><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>]]></description>
			<pubDate>Thu, 07 Feb 2013 00:49:18 +0000</pubDate>
			<guid>https://chipmusic.org/forums/post/155010/#p155010</guid>
		</item>
		<item>
			<title><![CDATA[Re: Convert hundreds of .opm's to .tfi's, in one sweep?]]></title>
			<link>https://chipmusic.org/forums/post/153283/#p153283</link>
			<description><![CDATA[<b><i>DJ-PIE says:</i></b><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>]]></description>
			<pubDate>Mon, 28 Jan 2013 23:02:23 +0000</pubDate>
			<guid>https://chipmusic.org/forums/post/153283/#p153283</guid>
		</item>
		<item>
			<title><![CDATA[Re: Convert hundreds of .opm's to .tfi's, in one sweep?]]></title>
			<link>https://chipmusic.org/forums/post/153095/#p153095</link>
			<description><![CDATA[<b><i>robugaa says:</i></b><p>That all sounds nice.</p>]]></description>
			<pubDate>Mon, 28 Jan 2013 02:28:37 +0000</pubDate>
			<guid>https://chipmusic.org/forums/post/153095/#p153095</guid>
		</item>
		<item>
			<title><![CDATA[Re: Convert hundreds of .opm's to .tfi's, in one sweep?]]></title>
			<link>https://chipmusic.org/forums/post/153075/#p153075</link>
			<description><![CDATA[<b><i>Aly James says:</i></b><p>+1</p>]]></description>
			<pubDate>Mon, 28 Jan 2013 01:40:16 +0000</pubDate>
			<guid>https://chipmusic.org/forums/post/153075/#p153075</guid>
		</item>
		<item>
			<title><![CDATA[Re: Convert hundreds of .opm's to .tfi's, in one sweep?]]></title>
			<link>https://chipmusic.org/forums/post/153042/#p153042</link>
			<description><![CDATA[<b><i>little-scale says:</i></b><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>]]></description>
			<pubDate>Sun, 27 Jan 2013 22:21:11 +0000</pubDate>
			<guid>https://chipmusic.org/forums/post/153042/#p153042</guid>
		</item>
		<item>
			<title><![CDATA[Re: Convert hundreds of .opm's to .tfi's, in one sweep?]]></title>
			<link>https://chipmusic.org/forums/post/153041/#p153041</link>
			<description><![CDATA[<b><i>little-scale says:</i></b><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>]]></description>
			<pubDate>Sun, 27 Jan 2013 22:20:23 +0000</pubDate>
			<guid>https://chipmusic.org/forums/post/153041/#p153041</guid>
		</item>
		<item>
			<title><![CDATA[Re: Convert hundreds of .opm's to .tfi's, in one sweep?]]></title>
			<link>https://chipmusic.org/forums/post/152098/#p152098</link>
			<description><![CDATA[<b><i>Aly James says:</i></b><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>]]></description>
			<pubDate>Wed, 23 Jan 2013 01:39:00 +0000</pubDate>
			<guid>https://chipmusic.org/forums/post/152098/#p152098</guid>
		</item>
		<item>
			<title><![CDATA[Re: Convert hundreds of .opm's to .tfi's, in one sweep?]]></title>
			<link>https://chipmusic.org/forums/post/152090/#p152090</link>
			<description><![CDATA[<b><i>robugaa says:</i></b><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>]]></description>
			<pubDate>Wed, 23 Jan 2013 01:07:34 +0000</pubDate>
			<guid>https://chipmusic.org/forums/post/152090/#p152090</guid>
		</item>
		<item>
			<title><![CDATA[Re: Convert hundreds of .opm's to .tfi's, in one sweep?]]></title>
			<link>https://chipmusic.org/forums/post/152086/#p152086</link>
			<description><![CDATA[<b><i>Aly James says:</i></b><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>]]></description>
			<pubDate>Wed, 23 Jan 2013 00:42:42 +0000</pubDate>
			<guid>https://chipmusic.org/forums/post/152086/#p152086</guid>
		</item>
	</channel>
</rss>
