Re: [PD] getting the ranges from a slider

2012-02-22 Thread D G
Hi guys

Hey Jonathan your patch was very nice, but the get method did not work for
me. I had already tried it before writing to the list. Is there a real way
to work this out?

IOhannes

how about: normalize all slider ranges between 0..1 and transform the
output to the desired range only afterwards?
Yes thats what i was trying to avoid. But seems that there is no other way.

i always thought, that the MIDI-based default scaling of sliders and the
like was a step back, and that being able to specify the range has
little gain (though of course i use it...)

That could be if seeking to simplify the settings of native gui objects in
PD.

I agree with you on the MIDI based default... normalized could be simpler.
Also easier to explain to a person that is just starting to learn PD.
Sometimes when they ask why is the range set to 127 you end up with a
long talk about MIDI to a person that is getting started and wants to get
his first sound out of PD.

back to the get... is there a way to doit?

D


2012/2/22 IOhannes m zmoelnig zmoel...@iem.at

 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 On 2012-02-21 20:41, D G wrote:
  Hi List
  I have been looking but have not found the way to ask a slider for the
  ranges it has been set to.
 
  Is there a way to get a slider to print all its propperties? This will be
  useful to create a tool that makes randomness to any slider for a
  percentage depending on the ranges it is already set to. I obviously know
  the ranges, but have a huge number of sliders and [knob] objects so it
  would be painful to try to get them all.
  Also, if such a method exists, the randomic thing I wanna do could be
  implemented to any object without having to look at ist propperties.
 
  Would appreciate help or leads to workitout.
 

 how about: normalize all slider ranges between 0..1 and transform the
 output to the desired range only afterwards?

 i always thought, that the MIDI-based default scaling of sliders and the
 like was a step back, and that being able to specify the range has
 little gain (though of course i use it...)

 fgm,asdr
 IOhannes
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.4.11 (GNU/Linux)
 Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

 iEYEARECAAYFAk9EnSYACgkQkX2Xpv6ydvS7GwCgpO45m+ngMiU9EHd3lLb5W7Pb
 FM8AoOQuzXgGVNP+jz+88rUKCfkiPfSz
 =NnuF
 -END PGP SIGNATURE-


 ___
 Pd-list@iem.at mailing list
 UNSUBSCRIBE and account-management -
 http://lists.puredata.info/listinfo/pd-list


___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] getting the ranges from a slider

2012-02-22 Thread Jonathan Wilkes

 From: D G mami.mu...@gmail.com
To: pd-list@iem.at 
Sent: Wednesday, February 22, 2012 11:51 AM
Subject: Re: [PD] getting the ranges from a slider
 

Hi guys

Hey Jonathan your patch was very nice, but the get method did not work for me. 
I had already tried it before writing to the list. Is there a real way to work 
this out?

It is only for getting the properties of a canvas (i.e., patch properties).

One could do a similar patch for the iemguis and atom boxes using that type of 
interface, but I haven't 

made one.


-Jonathan


___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] getting the ranges from a slider

2012-02-22 Thread Jack

Le 22/02/2012 17:51, D G a écrit :

Hi guys

Hey Jonathan your patch was very nice, but the get method did not work 
for me. I had already tried it before writing to the list. Is there a 
real way to work this out?


IOhannes

how about: normalize all slider ranges between 0..1 and transform the
output to the desired range only afterwards?
Yes thats what i was trying to avoid. But seems that there is no other 
way.


i always thought, that the MIDI-based default scaling of sliders and the
like was a step back, and that being able to specify the range has
little gain (though of course i use it...)

That could be if seeking to simplify the settings of native gui 
objects in PD.


I agree with you on the MIDI based default... normalized could be 
simpler. Also easier to explain to a person that is just starting to 
learn PD. Sometimes when they ask why is the range set to 127 you 
end up with a long talk about MIDI to a person that is getting started 
and wants to get his first sound out of PD.


back to the get... is there a way to doit?

D


2012/2/22 IOhannes m zmoelnig zmoel...@iem.at mailto:zmoel...@iem.at

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 2012-02-21 20:41, D G wrote:
 Hi List
 I have been looking but have not found the way to ask a slider
for the
 ranges it has been set to.

 Is there a way to get a slider to print all its propperties?
This will be
 useful to create a tool that makes randomness to any slider for a
 percentage depending on the ranges it is already set to. I
obviously know
 the ranges, but have a huge number of sliders and [knob] objects
so it
 would be painful to try to get them all.
 Also, if such a method exists, the randomic thing I wanna do
could be
 implemented to any object without having to look at ist propperties.

 Would appreciate help or leads to workitout.


how about: normalize all slider ranges between 0..1 and transform the
output to the desired range only afterwards?

i always thought, that the MIDI-based default scaling of sliders
and the
like was a step back, and that being able to specify the range has
little gain (though of course i use it...)

fgm,asdr
IOhannes
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk9EnSYACgkQkX2Xpv6ydvS7GwCgpO45m+ngMiU9EHd3lLb5W7Pb
FM8AoOQuzXgGVNP+jz+88rUKCfkiPfSz
=NnuF
-END PGP SIGNATURE-


___
Pd-list@iem.at mailto:Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management -
http://lists.puredata.info/listinfo/pd-list



___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management -  
http://lists.puredata.info/listinfo/pd-list

Hello,

Here a small patch showing what IOhannes means.
++

Jack




rangeSliderNormalized.pd
Description: application/puredata
___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


[PD] getting the ranges from a slider

2012-02-21 Thread D G
Hi List
I have been looking but have not found the way to ask a slider for the
ranges it has been set to.

Is there a way to get a slider to print all its propperties? This will be
useful to create a tool that makes randomness to any slider for a
percentage depending on the ranges it is already set to. I obviously know
the ranges, but have a huge number of sliders and [knob] objects so it
would be painful to try to get them all.
Also, if such a method exists, the randomic thing I wanna do could be
implemented to any object without having to look at ist propperties.

Would appreciate help or leads to workitout.

Thanks

D
___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] getting the ranges from a slider

2012-02-21 Thread Jonathan Wilkes

 From: D G mami.mu...@gmail.com
To: pd-list@iem.at 
Sent: Tuesday, February 21, 2012 2:41 PM
Subject: [PD]  getting the ranges from a slider
 

Hi List
I have been looking but have not found the way to ask a slider for the ranges 
it has been set to.


Is there a way to get a slider to print all its propperties? This will be 
useful to create a tool that makes randomness to any slider for a percentage 
depending on the ranges it is already set to. I obviously know the ranges, but 
have a huge number of sliders and [knob] objects so it would be painful to try 
to get them all. 
Also, if such a method exists, the randomic thing I wanna do could be 
implemented to any object without having to look at ist propperties.


I wrote a patch for a canvas get method:

http://sourceforge.net/tracker/?func=detailaid=3308027group_id=55736atid=478072

The downside: whatever the programming equivalent of through-composed is, 
that would 

describe the way I coded this.  matju gave me some suggestions for making it 
easier to 

register the symbols for the attributes.  Also for iemguis, you probably want 
the results to 

be sent by default to a 2nd outlet which you would add to the object.  (I think 
there's a 

patched version of [tgl] on the tracker that does this.)

One other downside: the only practical way I've found to print _all_ properties 
in response to 

one message is as a sequence of messages that flow from the outlet or specified 
receive-name.  

If you try to use such objects recursively Pd won't catch your buffer-overflow 
mistakes:

[r oops]
|
[60 1, 61 1, 62 1, 63 1, flush(
|
[bag]
|
[s oops]


-Jonathan




Would appreciate help or leads to workitout.


Thanks


D
___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list




___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] getting the ranges from a slider

2012-02-21 Thread IOhannes m zmoelnig
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 2012-02-21 20:41, D G wrote:
 Hi List
 I have been looking but have not found the way to ask a slider for the
 ranges it has been set to.
 
 Is there a way to get a slider to print all its propperties? This will be
 useful to create a tool that makes randomness to any slider for a
 percentage depending on the ranges it is already set to. I obviously know
 the ranges, but have a huge number of sliders and [knob] objects so it
 would be painful to try to get them all.
 Also, if such a method exists, the randomic thing I wanna do could be
 implemented to any object without having to look at ist propperties.
 
 Would appreciate help or leads to workitout.
 

how about: normalize all slider ranges between 0..1 and transform the
output to the desired range only afterwards?

i always thought, that the MIDI-based default scaling of sliders and the
like was a step back, and that being able to specify the range has
little gain (though of course i use it...)

fgm,asdr
IOhannes
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk9EnSYACgkQkX2Xpv6ydvS7GwCgpO45m+ngMiU9EHd3lLb5W7Pb
FM8AoOQuzXgGVNP+jz+88rUKCfkiPfSz
=NnuF
-END PGP SIGNATURE-



smime.p7s
Description: S/MIME Cryptographic Signature
___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list