Log In  

I am writing data to a p8 file from a Python program - format for 0x0-0x3200 ROM range is ok.
Issue is sfx section - each sfx (68 bytes) is actually written as 84 bytes (??) with empty bits left and right.
I have no clue what is the masking/bitshifting/... logic between my input value and the resulting p8 string.

Example:

poke4(0x3200,0x1234.5678)
cstore()

produces:

__sfx__
000100003813534011000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000

wtf??

P#64268 2019-05-09 18:44 ( Edited 2019-05-09 18:49)

The .p8 sfx format is

4 2-char hex values:
editor mode
spd
loop start
loop end

Followed by 32 5-char groups:
pitch (2 chars) 00..3f
instrument (0..7, 8..f for sfx inst)
volume 0..7
effect 0..7

P#64269 2019-05-09 19:09

[Please log in to post a comment]

Follow Lexaloffle:          
Generated 2024-03-19 02:07:53 | 0.006s | Q:7