Midi-slider questions (new user)

For general discussions related to SynthMaker.

Moderators: electrogear, exonerate

Midi-slider questions (new user)

Postby Noise11 on Tue Dec 13, 2011 12:51 pm

Hi !
I'm new to SM and make just my first attempts with the SM-free version...
I've 3 questions:

1. The "default" slider, from the module-examples, sends data continuous...
But how can I create such a Midi-slider:
The slider should send data only once; always after mouse-relase;
therefore always the last selected slider-value.
But the conected (conected to the slider, for value-control) "Float Label"-module
should display the slider-position continuous.

2. How can I create a Midi-slider which sends the data not linear (?)
For example:
- The "standard" (linear) slider sends the values: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, etc.
- but "my" Midi-slider should send the following values: 0, 1, 3, 4, 5, 7, 9, etc.

3. If I connect the "Float Label"-module to any slider (for value-control)
then I can read the numeric-value (slider-position) there...
But how can I create a label which displays "text-values" instead of the numeric-values (?)
For example:
- instead of the numeric values, like: 0, 1, 2, etc.
- the "Float Label" should displays text-values, like: Left, L63, L62, etc.

Perhaps are any examples existing in the forum to these topics (?) but I could not find anything.

Thanks in advance!
Noise11
essemer
 
Posts: 2
Joined: Mon Dec 12, 2011 11:24 am

Re: Midi-slider questions (new user)

Postby lesobrod on Tue Dec 13, 2011 5:02 pm

Hi, welcome to forum!! ))
Your questions are interesting so I try to help you but just partially. O:)

Noise11 wrote:3. If I connect the "Float Label"-module to any slider (for value-control)
then I can read the numeric-value (slider-position) there...
But how can I create a label which displays "text-values" instead of the numeric-values (?)
For example:
- instead of the numeric values, like: 0, 1, 2, etc.
- the "Float Label" should displays text-values, like: Left, L63, L62, etc.

Drag a "Label" (not "Float Label"!) primitive into your OSM. Go inside and find String "Label". Instead of it,
you can create custom string, or Input port for your data and see values as a text Label.
Another good primitive is a "Text View".

Noise11 wrote:2. How can I create a Midi-slider which sends the data not linear (?)
For example:
- The "standard" (linear) slider sends the values: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, etc.
- but "my" Midi-slider should send the following values: 0, 1, 3, 4, 5, 7, 9, etc.

Well this is job for a green primitives! What exact non-linear low do you mean, please?
So we have value "x"; can you write down y(x) symbolically or explain algo by words?
99% somebody on forum (maybe I) will help you to make a module for x->y(x) transformation!
For a lovely bowl let's arrange these flowers... Since there is no rice. Basho (c)(p)
User avatar
lesobrod
essemist
 
Posts: 156
Joined: Fri Aug 05, 2011 7:11 am
Location: Moscow, Russia

Re: Midi-slider questions (new user)

Postby cyto on Tue Dec 13, 2011 9:27 pm

I've made a example here to show you how to do a couple of things...
sliderExamples.osm

In it, you can see how to use a "float sample and hold" controlled by a mouse-left up (LUp) primitive. The slider has two outputs now. One is the continuous value, the other only updates when you release the mouse. You'll have to drill-down pretty far to see where I put the LUp primitive, but you can just follow the "mouseUp" trigger back to find it.

Also, lesobrod's advice for using green math for functional relations is good advice to heed. However, for outputting values that are not functionally related to the slider value, you can use the slider to control a selector. You just need to make sure the slider value is scaled to the amount of inputs to the selector. In the OSM I posted, I put together an example of how to go about doing this.

-cyto
You do not have the required permissions to view the files attached to this post.
User avatar
cyto
essemilian
 
Posts: 317
Joined: Sun Nov 28, 2010 4:36 am
Location: CIN | OH | USA

Re: Midi-slider questions (new user)

Postby cyto on Tue Dec 13, 2011 9:40 pm

I just noticed a flaw in my previous example. If, when moving the slider, you go out of range (ie. go below zero), the "mouse up" trigger will not be sent. This version uses a "bool to false" trigger from the "interact" output and accomplishes the same thing but without the aforementioned flaw...
sliderExamples2.osm

-cyto
You do not have the required permissions to view the files attached to this post.
User avatar
cyto
essemilian
 
Posts: 317
Joined: Sun Nov 28, 2010 4:36 am
Location: CIN | OH | USA

Re: Midi-slider questions (new user)

Postby Noise11 on Wed Dec 14, 2011 10:56 am

Hi,
All 3 "problems" solved !

reg. 3.:
I've "managed" it with the "Text View"-Module and the "Selector"-Primitive
I don't know if this is the most efficient solution, but it works!

reg. 2.:
I've "managed" it with the "Selector"-Primitive also here.

Thanks for the help/tips lesobrod :)


and reg. 1.:
This is exactly what I need...

Thanks for the excellent example cyto :)
Noise11
essemer
 
Posts: 2
Joined: Mon Dec 12, 2011 11:24 am

Re: Midi-slider questions (new user)

Postby lesobrod on Wed Dec 14, 2011 12:51 pm

Noise11 wrote:Hi,
All 3 "problems" solved !

It seems I become not so egoistic (as always) with this forum.
Glad to see that another's problems solved. Hmm..[;..;]
Noise11 wrote:Thanks for the excellent example cyto :)

And from me too, cyto (^_^).
For a lovely bowl let's arrange these flowers... Since there is no rice. Basho (c)(p)
User avatar
lesobrod
essemist
 
Posts: 156
Joined: Fri Aug 05, 2011 7:11 am
Location: Moscow, Russia


Return to General

Who is online

Users browsing this forum: No registered users and 2 guests

cron