Conversation
with proxy function for canvas messages and clock for cleanup
…f warnings, clean up buffered tcl/tk images when object is deleted
…addcheckbox`, `_properties_addtextinput` and `_properties_addcolorpicker`
pd-lib-builder has means to install entire directories, so we should probably use them, rather than build our own (and broken) install replacement. Closes: agraef#81
4a60586 to
0477d10
Compare
…r purr-data implementation
|
@charlesneimog It seems like right now, all properties apply immediately on change. We could either make it wait for the "apply" command, or we could replace the cancel/ok/apply buttons with just an ok button. My preference might be to just have one button, I fear it would become quite complex otherwise |
…rt purr-data properties implementation
533792f to
b14de04
Compare
|
@agraef Regarding the purr-data implementation: SVGs, images, mouse enter/exit and text alignment should be trivial, just a matter of passing the data over to purr-data and handling it in JS. There is already a basic implementation for purr-data external properties here, but it's missing a few features like:
All in all, I think it's quite doable to port this over |
Yes, I agree. I think saving everything in variables and sending it all at once is better. I also don’t like Pd’s If the user just closes the window, nothing will be applied, right? Do you think this might feel odd for users use to Pd? When I implemented it the first time, I found it could be a bit unexpected. |
…x all compiler warnings
Done, properties now get sent only after clicking "Apply" or "OK", and are discarded with "Cancel". |
1ad2b51 to
80a4612
Compare
I think this is a matter of design guidelines for different OSs (rather than personal preferences). eg on macOSX, properties should apply immediately (whenever a value changes). that's the reason why Pd's dialogs look they do |
Thanks, that's good to know. So from my experimenting so far, I've found: Windows/Linux:
macOS:
Does that sound right? |
…nt apply/return behaviour for macOS and Windows/Linux
|
I managed to build a version that combines both lua and luajit into one external: https://github.com/timothyschoen/pd-lua/tree/luajit Here's how it works: Luajit side:
Regular lua side:
After doing that, it works perfectly: both get compiled into a single external. You decide which Lua gets used based on whether the lua file ends with .pd_lua or .pd_luajit Here's a benchmark comparing the two: Personally I'd be in favour of merging this, since the performance difference is enormous. This also makes pdlua much more interesting for DSP purposes. I understand that it's a big change though, and the build system is admittedly a bit hacky. |
|
This is really really cool, I am trying to compile it on arch linux, I am getting this: Some ideia? EDIT: Now works!! |
Can you try a clean build now? I was still messing around a bit to get the github actions to work on every platform, but it should be good now :) |
|
@timothyschoen, on properties yet! (pdluajit works here). I was trying to do this function lplot:properties(p)
local i = 0
p:new_frame("Colors", #self.draws)
for k, v in pairs(self.draws) do
local method = "update_color_" .. i
self[method] = function(obj, color)
obj.draws[k].color = color[1]
end
p:add_color(k, method, v.color)
i = i + 1
end
endI believe you need to add a pdlua->properties.property_count++;on without this we have |
Good catch, fixed that for both branches. |



Work in progress to take some work away from @agraef for the next update.
I've merged most of the opened PRs into a new branch, resolving conflicts and adding missing plugdata implementations if needed. It includes:
#84: SVG rendering by @timothyschoen
#82: Makefile improvement by @umlaeute
#80: Clock deprecation fix by @ben-wes
#79: Github actions runner fix by @ben-wes
#77: Property menu support by @charlesneimog
#76: Fix compilation against new Pd version by @ben-wes
#70: Add mouse enter/exit callbacks by @ben-wes
#69: Fix path:close() documentation error by @ben-wes
#66: Make some gfx arguments optional by @ben-wes
#65: Add alignment feature to text drawing by @ben-wes
timothyschoen#7: Fix missing return value by @KottV
On top of that:
Planned:
I'm aware that this is gonna be a big set of changes. To ensure stability, I was hoping to get some assistance with testing from @ben-wes and @charlesneimog, once I get this out of the draft stage.