• JJLloyd

    @JJLloyd I think in future when writing new abstractions I might include a print object that gives its name and $0 number that is loadbang'ed. Then when a patch loads I will get a list of what abstractions being loaded. I did this just now and it helped with tracking down an annoying error as the console reports the $0 number not the abstraction name.

    As an aside another useful tool was opening the abstraction in a text editor and searching for the error using the find option.

    posted in technical issues read more
  • JJLloyd

    @ddw_music + 0.5 then take int is the same as round

    You need to scale by power of 10 according to number of decimal points as in the attached

    Interestingly it looks like floats get rounded in display to 4 dp anyway ?

    jjlround.pd

    posted in technical issues read more
  • JJLloyd

    Is there a quick way to get a list of all abstractions called within a patch?

    Ideally in a recursive way

    Thanks

    Jim

    posted in technical issues read more
  • JJLloyd

    I guess it was a rather vague and general question, but in reply to myself I think I would now say if I was starting the project again I would plan to develop help patches and abstraction at the same time. Or even write the help patch first which would help to clarify in my mind exactly what I was trying to do and what the inputs / outputs and gui should be (like an advanced specification) - then write the bit of the help patch that would have the testing example. Then write the actual abstraction.

    posted in technical issues read more
  • JJLloyd

    @whale-av Thanks again.

    Not sure if I fully understand, but I can see how it works. I have incorporated into my example:

    abstraction-jjl.pd abstraction-help-jjl.pd

    posted in technical issues read more
  • JJLloyd

    @jancsika I just noticed that when this problem occurs I can save the abstraction and then get the message on the console: "error: couldn't delete the iemgui drag handle!" - not sure if that help?

    posted in technical issues read more
  • JJLloyd

    ... and I can't work out how to use a similar method for symbols. In other words how do you use [select] or [route] when the symbol you are trying to select for is the empty symbol? - how is the empty symbol represented?

    posted in technical issues read more
  • JJLloyd

    @whale-av Thanks David - I think I was coming to a similar conclusion. This is fine unless you actually wanted to pass 0 as an argument, but I don't think there is any way around that. See attached

    abstraction-jjl.pd abstraction-help-jjl.pd

    posted in technical issues read more
  • JJLloyd

    @whale-av Following up on this I have been trying to understand abstractions and arguments better. I have looked at your very helpful tutorial: https://forum.pdpatchrepo.info/topic/9774/pure-data-noob togther with the example at the bottom of that thread. One thing puzzles me though - how do you write an abstraction so that if arguments are omitted in the object box they still have defined default values? What values do $1, $2, $3 etc take when they are not defined in the object box (but appear in the abstraction).

    Jim

    posted in technical issues read more
  • JJLloyd

    @whale-av Thanks David

    I have been using Purr-data, but just had a look at Pure Data (0.49.0). This does have useful feature under the window menu that shows the open windows with subpatches / abstractions indented. But I can't see any arguments listed.

    Purr data doesn't list the open windows - as far as I can see. It would be useful if it did

    Jim

    posted in technical issues read more

Internal error.

Oops! Looks like something went wrong!