<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[ChipMusic.org - SEGA PSG: SID sound! on 1 Channel with Z80 Hblank]]></title>
	<link rel="self" href="https://chipmusic.org:80/forums/feed/atom/topic/12185/"/>
	<updated>2014-02-01T14:58:23Z</updated>
	<generator>PunBB</generator>
	<id>https://chipmusic.org/forums/topic/12185/sega-psg-sid-sound-on-1-channel-with-z80-hblank/</id>
		<entry>
			<title type="html"><![CDATA[Re: SEGA PSG: SID sound! on 1 Channel with Z80 Hblank]]></title>
			<link rel="alternate" href="https://chipmusic.org/forums/post/199590/#p199590"/>
			<content type="html"><![CDATA[<p>SPSG VST SID effect &gt;&gt; MIDI &gt;&gt; VGM&nbsp; proof of concept...!<br />Here we go, this is a quick test with the PSG clocked at 1Mhz, only one channel and SID modulation..<br /><a href="http://www.alyjameslab.com/tempdata/midi_export2.vgz" target="_blank">http://www.alyjameslab.com/tempdata/midi_export2.vgz</a><br />you never got an SN76489 vgm with that <img src="https://chipmusic.org/forums/img/smilies/smile.png" width="15" height="15" alt="smile" /><br />the greatest accuracy for exporting a midi file with the SPSG modulation as been made through Reaper at 22050 PPQN.</p>]]></content>
			<author>
				<name><![CDATA[Aly James]]></name>
				<uri>https://chipmusic.org/Aly+James</uri>
			</author>
			<updated>2014-02-01T14:58:23Z</updated>
			<id>https://chipmusic.org/forums/post/199590/#p199590</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: SEGA PSG: SID sound! on 1 Channel with Z80 Hblank]]></title>
			<link rel="alternate" href="https://chipmusic.org/forums/post/196046/#p196046"/>
			<content type="html"><![CDATA[<p>This looks really cool! I just got FMDRIVE but I may have to pick this up sometime soon as well. Thanks for the great Sega VST&#039;s!</p>]]></content>
			<author>
				<name><![CDATA[Vaina Moinen]]></name>
				<uri>https://chipmusic.org/Vaina+Moinen</uri>
			</author>
			<updated>2013-12-25T04:08:20Z</updated>
			<id>https://chipmusic.org/forums/post/196046/#p196046</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: SEGA PSG: SID sound! on 1 Channel with Z80 Hblank]]></title>
			<link rel="alternate" href="https://chipmusic.org/forums/post/196006/#p196006"/>
			<content type="html"><![CDATA[<p>I&#039;ve spent the past few hours playing with the VST. I&#039;m really impressed! This thing is insane. The custom timer stuff is just mind blowing. It uses chip emulation as a baseline, gets that perfect, and then adds things that wouldn&#039;t be possible without a DAW. It&#039;s a big contrast to the Plogue Chipsounds &quot;jack of all trades, master of none&quot; approach.</p>]]></content>
			<author>
				<name><![CDATA[thesimplicity]]></name>
				<uri>https://chipmusic.org/thesimplicity</uri>
			</author>
			<updated>2013-12-24T18:19:57Z</updated>
			<id>https://chipmusic.org/forums/post/196006/#p196006</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: SEGA PSG: SID sound! on 1 Channel with Z80 Hblank]]></title>
			<link rel="alternate" href="https://chipmusic.org/forums/post/191470/#p191470"/>
			<content type="html"><![CDATA[<p>MAN, you da best! Really going to have to add the SN76489 &#039;synth&#039; to my to-do list!!<br />Yogi</p>]]></content>
			<author>
				<name><![CDATA[yogi]]></name>
				<uri>https://chipmusic.org/yogi</uri>
			</author>
			<updated>2013-11-19T19:17:34Z</updated>
			<id>https://chipmusic.org/forums/post/191470/#p191470</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: SEGA PSG: SID sound! on 1 Channel with Z80 Hblank]]></title>
			<link rel="alternate" href="https://chipmusic.org/forums/post/191465/#p191465"/>
			<content type="html"><![CDATA[<p>SID sound...Timer modulation implemented on SN76489 MIDI board &amp; in SPSG VST &gt;&gt; <a href="http://chipmusic.org/forums/topic/12578/sega-master-system-vst-spsg-sn76489-extended-synth/" target="_blank">http://chipmusic.org/forums/topic/12578 &#133; ded-synth/</a><br />The idea is to enhance the variety of sound, producing tones that the chip normally cannot produce to make some cool music!</p><p>Compatible with the SN76489 (code heavily modified!) open source arduino code by Littlescale <img src="https://chipmusic.org/forums/img/smilies/smile.png" width="15" height="15" alt="smile" /><br />The code will be available for free of course to anybody wanting to mess around.<br />When use in conjunction with the MIDI device, SPSG vst will act as a controller with volume/pitch envelope generator and table! <img src="https://chipmusic.org/forums/img/smilies/smile.png" width="15" height="15" alt="smile" /> <img src="https://chipmusic.org/forums/img/smilies/smile.png" width="15" height="15" alt="smile" /> <img src="https://chipmusic.org/forums/img/smilies/smile.png" width="15" height="15" alt="smile" /></p><p>PREVIEW<br /><div class="embed_video"><iframe width="560" height="340" src="https://www.youtube.com/embed/pm8b83xhCoE" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe></div></p>]]></content>
			<author>
				<name><![CDATA[Aly James]]></name>
				<uri>https://chipmusic.org/Aly+James</uri>
			</author>
			<updated>2013-11-19T17:11:57Z</updated>
			<id>https://chipmusic.org/forums/post/191465/#p191465</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: SEGA PSG: SID sound! on 1 Channel with Z80 Hblank]]></title>
			<link rel="alternate" href="https://chipmusic.org/forums/post/184208/#p184208"/>
			<content type="html"><![CDATA[<p>Of course I will add that you can also write to the volume register at CPU speed without using Hblank timing.<br />Writing this sequence of data for a 16 data point sinewave,<br />.db 04,02,01,00,00,01,02,04,11,13,14,15,15,14,13,11<br />gave me something like 1978Hz without any wait...<br />this gives us roughly a 31,648 KHz sample rate, it should be the same thing for PWM or PCM sample reading...assuming there isn&#039;t any other code going round then the audio stuff.<br />So it is twice as fast as Hblank with near 32µs against 64µs<br />the simplest square wave could be .db 00,15 as high as 15824Hz<br />anyway at high rate things get screwed up easily <img src="https://chipmusic.org/forums/img/smilies/smile.png" width="15" height="15" alt="smile" /></p>]]></content>
			<author>
				<name><![CDATA[Aly James]]></name>
				<uri>https://chipmusic.org/Aly+James</uri>
			</author>
			<updated>2013-09-14T16:20:09Z</updated>
			<id>https://chipmusic.org/forums/post/184208/#p184208</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: SEGA PSG: SID sound! on 1 Channel with Z80 Hblank]]></title>
			<link rel="alternate" href="https://chipmusic.org/forums/post/184167/#p184167"/>
			<content type="html"><![CDATA[<div class="quotebox"><cite>LazloPsylus wrote:</cite><blockquote><p>Just making sure. As a guy working on a sound driver (or three) and enjoys doing research on the MD and co., I&#039;ve been more than a little surprised at how few people are even remotely familiar with the YM2612&#039;s timers, so I&#039;m glad you&#039;re familiar with them and at least made an informed design decision.</p><p>I&#039;ll probably chime in again if I find something useful to contribute. Otherwise, good luck on your project.</p></blockquote></div><p>Thanks <img src="https://chipmusic.org/forums/img/smilies/smile.png" width="15" height="15" alt="smile" /> I had to dig into YM2612 Timers for The FMDrive Vsti witch features CSM mode &quot;speech synthesis control&quot; ^_^<br />PM me&nbsp; what you are working on unless it is top secret <img src="https://chipmusic.org/forums/img/smilies/smile.png" width="15" height="15" alt="smile" /></p>]]></content>
			<author>
				<name><![CDATA[Aly James]]></name>
				<uri>https://chipmusic.org/Aly+James</uri>
			</author>
			<updated>2013-09-14T00:28:37Z</updated>
			<id>https://chipmusic.org/forums/post/184167/#p184167</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: SEGA PSG: SID sound! on 1 Channel with Z80 Hblank]]></title>
			<link rel="alternate" href="https://chipmusic.org/forums/post/184163/#p184163"/>
			<content type="html"><![CDATA[<p>Just making sure. As a guy working on a sound driver (or three) and enjoys doing research on the MD and co., I&#039;ve been more than a little surprised at how few people are even remotely familiar with the YM2612&#039;s timers, so I&#039;m glad you&#039;re familiar with them and at least made an informed design decision.</p><p>I&#039;ll probably chime in again if I find something useful to contribute. Otherwise, good luck on your project.</p>]]></content>
			<author>
				<name><![CDATA[LazloPsylus]]></name>
				<uri>https://chipmusic.org/LazloPsylus</uri>
			</author>
			<updated>2013-09-13T23:37:21Z</updated>
			<id>https://chipmusic.org/forums/post/184163/#p184163</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: SEGA PSG: SID sound! on 1 Channel with Z80 Hblank]]></title>
			<link rel="alternate" href="https://chipmusic.org/forums/post/184161/#p184161"/>
			<content type="html"><![CDATA[<div class="quotebox"><cite>nitro2k01 wrote:</cite><blockquote><p>I&#039;m working on... something like this... for the Gameboy and I&#039;m wondering if there aren&#039;t more flexible timers than HBlank on the MD Z80? Also, does the HBlank interrupt keep triggering during the VBlank period?</p></blockquote></div><p>VBlank happens 50 times per second (for PAL)<br />HBlank happens 15625 times per second<br />So it should keep triggering</p><p>I have read that the Master System often use the Interrupt mode 1, meaning that when an interrupt occurs the Z80&#039;s PC register is set to $0038.<br />As you get only one entry, you have to choose whether you want VBlank or Hblank...</p>]]></content>
			<author>
				<name><![CDATA[Aly James]]></name>
				<uri>https://chipmusic.org/Aly+James</uri>
			</author>
			<updated>2013-09-13T23:13:56Z</updated>
			<id>https://chipmusic.org/forums/post/184161/#p184161</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: SEGA PSG: SID sound! on 1 Channel with Z80 Hblank]]></title>
			<link rel="alternate" href="https://chipmusic.org/forums/post/184160/#p184160"/>
			<content type="html"><![CDATA[<div class="quotebox"><cite>LazloPsylus wrote:</cite><blockquote><p>So good to see that there are more people taking some serious interest in the capabilities of the MD in terms of sound. Been a bit lonely in the MD scene to see everyone using the same drivers and never try new stuff with the hardware, and I applaud your efforts.</p><p>I am curious, though: Why did you choose to use the HBlank for timing? Could instead use one of the YM2612&#039;s internal timers to provide a much more flexible berth for timing than the HBlank&#039;s rigid timing.</p></blockquote></div><p>First reason is because I tried to emulate the Master System features <img src="https://chipmusic.org/forums/img/smilies/smile.png" width="15" height="15" alt="smile" /><br />However AFAIK, YM2612 Timers do not cause interrupts and we must check the counting elsewhere.<br />Timer A is the only one fast enough, it is 10bits and goes as fast as 18µs at 1111111111 but only goes down to 54Hz at 0000000000<br />slightly better then Hblank 64µs.<br />Timer A can also be in use by the CSM mode witch screw up the ability to have both.</p><p>Keep in mind that my aim here was to check what could be done on the real thing before integrating the feature in my Super PSG Vsti.<br />I am in no way an expert on the Z80 side and if someone got a better way to increase the artificial waveform pitch resolution, let me know <img src="https://chipmusic.org/forums/img/smilies/smile.png" width="15" height="15" alt="smile" /></p>]]></content>
			<author>
				<name><![CDATA[Aly James]]></name>
				<uri>https://chipmusic.org/Aly+James</uri>
			</author>
			<updated>2013-09-13T22:50:27Z</updated>
			<id>https://chipmusic.org/forums/post/184160/#p184160</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: SEGA PSG: SID sound! on 1 Channel with Z80 Hblank]]></title>
			<link rel="alternate" href="https://chipmusic.org/forums/post/184158/#p184158"/>
			<content type="html"><![CDATA[<div class="quotebox"><cite>metropeak wrote:</cite><blockquote><p>This is very cool, so does GENMDM already support this sort of HBlank trick to reproduce this effect?</p></blockquote></div><p>AFAIK, no.<br />but I think it could be implemented directly in the firmware <img src="https://chipmusic.org/forums/img/smilies/smile.png" width="15" height="15" alt="smile" /><br />You can still make this kind of PWM with two PSG channel slightly detuned.</p>]]></content>
			<author>
				<name><![CDATA[Aly James]]></name>
				<uri>https://chipmusic.org/Aly+James</uri>
			</author>
			<updated>2013-09-13T22:36:13Z</updated>
			<id>https://chipmusic.org/forums/post/184158/#p184158</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: SEGA PSG: SID sound! on 1 Channel with Z80 Hblank]]></title>
			<link rel="alternate" href="https://chipmusic.org/forums/post/184131/#p184131"/>
			<content type="html"><![CDATA[<p>I&#039;m working on... something like this... for the Gameboy and I&#039;m wondering if there aren&#039;t more flexible timers than HBlank on the MD Z80? Also, does the HBlank interrupt keep triggering during the VBlank period?</p>]]></content>
			<author>
				<name><![CDATA[nitro2k01]]></name>
				<uri>https://chipmusic.org/nitro2k01</uri>
			</author>
			<updated>2013-09-13T19:23:24Z</updated>
			<id>https://chipmusic.org/forums/post/184131/#p184131</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: SEGA PSG: SID sound! on 1 Channel with Z80 Hblank]]></title>
			<link rel="alternate" href="https://chipmusic.org/forums/post/184130/#p184130"/>
			<content type="html"><![CDATA[<p>So good to see that there are more people taking some serious interest in the capabilities of the MD in terms of sound. Been a bit lonely in the MD scene to see everyone using the same drivers and never try new stuff with the hardware, and I applaud your efforts.</p><p>I am curious, though: Why did you choose to use the HBlank for timing? Could instead use one of the YM2612&#039;s internal timers to provide a much more flexible berth for timing than the HBlank&#039;s rigid timing.</p>]]></content>
			<author>
				<name><![CDATA[LazloPsylus]]></name>
				<uri>https://chipmusic.org/LazloPsylus</uri>
			</author>
			<updated>2013-09-13T19:17:57Z</updated>
			<id>https://chipmusic.org/forums/post/184130/#p184130</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: SEGA PSG: SID sound! on 1 Channel with Z80 Hblank]]></title>
			<link rel="alternate" href="https://chipmusic.org/forums/post/184126/#p184126"/>
			<content type="html"><![CDATA[<p>Amazeful work. Man that UI is smooth <img src="https://chipmusic.org/forums/img/smilies/cool.png" width="15" height="15" alt="cool" />.</p>]]></content>
			<author>
				<name><![CDATA[breakphase]]></name>
				<uri>https://chipmusic.org/breakphase</uri>
			</author>
			<updated>2013-09-13T18:34:07Z</updated>
			<id>https://chipmusic.org/forums/post/184126/#p184126</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: SEGA PSG: SID sound! on 1 Channel with Z80 Hblank]]></title>
			<link rel="alternate" href="https://chipmusic.org/forums/post/184125/#p184125"/>
			<content type="html"><![CDATA[<p>This is very cool, so does GENMDM already support this sort of HBlank trick to reproduce this effect?</p>]]></content>
			<author>
				<name><![CDATA[metropeak]]></name>
				<uri>https://chipmusic.org/metropeak</uri>
			</author>
			<updated>2013-09-13T18:07:05Z</updated>
			<id>https://chipmusic.org/forums/post/184125/#p184125</id>
		</entry>
</feed>
