Bc2000 (for the BCF2000 & BCR2000) group photo

Yahoo Groups archive

Bc2000 (for the BCF2000 & BCR2000)

Index last updated: 2026-04-28 23:16 UTC

Message

Re: Reading BCR current encoder value in .bcl, c or hex please?

2011-05-17 by sghookings@tiscali.co.uk

If your GUIs are in Java, then congrats ... they are superb GUIs.
I didnt persue Java for MiniakTools because I had poor experience with old Swing etc. But your GUI is just great.

Regards

Steve H

--- In bc2000@yahoogroups.com, Martin Klang <mars@...> wrote:
>
> 
> ah! that old chestnut.
> Having done a few GUI / midi apps myself it is a conundrum I recognise well.
> 
> Requesting the value from the device will never be a robust solution, and you're multiplying MIDI traffic x3 quite unnecessarily. If you consider that turning a couple of high-resolution knobs at the same time generates a veritable shitload of messages already, then you'll realise there must be a better solution.
> 
> I would suggest that you look into adding state keeping to your widgets to solve the problem, so that you always know where an update came from, and hence where it needs to be sent on to.
> All you should have to do is to split the update interface into two, one for the GUI/DAW, one for MIDI, and keep track of where the update call came from.
> 
> There's also a more generalised approach which involves registering callbacks. This might be necessary if there's a possible 3 or 4 sources of updates, e.g. loading a preset, or other actions originating from within your application.
> 
> Look out for feedback loops too. Some GUI widgets will unconditionally re-send an update to its listeners when you update its value, though with most toolkits you can control whether it does or not.
> 
> What programming language / platform are you on?
> I have some Java and C++ / Juce code [1][2] which you are welcome to peruse.
> 
> hth,
> 
> /m
> 
> [1] http://mars.pingdynasty.com/software.oml
> [2] http://git.pingdynasty.com/?p=miditoys.git;a=summary
> 
> 
> On 17 May 2011, at 17:28, bitman2112 wrote:
> 
> > I am working on a control surface plugin.
> > 
> > I have a desperate situation where I need to determine whether the change to a DAW widget came from spinning the widget in he DAW or if it was changed by spinning the encoder on the BCR. 
> > 
> > How do I peek in at an encoder's current value setting using BCL, C, or 
> > otherwise.
> > 
> > Thanks in advance.
> >
>

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.