Jump to content

Recommended Posts

Posted

Hello 

I have nearly finished my lemur patch for the midibox Tia and am trying to work out how to set the cc messages that have the bits

i have no trouble setting the 'regular' ones where you set the cc number then scale (0-127) or 0-64 positive/negative 

how do I set for example the Lfo mode:

cc93

hex: 5dh

bit 0 enables lfo

Bit 1 sync assigned note events

bit 2 sync all note events

bit 6-4 waveform

0 sine

1triangle

2 saw

3 pulse

4 random

example 11h =17 enable and  triangle wave 

How do I set the bits? I don't understand how those example hex numbers were calculated or how to implement into my patch?

 

 

Posted

Hi there,

some binary to decimal conversion will do it:

E.g. if you want to set bit 0 in a 7-bit CC value (0-127), it would become (1), if you want to set bit 1, it would become (2), if you set bit 2, it would become (4) and so on. Add up these values to get to the result decimal value.

For example, to set bits 3 and 5, the value would be 8 + 32 = 40, just send that as a regular CC value and you are good to go.

https://en.wikipedia.org/wiki/Binary_number

Many greets!
Peter

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...