Welcome to %s forums

BrainModular Users Forum

Login Register

MIDI Out

Create your own modules in C++
Post Reply
nelson
Member
Posts: 36
Contact:

Unread post by nelson » 04 Jan 2009, 20:31

Hi,

I have function that once a cycle sends to midi output of module some midi message.

Its working, mesage is changing once a cycle .. but ... its all the time transmited thru the wire, not only once a cycle.

Question : what midi message is idle message, or how to send message and 'clear' midiOut parameter ... it cant be 0.. i don't know...

help :)

bsork
Site Admin
Posts: 1334
Location: Asker, Norway
Contact:

Unread post by bsork » 05 Jan 2009, 08:42

There is now such thing as an "idle" MIDI message.

I'm not sure if I understand what you mean when you say it is changing vaue as it should, but transmitted more than once per cycle/block. MIDI data (except sysex) are sent as arrays of MIDI records, and if you want only one value per cycle, you should set the length of the array to 1 and update only element number 0. If you want to clear the array (= no MIDI message), set the length to 0.
Bjørn S

Post Reply

Who is online

Users browsing this forum: No registered users and 43 guests