<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[ChipMusic.org - c64 basic prggies [query]]]></title>
		<link>https://chipmusic.org/forums/topic/2951/c64-basic-prggies-query/</link>
		<description><![CDATA[The most recent posts in c64 basic prggies [query].]]></description>
		<lastBuildDate>Tue, 07 Dec 2010 14:25:23 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: c64 basic prggies [query]]]></title>
			<link>https://chipmusic.org/forums/post/48199/#p48199</link>
			<description><![CDATA[<b><i>akira^8GB says:</i></b><p>The C64 user manual has programs.<br />I also recommend Compute!&#039;s Gazette type-ins. I bet you can find them somewhere online.</p>]]></description>
			<pubDate>Tue, 07 Dec 2010 14:25:23 +0000</pubDate>
			<guid>https://chipmusic.org/forums/post/48199/#p48199</guid>
		</item>
		<item>
			<title><![CDATA[Re: c64 basic prggies [query]]]></title>
			<link>https://chipmusic.org/forums/post/48176/#p48176</link>
			<description><![CDATA[<b><i>gizmo says:</i></b><p>Thanks 4mat, that did clear up a few things actually. In case anyone cares, I found an archive of old C64 books. <a href="http://www.bombjack.org/commodore/books.htm" target="_blank">http://www.bombjack.org/commodore/books.htm</a></p>]]></description>
			<pubDate>Tue, 07 Dec 2010 03:43:42 +0000</pubDate>
			<guid>https://chipmusic.org/forums/post/48176/#p48176</guid>
		</item>
		<item>
			<title><![CDATA[Re: c64 basic prggies [query]]]></title>
			<link>https://chipmusic.org/forums/post/47897/#p47897</link>
			<description><![CDATA[<b><i>4mat says:</i></b><p>For a start you can mess around with the SID registers using POKEs.&nbsp; As you know SID has 3 channels, each is mapped to 7 registers in sequence starting at 54272.&nbsp; The registers after that control the global filter and volume.</p><p>For example try this to play some noise on channel 1.</p><p>10 POKE 54296,15<br />20 POKE 54277,0<br />30 POKE 54278,255<br />40 POKE 54276,129<br />50 POKE 54273,40</p><p>Explanation:</p><p>10 Set volume register (54296) to 15 (maximum)<br />20 Set Attack/Decay on channel 1 to 0 (no attack or decay)<br />30 Set Sustain/Release on channel 1 to 255 (full sustain and release)<br />40 Set Waveform on channel 1 to Noise (128) with Gate on so it doesn&#039;t fade out (+1 = 129)<br />50 Set raw pitch on channel 1 to 40.</p><p>Quick run down for channel 1:</p><p>54272 = Pitch low-bits (0-255)&nbsp; (think of this as fine tune of the note)<br />54273 = Pitch high-bits (0-255)&nbsp; (think of this as raw pitch of the note)<br />54274 = Pulse width modulation low-bits (0-255)<br />54275 = Pulse width modulation high-bits (0-15)&nbsp; 8 = Pure pulse wave<br />54276 = Waveform (17 = Triangle , 33 = Saw, 65 = Pulse, 129 = Noise) <br />54277 = Attack/Decay<br />54278 = Sustain/Release</p><p>Add 7 to the channel registers to play with channel 2 (eg: POKE 54276+7,129 to set waveform there) and 14 to play with channel 3 (eg: POKE 54273+14,40 to set the pitch on channel 3)</p><p>To activate the &#039;release&#039; of a sound subtract 1 from the waveforms I listed above.&nbsp; For example POKE54276,32 to turn the gate off on a saw wave on channel 1.</p><p>Best idea is to try out the programs in <a href="http://www.commodore.ca/manuals/c64_programmers_reference/c64-programmers_reference.htm" target="_blank">The Programmers Reference</a> .&nbsp; You want Chapter 4 which is all sound programs, including how the filters work.&nbsp; Chapter 7 (the Appendix) has the pitch table for notes.</p>]]></description>
			<pubDate>Sat, 04 Dec 2010 22:33:55 +0000</pubDate>
			<guid>https://chipmusic.org/forums/post/47897/#p47897</guid>
		</item>
		<item>
			<title><![CDATA[c64 basic prggies [query]]]></title>
			<link>https://chipmusic.org/forums/post/47882/#p47882</link>
			<description><![CDATA[<b><i>gizmo says:</i></b><p>Does anyone know where there might be some code for simple c64 sound programs? Ya know like they used to have in magazines and books and stuff. I just want to play with my commie a little, while waiting for the Mssiah to arrive. I&#039;m anxious.</p>]]></description>
			<pubDate>Sat, 04 Dec 2010 19:37:15 +0000</pubDate>
			<guid>https://chipmusic.org/forums/post/47882/#p47882</guid>
		</item>
	</channel>
</rss>
