Knobs & Values displayed

Discuss Lemur and share techniques.
julien
Newbie
Posts: 31
Joined: 04 Aug 2012 08:34
Contact:

Knobs & Values displayed

Post by julien »

Hi there,
I'd like to display values from a knob but not raw ones (from 0. to 1.)
Basically, I want to display string values instead of numerical.
from 0 to 0.1 I want to display 1/32
0.1 to 0.2 I want 1/16
etc

any easy way for that ?
Macciza
Regular
Posts: 1315
Joined: 07 Dec 2011 04:57
Location: Sydney, Australia.

Re: Knobs & Values displayed

Post by Macciza »

Hi
Lots of different ways
Nested if statements are one way . . .
You can set the values in an array, globally perhaps, {'1/32','1/16'} you need quotes to return strings . .
and reference that instead ~ array[1] for "1/16" . . ..
Maybe even a global function displaying float_as_timediv if you are doing it a lot . . .
Cheers
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]
julien
Newbie
Posts: 31
Joined: 04 Aug 2012 08:34
Contact:

Re: Knobs & Values displayed

Post by julien »

Hi Macciza,
okay totally got it.
not totally, global stuff needs to be declared where?
Macciza
Regular
Posts: 1315
Joined: 07 Dec 2011 04:57
Location: Sydney, Australia.

Re: Knobs & Values displayed

Post by Macciza »

Hi
Just a reminder that things have scope - stuff declared at Project level is essentially global
But stuff can also be defined locally within objects and over-riddden as well

Some choose to put user functions and arrays into a container called functions, _func or similar and access them from there . .
ie setting a Monitors value _func.as_time_val(Knob.x) or using
or you can have a lot in the root directory and then just use them directly.
It depends on how you are approaching/structuring your programming I guess . . .

Hope that helps
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]
julien
Newbie
Posts: 31
Joined: 04 Aug 2012 08:34
Contact:

Re: Knobs & Values displayed

Post by julien »

Yes I checked that.
Indeed, it is even represented visually in the bottom right part with that tree structure.

In my case, I would have some functions like that.
I guess I would trig the calculation as soon as the value of the knob changes.

But I'm still stuck.
Can I have multiple lines scripts ?

I guess I have to put a value like that, on my knob :
= f(x)

where f is my global function, right?
Macciza
Regular
Posts: 1315
Joined: 07 Dec 2011 04:57
Location: Sydney, Australia.

Re: Knobs & Values displayed

Post by Macciza »

Hi Julien
Yes - That is one of Lemurs strengths, its scripting
The 'Internal' section of the tree structures shows most of the builtin functions
Define your own at varying levels using the 'Script' button at the bottom,
Also many/most of the parameter fields will accept logical statements as well

Check out the User Library at http://liine.net/en/community/user-library/
There are several DJ/Live Projects there.
As I mentioned earlier Lemurs strength is it's scripting
Do you want one Project that will cover 15 songs with a common interface . . .
Or do you want 15 different interfaces ? One for each song, tailored to it specifically?
Or something in between? A general central interface with optional extras on call?

Cheers
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]
julien
Newbie
Posts: 31
Joined: 04 Aug 2012 08:34
Contact:

Re: Knobs & Values displayed

Post by julien »

I made a basic setup with 3 interfaces and some tabbed containers.
I still didn't go further because of schedule/time.

I'll perform there: http://creativetechnologylive.wordpress.com and again at a couple of events where I'm living, France.
Then I'll dig scripting on Lemur.
I'm currently more into scripting/patching in Max on the computer side and using Lemur for basic remote control and feedback.
Macciza
Regular
Posts: 1315
Joined: 07 Dec 2011 04:57
Location: Sydney, Australia.

Re: Knobs & Values displayed

Post by Macciza »

Hi

Ultimately, using both Max,M4L, SC whatever, in conjunction with Lemurs scripting gives the most power.
Being able to 'offload' tasks to Lemur makes things far easier in many situations, simplifying what you need to do on both sides. Lemur can act like hardware and give complex responses to simple input ie. color response to velocity, flashing etc

Would be good if you could write up a review of what you are doing, and post it here on the Forum . . .

Cheers
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]
julien
Newbie
Posts: 31
Joined: 04 Aug 2012 08:34
Contact:

Re: Knobs & Values displayed

Post by julien »

SURE.
I wanted to make a post on my blog about my system.
But as I wrote, it is very simple.
I'm using only a clip matrix mapped to ableton live + a bunch of knobs/faders mapped statically through MIDI.
Macciza
Regular
Posts: 1315
Joined: 07 Dec 2011 04:57
Location: Sydney, Australia.

Re: Knobs & Values displayed

Post by Macciza »

No worries

I guess sometimes simplicity is also another key . .
Being able to make just what you need and no more is powerful too!
Cheers
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]
Post Reply