Dennis Au [Lexaloffle Blog Feed]https://www.lexaloffle.com/bbs/?uid=10503 3/4 Music Hack <p> <table><tr><td> <a href="/bbs/?pid=15802#p"> <img src="/bbs/thumbs/pico15800.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=15802#p"> 3/4 Music Hack 1.0</a><br><br> by <a href="/bbs/?uid=10503"> Dennis Au</a> <br><br><br> <a href="/bbs/?pid=15802#p"> [Click to Play]</a> </td></tr></table> </p> <p><strong>3/4 Music Hack (also works for 5/4, 7/8, etc)</strong></p> <p>By default, music patterns in PICO-8 are 32 notes long. This makes writing music in time signatures other than 4/4 quite difficult. So writing in 3/4 can be quite difficult as 3 doesn't go evenly into 32.</p> <p>Luckily, we can use the loop function in the sfx editor to cut 32 notes down to 24.</p> <p>e.g.</p> <img style="margin-bottom:16px" border=0 src="https://www.lexaloffle.com/bbs/files/10503/01.png" width=580 height=540 alt="" /> <p>but this will loop the first 8 notes again if we play it by itself.</p> <p>The trick is to use a &quot;empty master&quot; pattern set at so that it plays its 32 empty notes in the time that our 24 actual notes play. Doing some maths, this just requires an empty pattern of SPD 12.</p> <p>i.e.</p> <img style="margin-bottom:16px" border=0 src="https://www.lexaloffle.com/bbs/files/10503/00.png" width=580 height=540 alt="" /> <p>Adding in more parts, etc, we end up with something like this:</p> <img style="margin-bottom:16px" border=0 src="https://www.lexaloffle.com/bbs/files/10503/PATTERN00.png" width=580 height=540 alt="" /> <p>That's it! This trick does use up one of our channels with an empty track, but since we probably need one channel for actual SFX anyways, this is okay.</p> <p>You can also use this trick to get 5/4 or 7/8 using 30 or 28 notes respectively with a master of SPD 15 or 14. Experiment! The sky's the limit when it comes to weird time signatures!</p> <p>Here's a 13/8:<br /> <table><tr><td> <a href="/bbs/?pid=15802#p"> <img src="/bbs/thumbs/pico15817.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=15802#p"> 13/8 Trash</a><br><br> by <a href="/bbs/?uid=10503"> Dennis Au</a> <br><br><br> <a href="/bbs/?pid=15802#p"> [Click to Play]</a> </td></tr></table> </p> <p>Let me know if this comes in helpful, and/or if I should write this up a bit more for the PICO-Zine!</p> https://www.lexaloffle.com/bbs/?tid=2667 https://www.lexaloffle.com/bbs/?tid=2667 Sat, 24 Oct 2015 21:02:23 UTC INCO-8 <p> <table><tr><td> <a href="/bbs/?pid=15792#p"> <img src="/bbs/thumbs/pico15791.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=15792#p"> INCO-8 0.01</a><br><br> by <a href="/bbs/?uid=10503"> Dennis Au</a> <br><br><br> <a href="/bbs/?pid=15792#p"> [Click to Play]</a> </td></tr></table> </p> <p><strong>INCO-8</strong><br /> My attempt at a PICO-8 shmup.</p> <p>So far I've got the basic framework in place with some enemy types, movement patterns, bullet patterns etc.<br /> But obviously I haven't really worked on the waves or any type of progression yet.</p> <p>Very, <strong>very</strong> WIP.</p> https://www.lexaloffle.com/bbs/?tid=2666 https://www.lexaloffle.com/bbs/?tid=2666 Sat, 24 Oct 2015 18:37:10 UTC