<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[ChipMusic.org - How to add a sample WAV using VGM Maker?]]></title>
		<link>https://chipmusic.org/forums/topic/5153/how-to-add-a-sample-wav-using-vgm-maker/</link>
		<description><![CDATA[The most recent posts in How to add a sample WAV using VGM Maker?.]]></description>
		<lastBuildDate>Sun, 18 Sep 2011 04:25:00 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: How to add a sample WAV using VGM Maker?]]></title>
			<link>https://chipmusic.org/forums/post/78479/#p78479</link>
			<description><![CDATA[<b><i>Shiru says:</i></b><p>You don&#039;t need to understand Z80 assembler, because I provided compiled driver (bin) - I only included its source in case you&#039;ll need to change something.</p><p>C file is just an example, I don&#039;t think it is too difficult to get the main idea from it.</p>]]></description>
			<pubDate>Sun, 18 Sep 2011 04:25:00 +0000</pubDate>
			<guid>https://chipmusic.org/forums/post/78479/#p78479</guid>
		</item>
		<item>
			<title><![CDATA[Re: How to add a sample WAV using VGM Maker?]]></title>
			<link>https://chipmusic.org/forums/post/78478/#p78478</link>
			<description><![CDATA[<b><i>elusive says:</i></b><p>Yeah... this is above my head, plus it&#039;s in C and ASM, I&#039;m using BEX <img src="https://chipmusic.org/forums/img/smilies/tongue.png" width="15" height="15" alt="tongue" /></p>]]></description>
			<pubDate>Sun, 18 Sep 2011 04:19:54 +0000</pubDate>
			<guid>https://chipmusic.org/forums/post/78478/#p78478</guid>
		</item>
		<item>
			<title><![CDATA[Re: How to add a sample WAV using VGM Maker?]]></title>
			<link>https://chipmusic.org/forums/post/78477/#p78477</link>
			<description><![CDATA[<b><i>Shiru says:</i></b><p><a href="http://shiru.untergrund.net/temp1/z80sample.zip" target="_blank">Here</a> is one that I&#039;ve made for a project, it is very simple, &lt;150 bytes of code. It plays only one channel of sound, allowing to place sample data without caring about bank boundaries (however, you can only put samples in first 512K of ROM). It always works at 16000hz. I&#039;ve used it together with FM part on M68K side.</p><p>Check sound.c for example how to load and use - you need to stop Z80 before loading the driver, reset it after loading, and to play new sample you need to halt Z80, put address and size of a sample into certain place in Z80 RAM (0x1f00..0x1f06 in Z80 address space), and run Z80.</p>]]></description>
			<pubDate>Sun, 18 Sep 2011 04:13:23 +0000</pubDate>
			<guid>https://chipmusic.org/forums/post/78477/#p78477</guid>
		</item>
		<item>
			<title><![CDATA[Re: How to add a sample WAV using VGM Maker?]]></title>
			<link>https://chipmusic.org/forums/post/78475/#p78475</link>
			<description><![CDATA[<b><i>elusive says:</i></b><p>I know kram said he was going to make one, but I&#039;m not sure if he ever finished it or released it. </p><p>Can you point me to some simple WAV drivers for the z80? (I&#039;m still not even sure how to get it to run along side your replayer anyway, so I&#039;m not sure what good that will do me, but I need to start learning this stuff anyway lol)</p><p>As for the TFD player not working on the hardware, this is what I did and it worked perfectly fine:<br />Grabbed the replayer out of LAKABAJO (or whatever it&#039;s called), and added kram&#039;s init function out of his library. That solved any issues on the real hardware <img src="https://chipmusic.org/forums/img/smilies/smile.png" width="15" height="15" alt="smile" /></p>]]></description>
			<pubDate>Sun, 18 Sep 2011 03:52:17 +0000</pubDate>
			<guid>https://chipmusic.org/forums/post/78475/#p78475</guid>
		</item>
		<item>
			<title><![CDATA[Re: How to add a sample WAV using VGM Maker?]]></title>
			<link>https://chipmusic.org/forums/post/78473/#p78473</link>
			<description><![CDATA[<b><i>Shiru says:</i></b><p>I don&#039;t know about BEX internals much, as far as I remember, the reason why BEX TFD player wasn&#039;t worked on the hardware is wrong memory access alignment BEX produced for POKE, you had to replace some pokes with assembly code that does the same but with proper alignment.</p><p>Regarding WAV player, the one there uses all the M68K time to play a sample, i.e. while sample plays, it can&#039;t do anything else. To make FM+samples without stopping main program, you need to move sample player to Z80 side, i.e. write or use a driver that works on Z80 and do the same. Such a driver in simplest form is very simple, there are many such drivers around.</p><p>Regarding SMPS, I doubt it is possible to convert music from VGM MM, because it is superior feature-wise. I recall someone worked on a SMPS tracker, i.e. a tracker that is specially designed to make music for SMPS.</p>]]></description>
			<pubDate>Sun, 18 Sep 2011 03:34:02 +0000</pubDate>
			<guid>https://chipmusic.org/forums/post/78473/#p78473</guid>
		</item>
		<item>
			<title><![CDATA[Re: How to add a sample WAV using VGM Maker?]]></title>
			<link>https://chipmusic.org/forums/post/78472/#p78472</link>
			<description><![CDATA[<b><i>elusive says:</i></b><p>The WAV player isn&#039;t running like your replayer driver, so it&#039;s halting while playing the sound clip. I&#039;m not a sound programmer or have any experience with that, so I&#039;m unsure on how to change it or modify it to work like your driver.</p><p>The WAV player:<br /><a href="http://devster.proboards.com/index.cgi?board=basiegaxorz&amp;action=display&amp;thread=481" target="_blank">http://devster.proboards.com/index.cgi? &#133; thread=481</a></p><p>That&#039;s the example I was using. I also have no idea on how to get it to run simultaneously with your replayer as well, so any help would be greatly appreciated <img src="https://chipmusic.org/forums/img/smilies/smile.png" width="15" height="15" alt="smile" /> </p><p>(sorry to thread-jack ya Dane, but since we&#039;re working on this project together, I didn&#039;t think you&#039;d mind lol)</p><p>Edit:<br />Also, a different solution would be to use Kramlib for BEX, though I&#039;m unsure of how to make SMPS tracks/sound fx like he managed to use in his example (or ripped from Sonic games). Any idea on how to convert TFM/VGM&#039;s to SMPS? lol</p>]]></description>
			<pubDate>Sun, 18 Sep 2011 03:18:24 +0000</pubDate>
			<guid>https://chipmusic.org/forums/post/78472/#p78472</guid>
		</item>
		<item>
			<title><![CDATA[Re: How to add a sample WAV using VGM Maker?]]></title>
			<link>https://chipmusic.org/forums/post/78469/#p78469</link>
			<description><![CDATA[<b><i>Shiru says:</i></b><p>This may work. i don&#039;t know why it or WAV player hangs, it could be just a bug in your or BEX code (BEX had a lot of bugs in the past).</p><p>However, FM music+effects is not that easy. In early games you can see that few FM channels were used for music only, and few other channels for effects only. That&#039;s because methods of mixing few sounds into one channel that works well for simple, PSG-like synths, won&#039;t work well with FM - you need to reload a lot of parameters, and you don&#039;t have solid control on envelopes. Typical situation where you will have problem: your music channel plays something with long slow attack, then you played a short BOOM sound on this channel, and now you just can&#039;t restore previous sound.</p><p>If I would need to make FM music+effects, I&#039;d probably go that way: first four FM channels for music, two other for sound effects. For these two channels algorithms and ADSR is always the same, infinite sustain, and sound effects player only changes TLs and MULT - in this case mixing methods that works for PSGs should work well, but effects have to be designed with a custom tool.</p>]]></description>
			<pubDate>Sun, 18 Sep 2011 03:05:23 +0000</pubDate>
			<guid>https://chipmusic.org/forums/post/78469/#p78469</guid>
		</item>
		<item>
			<title><![CDATA[Re: How to add a sample WAV using VGM Maker?]]></title>
			<link>https://chipmusic.org/forums/post/78467/#p78467</link>
			<description><![CDATA[<b><i>elusive says:</i></b><p>Shiru,<br />Over on the BEX forums, someone said that you would be able to use 2 instances of your TFM driver to use sound effects (albeit canceling out channels used in the music) by changing the variable names. I tried this and it froze the emulation. What would it take to get it to work? I also found over on the BEX forums a WAV player, though it halts the game entirely until the WAV is done playing. Not sure if there was another method/driver on the forums, as the search feature is very limited.</p><p>Thanks!</p>]]></description>
			<pubDate>Sun, 18 Sep 2011 02:41:38 +0000</pubDate>
			<guid>https://chipmusic.org/forums/post/78467/#p78467</guid>
		</item>
		<item>
			<title><![CDATA[Re: How to add a sample WAV using VGM Maker?]]></title>
			<link>https://chipmusic.org/forums/post/78466/#p78466</link>
			<description><![CDATA[<b><i>flatuswalrus says:</i></b><div class="quotebox"><cite>Shiru wrote:</cite><blockquote><p>I can provide help with sound code when you will have completed game (without music/sound).</p></blockquote></div><p>That would be much appreciated indeed, thank you.</p>]]></description>
			<pubDate>Sun, 18 Sep 2011 01:08:38 +0000</pubDate>
			<guid>https://chipmusic.org/forums/post/78466/#p78466</guid>
		</item>
		<item>
			<title><![CDATA[Re: How to add a sample WAV using VGM Maker?]]></title>
			<link>https://chipmusic.org/forums/post/78465/#p78465</link>
			<description><![CDATA[<b><i>Shiru says:</i></b><p>Genesis/Megadrive has two CPUs: Motorola 68000 (often called M68K, 68K means 68000 for short) and Zilog Z80 (often called Z80). Z80 is auxilary CPU that is added to provide backwards support with Sega Master System, in Genesis/MD games it often used to run sound code and free main CPU (68K) for other things.</p><p>With BasiEgaXorz, simplest way to make sound is to have FM only music (no PSG and samples) and samples for sound effects (single channel). To do this, you need to use TFD player code I&#039;ve posted somewhere on BEX forums, which not uses Z80, and also use any Z80 -based sample player. To make them work together you need to mod TFD player a bit. You can also use PSG for sound effects, but this would require some new code.</p><p>I can provide help with sound code when you will have completed game (without music/sound).</p>]]></description>
			<pubDate>Sun, 18 Sep 2011 01:05:53 +0000</pubDate>
			<guid>https://chipmusic.org/forums/post/78465/#p78465</guid>
		</item>
		<item>
			<title><![CDATA[Re: How to add a sample WAV using VGM Maker?]]></title>
			<link>https://chipmusic.org/forums/post/78462/#p78462</link>
			<description><![CDATA[<b><i>flatuswalrus says:</i></b><div class="quotebox"><cite>Shiru wrote:</cite><blockquote><p>Of course, just write a sample player or reuse an existing one. It is easy, if it just plays samples and nothing more. It is difficult to make a driver that plays FM and samples using just Z80. Easiest way is to play FM and PSG on M68K side and samples on Z80 side, stopping Z80 when you need to write 2612 registers.</p></blockquote></div><p>When you say Z80, that is the Zilog Z80 which is an 8-bit microprocessor right? Because I know practically nothing about all this as I am just starting out, I didn&#039;t really understand anything else you said at all lol. I am guessing I would be the most knowledgeable user on this forum. I will talk to a few people I know that know a little about this stuff as to not bother you with a million questions I could probably come up with. I appreciate your reply, thank you. Oh by the way, I am an amateur musician who is attempting to compose the music for a new home-brew Megadrive game, I can write the music okay, but this world of video game music making (hardware / software) is COMPLETELY new to me.</p><p>EDIT: So m68k is the port of Linux to run on systems using Motorola&#039;s microprocessor? Megadrive&#039;s CPU is a Motorola 68000 correct? So to start off would you recommend downloading Linux and trying to get my head wrapped around that? Or being at the level I am at (starting out) is there something else you would recommend?</p>]]></description>
			<pubDate>Sun, 18 Sep 2011 00:24:40 +0000</pubDate>
			<guid>https://chipmusic.org/forums/post/78462/#p78462</guid>
		</item>
		<item>
			<title><![CDATA[Re: How to add a sample WAV using VGM Maker?]]></title>
			<link>https://chipmusic.org/forums/post/78460/#p78460</link>
			<description><![CDATA[<b><i>Shiru says:</i></b><p>Of course, just write a sample player or reuse an existing one.It is easy, if it just plays samples and nothing more. It is difficult to make a driver that plays FM and samples using just Z80. Easiest way is to play FM and PSG on M68K side and samples on Z80 side, stopping Z80 when you need to write 2612 registers.</p>]]></description>
			<pubDate>Sun, 18 Sep 2011 00:01:35 +0000</pubDate>
			<guid>https://chipmusic.org/forums/post/78460/#p78460</guid>
		</item>
		<item>
			<title><![CDATA[Re: How to add a sample WAV using VGM Maker?]]></title>
			<link>https://chipmusic.org/forums/post/78458/#p78458</link>
			<description><![CDATA[<b><i>flatuswalrus says:</i></b><div class="quotebox"><cite>shitbird wrote:</cite><blockquote><p>This might be a dumb question, but are you using the S command in one of the PSG channels to play the sample? If it can be loaded and heard in the sample editor, I don&#039;t see why it wouldn&#039;t&nbsp; work on the tracker. ):&gt;</p></blockquote></div><p>Yes I was using the s command on one of the PSG channels. I&#039;m guessing the FM channels are also incapable of doing it?</p><div class="quotebox"><cite>Shiru wrote:</cite><blockquote><p>TFD format does not support PSG or samples, and never will - it was designed for other purposes and now is obsolete. Currently there are no players to use music made in VGM MM in games.</p></blockquote></div><p>That sucks, so is there ANYWAY at all to be able to get a .wav sample into a Megadrive game? Even if you somehow have to diminish the quality of it quite a bit.</p>]]></description>
			<pubDate>Sat, 17 Sep 2011 23:37:04 +0000</pubDate>
			<guid>https://chipmusic.org/forums/post/78458/#p78458</guid>
		</item>
		<item>
			<title><![CDATA[Re: How to add a sample WAV using VGM Maker?]]></title>
			<link>https://chipmusic.org/forums/post/78441/#p78441</link>
			<description><![CDATA[<b><i>Shiru says:</i></b><p>TFD format does not support PSG or samples, and never will - it was designed for other purposes and now is obsolete. Currently there are no players to use music made in VGM MM in games.</p>]]></description>
			<pubDate>Sat, 17 Sep 2011 17:01:30 +0000</pubDate>
			<guid>https://chipmusic.org/forums/post/78441/#p78441</guid>
		</item>
		<item>
			<title><![CDATA[Re: How to add a sample WAV using VGM Maker?]]></title>
			<link>https://chipmusic.org/forums/post/78439/#p78439</link>
			<description><![CDATA[<b><i>Subway Sonicbeat says:</i></b><p>I think the sample works in the 6th channel with the S command. There is a test.vge I think.<br />Try using the S command!</p>]]></description>
			<pubDate>Sat, 17 Sep 2011 16:26:28 +0000</pubDate>
			<guid>https://chipmusic.org/forums/post/78439/#p78439</guid>
		</item>
	</channel>
</rss>
