Bc2000 (for the BCF2000 & BCR2000) group photo

Yahoo Groups archive

Bc2000 (for the BCF2000 & BCR2000)

Index last updated: 2026-04-28 23:16 UTC

Thread

Problem with crafting values to be sent

Problem with crafting values to be sent

2012-08-19 by Bruno

Hi guys,

While working on implementation file for SY77 I encountered a problem
I cannot solve: sending a specific range with sign bit. Long story
short:
 - values 0 ... 7 correspond to range 0 ... 7
 - value 8 is ignored
 - values 9 ... 15 correspond to range -7 ... -1

Of course the configuration with a jump from 7 to -1 is still usable,
but I was thinking if it's possible to overcome it somehow. Any hints
would be appreciated.

Thanks,

Bruno

Re: Problem with crafting values to be sent

2012-08-20 by Royce

Hi Bruno,

> While working on implementation file for SY77 I encountered a problem
> I cannot solve: sending a specific range with sign bit. Long story
> short:
> - values 0 ... 7 correspond to range 0 ... 7
> - value 8 is ignored
> - values 9 ... 15 correspond to range -7 ... -1

This is the standard way to set a negative number.
Look at the bit0 to bit3

0 0000 0 use bit4 1 0000 16
1
0001 1 use bit4 1 0001 ; 17
2 0010 2 use bit4 1 0010 18
3 0011 3 use bit4 1 0011 19
4 0100 4 use bit4 1 0100 20
5 0101 5 use bit4 1 0101 21
6 0110 6 use bit4 1 0110 22
7 0111 7 use bit4 1 0111 23
- 1000 8 use bit4 0 1000 clear bit4
-7 1001 9 use bit4 0 1001 ; ; 9
-6 ; 1010 10 use bit4 0 1010 10
-5 1011 11 use bit4 ; 0 1011 11
-4 1100 12 use bit4 0 1100 12
-3 ; 1101 13 use bit4 0 1101 13
-2 1110 14 use bit4 0 1110 14
-1 1111 15 use bit4 0 1111 15

So you can use val03 to mask off bit4 (bit0 to bit3)
...
.maxmin 9 23
.default 16 ; 0 as far as you are concerned
.tx $F0 sysex header val03 $F7
...

All the best
Royce

Re: [bc2000] Re: Problem with crafting values to be sent

2012-08-20 by Bruno

2012/8/20 Royce <rpcfender@...>
> So you can use  val03 to mask off bit4 (bit0 to bit3)
> ...
> .maxmin 9 23
> .default 16   ; 0 as far as you are concerned
> .tx $F0 sysex header val03 $F7

Thanks Royce, I will check it when I'm back home (Sunday).

Bruno

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.