[PD] Slider/Knob

Christof Ressi christof.ressi at gmx.at
Fri Sep 7 17:31:14 CEST 2018


Hi, to be honest, I never found it to be a big problem. I'm not too sure about the three outlet solution, I think it's indeed a bit far-stretched :-) what I would suggest is to give the user a visual hint (i.e. draw the rect borders and the iolets)- but only when the user hovers over the knob while the glist is in editmode. you can do this in mknob_newclick.

> iolets are floating in an empty space near the knob;

yes, this looks a bit funny, but you usually won't have the cables visible in your final GUI anyway, so I wouldn't worry about that. 
 
Christof

Gesendet: Freitag, 07. September 2018 um 14:45 Uhr
Von: "Antoine Rousseau" <antoine at metalu.net>
An: "Christof Ressi" <christof.ressi at gmx.at>
Cc: Pd-list <Pd-list at lists.iem.at>
Betreff: Re: [PD] Slider/Knob

Thanks for recommending mknob ;-)
 
I'd like to do an update of moonlib soon, as it has received some improvements: sfread2~ understands a new [index( message (thx to Antoine Villeret), and mknob now better supports zooming.
 

About the latter, I'd like to hear your opinion (you all mknob users...) about the following problem (and the solution I propose):
 
mknob poses a particular problem: because its circular shape doesn't comply to Pd graphical paradigm (every other objects are rectangular shaped), iolets are floating in an empty space near the knob; because it's visually ugly, and I don't want to surround the knob with a rectangular box, I chose not to draw the iolets, even when the mknob is not bounded to receive/send symbols. The problem (for explicitly connected  knobs) is now that it's somewhat tricky to guess where you have to draw the connection to/from, and that the wire connects to/from nowhere. This is acceptable for small knob, but when it becomes bigger it's really weird.
 
So the only idea I see (apart from hacking Pd sources...) is to setup 3 inlets and 3 outlets, so that you can connect from/to the one in the middle; the wire is then actually connected to the circle. I succeeded to code this behaviour, keeping to possibility to use any inlet and sending to the three outlets. It's maybe a little far-fetched, but its works. What do you think of it?
 
 
 
Antoine Rousseau 
  http://www.metalu.net[http://metalu.net] __ http://www.metaluachahuter.com/[http://www.metaluachahuter.com/compagnies/al1-ant1/]
  

Le ven. 7 sept. 2018 à 13:05, Christof Ressi <christof.ressi at gmx.at[mailto:christof.ressi at gmx.at]> a écrit :I recommend mknob from moonlib, but make sure you get the latest version from deken for pd >= 0.47

Christof

> Gesendet: Freitag, 07. September 2018 um 12:59 Uhr
> Von: Clemens <reinklang at online.de[mailto:reinklang at online.de]>
> An: Pd-list at lists.iem.at[mailto:Pd-list at lists.iem.at]
> Betreff: [PD] Slider/Knob
>
> Hello List,
>
> I would like to use knobs instead of sliders,
>
> where can I find them?
>
> Cheers
>
> Clemens
>
>
>
> _______________________________________________
> Pd-list at lists.iem.at[mailto:Pd-list at lists.iem.at] mailing list
> UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list[https://lists.puredata.info/listinfo/pd-list]
>


_______________________________________________
Pd-list at lists.iem.at[mailto:Pd-list at lists.iem.at] mailing list
UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list[https://lists.puredata.info/listinfo/pd-list]




More information about the Pd-list mailing list