^^KnobLed_ Module

Post and discuss Lemur Modules.
Macciza
Regular
Posts:1325
Joined:07 Dec 2011 04:57
Location:Sydney, Australia.
^^KnobLed_ Module

Post by Macciza » 28 Feb 2013 14:42

Hi All
^^KnobLed Help.tiff
^^KnobLed Help.tiff (72.85KiB)Viewed 4370 times
Have been meaning to post some stuff but keep wanting to tweak something a little more (never-endingly it seems) . . .
So I decided to at least post the basic module idea implementation so here it is.

It is a Knob with an Led marker based on Phil999's initial design but neatly encapsulated for ease of resizing and usage via standard Lemur syntax.
It presents 'x','z' and 'value' variables that should be able to be used in the same way you would use a Knob. A small 'Help' module is also included.
It is at a 'default' size of 100px (10*horizontal) - the container needs to be 'unlocked' to be altered, then 'lock' it again for easier moving.

This is an 'in-line' version in that it is self-contained; a refactored 'function library' based version is also almost finished.
I also have a number of specialisations of this object in the works but am still deciding on my preferred implementation.

Working on a few other nice ideas as well that I hope to post before too long . . .
Edit:©2013 Macciza. CC BY-NC-SA
Attribution-NonCommercial-ShareAlike
This license lets others remix, tweak, and build upon your work non-commercially, as long as they credit you and license their new creations under the identical terms.
Cheers
MM
Attachments
^^KnobLed_Help.jzlib
(20.74KiB)Downloaded 205 times
^^KnobLed_.jzlib
(5.65KiB)Downloaded 215 times
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]

Softcore
Regular
Posts:1639
Joined:04 Nov 2012 08:34

Re: ^^KnobLed_ Module

Post by Softcore » 28 Feb 2013 14:53

Hmmmm.....looks nice but it works erratically in my editor. I press "e" to see it in action and it doesnt work smoothly....

edit: Not sure whats going on here.....I get a container with a knob in it (looks like it).....but there is no knob object in it????

edit no2: forget edit no1 - I rarely use locking for containers so I had forgotten....

Still works erratically though....at least in the windows Lemur editor with "e" mode....
Last edited by Softcore on 28 Feb 2013 15:00, edited 1 time in total.

Macciza
Regular
Posts:1325
Joined:07 Dec 2011 04:57
Location:Sydney, Australia.

Re: ^^KnobLed_ Module

Post by Macciza » 28 Feb 2013 15:00

Oh yeah

It's presented at a 'default' size of 100px (via 'locking'- which hides the internals) . . .
This makes it easier to move etc once it is set up.

Highlight the container and click the 'lock' icon above the 'Transparent' checkbox . . . .

Sorry
MM
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]

Softcore
Regular
Posts:1639
Joined:04 Nov 2012 08:34

Re: ^^KnobLed_ Module

Post by Softcore » 28 Feb 2013 15:02

yeah sorry about that - I re-edited above!

Macciza
Regular
Posts:1325
Joined:07 Dec 2011 04:57
Location:Sydney, Australia.

Re: ^^KnobLed_ Module

Post by Macciza » 28 Feb 2013 15:06

Hmm
Works like a charm on Mac;~} . . .
And on the iPad . . .
MM
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]

Softcore
Regular
Posts:1639
Joined:04 Nov 2012 08:34

Re: ^^KnobLed_ Module

Post by Softcore » 28 Feb 2013 15:10

Ok trying to see what might cause the problem I have found out:

1. Disabling all the scripts doesnt solve the problem
2. The knob behaves "as if" something is keeping it "locked" to values
3. deleting the "x" and "z" expressions in the container makes the knob work properly

It all behaves as if the x,z variables in the container are not "discriminated" by the editor with the x,z variables INSIDE the knob causing a weird "lock up"....

4. re-enabling the scripts, the knob works properly

Im willing to bet if I re-add the expressions but I dont use the x,z names it will work too.....

Softcore
Regular
Posts:1639
Joined:04 Nov 2012 08:34

Re: ^^KnobLed_ Module

Post by Softcore » 28 Feb 2013 15:17

Nope.....replaced the container expressions x,z with k,l - of course I also replaced the references inside the epxressions.....

Still doesnt work....

Im curious if this happens to other users too or its just my editor......Lets just wait and see....

Macciza
Regular
Posts:1325
Joined:07 Dec 2011 04:57
Location:Sydney, Australia.

Re: ^^KnobLed_ Module

Post by Macciza » 28 Feb 2013 15:22

Hi
Try this one- it is saved unlocked.
And what about on your iPad? The Editor isn't 'perfect' in Run mode . . .

The x and z vars do the 'set/get' stuff together with the knob script and would need to be edited correctly to work - best left alone . . .

MM
Attachments
KnobLed_unlocked.jzlib
(5.64KiB)Downloaded 179 times
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]

Softcore
Regular
Posts:1639
Joined:04 Nov 2012 08:34

Re: ^^KnobLed_ Module

Post by Softcore » 28 Feb 2013 15:26

Same thing with the unlocked version you sent too!

I dont have the iPad with me right now but I can surely test it in a few hours and report back! ;)

I could only make it work if I edit the container x,z expressions to something as simple as

x=Knob.x
z=Knob.z

Softcore
Regular
Posts:1639
Joined:04 Nov 2012 08:34

Re: ^^KnobLed_ Module

Post by Softcore » 28 Feb 2013 15:29

A side question....

I have tried in the past in a multiline script:

Knob.x=Knob2.x=1;

And the editor wouldnt let me use two ermmmm "=" signs yet I see you use them in the expressions......

Is the above supposed to be "legal" in Lemur scripting?

Post Reply