Xojo Developer Conference
25/27th April 2018 in Denver.
MBS Xojo Conference
6/7th September 2018 in Munich, Germany.

[MBS] WindowsMidiMBS.Idle vs WindowsMidiInputMBS.Idle (MBS Xojo Plugin Mailinglist archive)

Back to the thread list
Previous thread: [MBS] Re: CallDelegateOnMainThreadMBS
Next thread: Re: [MBS] pictureMBS.Scale


[MBS] MBS 7.5 with RB2010r4.1   -   Garth Hjelte
  [MBS] WindowsMidiMBS.Idle vs WindowsMidiInputMBS.Idle   -   Julia Truchsess
   Re: [MBS] WindowsMidiMBS.Idle vs WindowsMidiInputMBS.Idle   -   Christian Schmitz

[MBS] WindowsMidiMBS.Idle vs WindowsMidiInputMBS.Idle
Date: 08.01.18 03:08 (Mon, 8 Jan 2018 02:08:57 +0000)
From: Julia Truchsess
I have some code I wrote 7 years ago that maintains an array of WindowsMidiInput objects and on a timer event iterates through them, calling the Idle method of each one individually. Revisiting this now and looking at the MBS example programs, I see that WindowsMidiMBS also has an Idle method; I have no idea why I did it the way I did it back then.

Is there a substantial difference? Does WindowsMidiMBS.Idle automatically invoke the Idle method of all active WindowsMidiInputMBS objects?

Thanks,
Julia
_______________________________________________
Mbsplugins_monkeybreadsoftware.info mailing list
<email address removed>
https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info

Re: [MBS] WindowsMidiMBS.Idle vs WindowsMidiInputMBS.Idle
Date: 08.01.18 07:16 (Mon, 8 Jan 2018 07:16:54 +0100)
From: Christian Schmitz

> Am 08.01.2018 um 03:08 schrieb Julia Truchsess <<email address removed>>:
>
> I have some code I wrote 7 years ago that maintains an array of WindowsMidiInput objects and on a timer event iterates through them, calling the Idle method of each one individually. Revisiting this now and looking at the MBS example programs, I see that WindowsMidiMBS also has an Idle method; I have no idea why I did it the way I did it back then.

There is just one Idle method in the plugin which delivers events.
WindowsMidiMBS.Idle and WindowsMidiInputMBS.Idle are both the same method.

So calling one is enough.

Sincerely
Christian