Viewbuilder <Control>.bind

Maybe I’m doing something stupid here but why cannot I do something like the following to quickly add a BPM box in a GUI?

  
vb:valuebox{  
 value = renoise.song().transport.bpm,  
 bind = renoise.song().transport.bpm_observable,  
}  
  

Is it something to do with renoise.song().transport.bpm_observable being of type ‘Observable’ and bind wanting an ‘ObservableNumber’?

observable should retreive a function to call. (Renoise fires up the function that you set the observable to)
I think using the observable to fire up the function to change the value of the bpm for the value box on-the-fly is a lot better.

I personally never have used the bind function.

Yes, the viewbuilder needs a “custom” ObservableNumber, so linking it to the transport’s bpm unfortunately won’t work.