or wait it's 7 bit not 8 bit, so should be (msb << 7) + lsb
Am 07.07.2008 um 19:50 schrieb Sciss:
> shift the MSB to left by 8 bit (or multiply it by 256), e.g. (msb
> << 8) + lsb
>
>
> Am 06.07.2008 um 11:21 schrieb Tomer Harari:
>
>>
>> Hi,
>>
>> I am trying to use 14 bit CC option from my Behringer BCR controller.
>> After setting up the device to send 14 bit cc, I am using a
>> CCResponder to
>> grab the incoming midi infromation.
>> 14 bit Control change message is actually two 7 bit midi messages,
>> One on CC numbers 0 - 31 (MSB), and another on CC numbers 32 - 63
>> (LSB)
>> respectively.
>> So when sending 14 bit CC on channel 2 i get :
>> [ 618189095, 1, 1, 0 ] // 0 is the MSB
>> [ 618189095, 1, 33, 81 ] // 81 is the LSB
>>
>> My question is how do i add these two data bytes together so they
>> form one
>> number in the range of 0 - 16,385 and not two numbers in the range
>> of 0 -
>> 127?
>>
>> Thanks,
>> Tomer
>>
>>
>>
>>
>> --
>> View this message in context:
http://www.nabble.com/14-bit-
>> CCResponder---adding-bytes-tp18300199p18300199.html
>> Sent from the Supercollider - User mailing list archive at
>> Nabble.com.
>>
>>
>>
>> _______________________________________________
>> sc-users mailing list
>>
>>
>> info (subscribe and unsubscribe):
http://swiki.hfbk-hamburg.de:
>> 8888/MusicTechnology/880
>> archive:
http://www.listarc.bham.ac.uk/marchives/sc-users/>> search:
http://www.listarc.bham.ac.uk/lists/sc-users/search/>
>
> _______________________________________________
> sc-users mailing list
>
>
> info (subscribe and unsubscribe):
http://swiki.hfbk-hamburg.de:8888/
> MusicTechnology/880
> archive:
http://www.listarc.bham.ac.uk/marchives/sc-users/> search:
http://www.listarc.bham.ac.uk/lists/sc-users/search/_______________________________________________
sc-users mailing list
info (subscribe and unsubscribe):
http://swiki.hfbk-hamburg.de:8888/MusicTechnology/880archive:
http://www.listarc.bham.ac.uk/marchives/sc-users/search:
http://www.listarc.bham.ac.uk/lists/sc-users/search/