Skip to content

Status calculation is wrong in Bitwig.midiOut #24

Description

@a8t

Sorry, this isn't an issue, more of a question.

On this line:

const status = type << (4 + channel);

Can you explain adding channel here? Doesn't it shift the type bits too far?

According to the Linnstrument midi docs, CC should be 1011cccc where c is the channel. To me, this should be const status = type << 4 | channel);, where the << shifts 4 spaces left and | channel flips the appropriate bits to set the channel.

But... it seems your code works.

What do you think?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions