<div dir="ltr">Hi, is this only for "knobs" and just to have a knob in Pd? I assume not, cause there are knob externals for Pd and a PR to include one in Vanilla <a href="https://github.com/pure-data/pure-data/pull/938">https://github.com/pure-data/pure-data/pull/938</a><div><br></div><div>But I guess the point is a more generic object to load SVG files and period, which sounds like a good thing in general!</div><div><br></div><div>I'm still learning a bit about GUI objects in Pd, but I guess what you need to research is if tcl/tk can load SVG files and how.</div><div><br></div><div>So start by doing a google search on "tcl/tk + SVG". For what I see in the same search is that it does seem possible indeed!</div><div><br></div><div>cheers</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Em sex., 23 de out. de 2020 às 13:07, Jakob Skouborg <<a href="mailto:syntaxerror60@hotmail.com">syntaxerror60@hotmail.com</a>> escreveu:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div style="overflow-wrap: break-word;"><div style="font-family:inherit"><div dir="auto" style="font-family:inherit"><div id="gmail-m_3673206446788592755jsc_c_12o" style="padding:4px 16px;font-family:inherit"><div style="display:flex;font-family:inherit"><div style="margin-top:5px;margin-bottom:5px;font-family:inherit"><span dir="auto" style="line-height:1.3333;display:block;max-width:100%;font-family:inherit;min-width:0px;font-size:0.9375rem;word-break:break-word"><div style="margin:0px;white-space:pre-wrap;font-family:inherit"><div dir="auto" style="font-family:inherit">Hey guys!</div></div><div style="margin:0.5em 0px 0px;white-space:pre-wrap;font-family:inherit"><div dir="auto" style="font-family:inherit">Just some Friday thoughts about Pure Data and UI elements, like knobs, etc.:</div></div><div style="margin:0.5em 0px 0px;white-space:pre-wrap;font-family:inherit"><div dir="auto" style="font-family:inherit">In VCV rack, it's pretty easy to make your own knobs for your modules. You can use the free open source program called Inkscape to make a knob, which is basically an SVG file.</div></div><div style="margin:0.5em 0px 0px;white-space:pre-wrap;font-family:inherit"><div dir="auto" style="font-family:inherit">I was thinking that it would be really cool to be able to do something similar in Pure Data. To have an object/external that can load these knob SVG files into it, and then use the mouse to set a value(and knob position) between 0-1, either by dragging up/down or left/right and pressing the mouse on top of the object. It would really open up a whole new universe for Pure Data and making nice user interfaces.</div><div dir="auto" style="font-family:inherit"><br></div></div><div style="margin:0.5em 0px 0px;white-space:pre-wrap;font-family:inherit"><div dir="auto" style="font-family:inherit">I have been playing with coding audio stuff for a few years in c++, mostly at hobby level, and I was wondering how hard it would be to make an object like that(if possible at all), that can load an SVG files created in Inkscape?</div></div><div style="margin:0.5em 0px 0px;white-space:pre-wrap;font-family:inherit"><div dir="auto" style="font-family:inherit">Since VCV Rack is open source, I think I am going to see if I can find the code for the knob implementation this weekend, to see how it works in VCV.</div></div><div style="margin:0.5em 0px 0px;white-space:pre-wrap;font-family:inherit"><div dir="auto" style="font-family:inherit">But first of all I am just curious about it and was looking for more experienced programmers though, especially you guys, who know a lot about PD, if it's a completely lost cause or if it is plausible idea.</div></div><div style="margin:0.5em 0px 0px;white-space:pre-wrap;font-family:inherit"><div dir="auto" style="font-family:inherit">Personally I have not yet created any Pure Data externals, but I have been looking through some of dr. Hernandez pure data external creation tutorials on YT. I did make a bunch of VCV rack modules, so I know a bit about that.</div></div><div style="margin:0.5em 0px 0px;white-space:pre-wrap;font-family:inherit"><div dir="auto" style="font-family:inherit">Any thoughts are welcome <span style="margin:0px 1px;height:16px;width:16px;display:inline-flex;vertical-align:middle;font-family:inherit"><img height="16" width="16" alt="🙂" src="https://static.xx.fbcdn.net/images/emoji.php/v9/t4c/1/16/1f642.png" style="border: 0px;"></span> </div></div><div style="margin:0.5em 0px 0px;white-space:pre-wrap;font-family:inherit"><div dir="auto" style="font-family:inherit">Besides that, have a great weekend!</div><div dir="auto" style="font-family:inherit"><br></div><div dir="auto" style="font-family:inherit">Best wishes, Jakob</div></div></span></div></div></div></div></div><div style="font-family:inherit"><div style="border-radius:0px 0px 8px 8px;overflow:hidden;font-family:inherit"><div style="font-family:inherit"><div style="font-family:inherit"><div style="font-family:inherit"></div></div></div></div></div></div>_______________________________________________<br>
Pd-dev mailing list<br>
<a href="mailto:Pd-dev@lists.iem.at" target="_blank">Pd-dev@lists.iem.at</a><br>
<a href="https://lists.puredata.info/listinfo/pd-dev" rel="noreferrer" target="_blank">https://lists.puredata.info/listinfo/pd-dev</a><br>
</blockquote></div>