Hi
A couple of comments on this cross topic thread . . .
Yes you can declare functions in Lemur as mentioned by someone else, though I would note they have varying lexical and temporal scopes depending on where they are declared.
This should also have been the case with your 'test,test2' functions, which surely would have had scope relevant to the class they were declared in; or how they were declared i.e. global , private etc. …
In Lemur you can declared global functions at the root level of the project and access them any where. Beyond that the hierarchy is pretty much what is seen in the project pane.
If a function is in a container then the function becomes 'container.function()' when accessed outside its internal scope but as function() within its scope . . .
Re Object Oriented approaches . . . .
I see Lemur as providing a number of base classes that can be extended/subclassed/templatised in order to create new objects - and that these also have an object model that they also inherit from . . ..
The most fundamental of these are the UI objects which can be 'subclassed' i.e. created and saved as modules, then those subclassed objects used instead of inbuilt modules
For example - if you want a particular style of Fader with text value then modularise it and use the module rather then rebuilding every time you need one . . .
Another thing to consider is the use of supporting 'libraries' of functions (as mentioned by others) that can contain helper functions for various objects . . . .
It is possible to produce 'drop-in replacement' objects see
http://forum.liine.net/viewtopic.php?f=34&t=2921
If the standard Lemur variables and functions are all appropriated exposed then interchange and reuse becomes simpler - though it does require the 'standards' for extension be followed . . .
Have also checked out a number of interesting possibilities that are suggested by combining all this into a more cohesive unit - sort of LemurX(tended) . . . .
With this would go further OO styled stuff in terms of extra OO libraries and some workarounds to do some other stuff . . .
Will do a bit more on all this again soon . ..
iMac 2.8G i7 12G 10.6.8/10.7.2, Legacy Dexter/Lemur, Liine Lemur/iPad2, KMI SoftStep, 12Step & QuNeo , B-Controls, Mackie C4 etc
MaxMSP, Live Suite, Native Instrument stuff, etc Modified Virtual Guitar System etc All Projects/Modules © CC-BY-NC-SA[*][/b]