• toxonic

    @whale-av thanks david, that should work. :-) the downside though is, that, if you put this patch inside an abstraction or a subpatch, which itself is in GOP mode, you need to put the paint subpatch into the gop area too, because otherwise the data won't be displayed. but that's not such a big deal in my case, since you can adjust the GOP x and y values and size of the paint subpatch, so that it's just a slim stripe right under the displayed array. ;-)

    posted in technical issues read more
  • toxonic

    mhh, strange - dosn't work for me as array element....
    array_test_-x-flag.pd

    edit: as a workaround, i could declare "float y" in the array template and use the "-y" flag (with some imaginary variable assigned) in the [plot] object, but you would still see the arrows when hovering over the array elements....

    posted in technical issues read more
  • toxonic

    is there a way to surpress mouse actions in data structure arrays? i am afraid, the answer is no, but i thought, maybe one of the DS wizards here in the forum knows a way to achieve this.

    just to clarify, i want to use a square (filledpolygon) as array-element to build a background for each cell of a step-sequencer. since it should only be a design element, it should not get any mouse events. adding the -x flag to the filledpolygon doesn't do the trick and [plot] doesn't accept that flag (respectivley, it has another function there).

    thanks in advance! ;-)

    posted in technical issues read more
  • toxonic

    @Pimp_me
    just, because couldn't let it be... ;-)
    Bildschirmfoto vom 2020-02-29 18-12-25.png
    and here the patch: find_list_val.pd

    posted in technical issues read more
  • toxonic

    @Pimp_me i'm pretty sure, that someone already built an abstraction, that solves such tasks in an elegant way - however, i don#t exactly know! ;-) i just tinkered around by trial and error and i have to confess, i feel a bit ashamed about such an akward patch. but maybe it could be a starting point. i'm sure, this can be refined or build another way. at the moment, it only works, as long the integrals a below than 10. :unamused:
    find_list_val.pd
    basically, i convert the symbol into a list, break it up into it's single elements and look for the indicies of the colons. then i route these indicies to [list split] units, wich extract the first element after each colon.

    posted in technical issues read more
  • toxonic

    @ingox @Jona @whale-av @Balwyn People, you are really amazing! :-) All these hints are very useful! in this particular case, @ingox / @whale-av 's tip regarding [receive pd] is a solution, which works pretty well and makes [mousestate] unnecessary! however, a big thanks to each of you! :-)

    posted in technical issues read more
  • toxonic

    @whale-av hey, that's quite nice! :-) i got an error message, although it seems to work though.

    UNHANDLED ERROR: extra characters after close-quote
        while executing
    "pdtk_post "loaded: experimental mouse plugin
    "`"
        ("uplevel" body line 17)
        invoked from within
    "uplevel #0 $tclcode"
    FAILED TO LOAD /home/toxonic/.local/lib/pd/extra/focused_mouse-plugin.tcl
    -----------
    

    EDIT: found the buck, there were some " ``` " signs at the end of the code.

    after restarting pd (not the patch) it spits out a lot of error messages,: mouse recieve: no such object..
    anyway, thanks for the idea! :-)

    posted in technical issues read more
  • toxonic

    @ingox yeah, but that's what i've been looking for - i didn't think of using plot for limiting the values. ;-) in this case, i don't need the index of the modified array element, because the values will triggered by a sequencer, that just iterates through the array. i store all the values at once with a combo of [array get] / [array set].
    what i still find unsatisfying is, that i don't get it to work, that the values get stored in a hidden table, that saves the contents with the patch, right after i changed a value. at the moment, i use [mousestate], wich let's me store the values, just when i release the mousebutton. i'd love to get this in vanilla, but it seems that the data structures only give me click events, but not when the mousebutton is released. but ok, thats off topic now.... ;-) if someone knows a good workaround though, don't hesitate to reply! ;-) however, thank you very much! :-)

    posted in technical issues read more
  • toxonic

    @Boran-Robert thanks, but unfortunately it doesn't! ;-) i already checked that, there's not much about arrays... indeed this was the first document i read regarding DS, because it's also pubished in my native language (german). anyway, thanks for your reply.

    posted in technical issues read more
  • toxonic

    and once more a question on data structures... ;-)
    how can i limit the range of a field in an array? this here doesn't seem to work:
    Bildschirmfoto vom 2020-02-26 16-40-01.png

    posted in technical issues read more

Internal error.

Oops! Looks like something went wrong!