pfeuh [Lexaloffle Blog Feed]https://www.lexaloffle.com/bbs/?uid=73772 sfx structure <p>Hello,</p> <p>I have just tested a little bit the structure of a .p8 file. There are some sections like <strong>lua</strong> or <strong>label</strong>. Concerning section <strong>sfx</strong>, I have notice that there are 64 lines (for 64 sfx) of 168 nibbles. Each line seems to be dedicated to one sfx, with 8 nibbles for global parameters followed by 5 nibbles for each note (32 notes per sfx)</p> <p>global nibbles:<br /> 0:1 effect<br /> 2:3 speed<br /> 4:5 loop start<br /> 6:7 loop end</p> <p>note nibbles:<br /> 0:1 note number<br /> 2: waveform<br /> 3: volume<br /> 4: effect</p> <p>Global nibbles 0:1 have bits dedicated to each effect. For instance noiz and buzz arre a single on-off bit, bit 0 of nibble 1 for noiz and bit 1 of nibble 1 for buzz. But the 3 other effects (detune, reverb and damper) are a bit complicated, they have each 3 value, 0, 1 and 2. I fail to retro-engine them. Their bits mismatch together, some of them seem to be shared between 2 effects. Here are some tested values.</p> <p>0000 0001 0000 nothing<br /> 0000 0011 0001 noi<br /> 0000 0111 0001 noi+buz<br /> 0000 1111 0001 noi+buz+det1<br /> 0001 0111 0001 noi+buz+det2<br /> 0010 1111 0001 noi+buz+det2+rev1<br /> 0100 0111 0001 noi+buz+det2+rev2<br /> 1000 1111 0001 noi+buz+det2+rev2+dam1<br /> 1101 0111 0001 noi+buz+det2+rev2+dam2</p> <p>Does somebody know how it really works? Does somebody know if there is a technical documentation on the web?</p> https://www.lexaloffle.com/bbs/?tid=51348 https://www.lexaloffle.com/bbs/?tid=51348 Wed, 25 Jan 2023 18:13:08 UTC sfx ticks <p>Hello,</p> <p>concerning sfx, the manual says:</p> <pre><code>Each SFX also has these properties: A play speed (SPD) : the number of 'ticks' to play each note for. // This means that 1 is fastest, 3 is 3x as slow, etc.</code></pre> <p>to compute a tempo, is there anybody who knows the frequency of these ticks?</p> https://www.lexaloffle.com/bbs/?tid=51345 https://www.lexaloffle.com/bbs/?tid=51345 Wed, 25 Jan 2023 12:30:58 UTC SFX busy? <p>Hello,</p> <p>Is there a way to know if a channel is busy? I think it is not in the manual, but perhaps I've miss something. </p> https://www.lexaloffle.com/bbs/?tid=51253 https://www.lexaloffle.com/bbs/?tid=51253 Thu, 19 Jan 2023 08:10:02 UTC