ptparser bug

2 views
Skip to first unread message

allpow...@gmail.com

unread,
Aug 22, 2007, 12:17:52 AM8/22/07
to Power Tab Developers Support
Line 121 position.h

durationTypeMask = (wxUint32)0xff000000

should be

durationTypeMask = (wxUint32)0x7f000000

Dummy

unread,
Sep 2, 2007, 10:50:40 PM9/2/07
to Power Tab Developers Support
I've got:

return (HIBYTE(HIWORD(m_dwDuration)));

in the v1.7 code, which would equate to 0xff000000.

On Aug 22, 12:17 am, "allpowert...@gmail.com" <allpowert...@gmail.com>
wrote:

allpow...@gmail.com

unread,
Sep 3, 2007, 1:10:26 PM9/3/07
to Power Tab Developers Support
The durations aren't clearing correctly with 0xff000000.

0x7f000000 = ((1 << 24) | (2 << 24) | (4 << 24) | (8 << 24) | (16 <<
24) | (32 << 24) | (64 << 24))

Dummy

unread,
Sep 3, 2007, 4:46:05 PM9/3/07
to Power Tab Developers Support
The entire high byte is reserved for the duration type, the last bit
being reserved for 128. Since the 128 bit is unused = 0, 0xff will
effectively act as 0x7f when the bitmask is applied.

On Sep 3, 1:10 pm, "allpowert...@gmail.com" <allpowert...@gmail.com>
wrote:

Reply all
Reply to author
Forward
0 new messages