• cpenny42

    I've been interested in this for a while. I've extensively used Pd and extended it on my own, and also have used LabVIEW for a few years in an engineering setting.

    I really want to make a Pd -> VHDL compiler, from there you could definitely print chips. However, I would also want to add support for a "patch" that runs external C (or C++) code, since sometimes you will definitely need the low-level abilities of C when writing firmware.

    posted in Off topic read more
  • cpenny42

    Can you be more specific? You can definitely take in the input list, get its size (using [list length]), then output a different list through a single outlet, but I think you might mean that the number of outlets changes depending on the input list. You can definitely do this through dynamic patching (I have a patch that will help you do this easily), but if you dynamically change the number of outlets, any connections you have would be disconnected. You can fix this with more dynamic patching, but it gets a little more complicated. If you post more info about what specifically you're trying to do we can definitely help.

    posted in extra~ read more
  • cpenny42

    I've done this a lot in the current Xcode, if anyone's interested I could give some help or show you some sample projects.

    posted in tutorials read more
  • cpenny42

    @ricky Cool! Small world I guess. I'm working with him right now on using Pd for a Music Apps for the iPad course — it's really fun.

    posted in technical issues read more
  • cpenny42

    @ricky And there is a technique you can use for deleting objects in a patch, but it's kind of hacky. You can use [find <object_identifier> 1, cut( if the object has something in its name that is guaranteed to be unique. This usually isn't the case, but you can design your dynamic patch with this in mind.

    Here's an example where I do this:

    abstractions.pd
    abstractions-help.pd

    posted in technical issues read more
  • cpenny42

    @ricky Here's a patch I made that will do this. Give it the name of your patch and it will give you the ID of each object, which you can use to connect/disconnect them:

    get_object_id.pd

    posted in technical issues read more
  • cpenny42

    @raynovich There are tons of ways to do this. I've made some patches going over 2 different ways:

    This one opens a subpatch that holds a message box and waits for the enter key to be pressed before sending the box's contents to elsewhere in the patch. It automatically enters and exits Edit mode so the user doesn't have to worry about it. Right now it uses a message box, but that could easily be replaced with a symbol box if it's not important to be able to input multiple words:
    input_text_simple.pd

    The next one is a bit more complex and was a lot more fun to make. It uses dynamic patching to create canvases in a subpatch. It listens for valid keystrokes and interactively changes the canvases' labels until the user presses enter, when the input is captured and sent to the main part of the patch:

    input_text_advanced.pd

    The tricky thing about the second one is that it uses a non-fixed-width font, so it can sometimes mess up my guesses for the word width (in pixels), since some letters are a lot longer than others.

    Edit: the advanced one has a dynamic [makefilename] patch too, which is pretty useful.

    posted in technical issues read more
  • cpenny42

    There's a C# libpd API, I'd imagine it's pretty similar to the Objective-C version @Zhah001

    posted in Off topic read more
  • cpenny42

    @sebpiq I made one of these for a library I'm working on - it has exactly the syntax you want plus some more things:

    dictionary-standalone.pd
    dictionary-standalone-help.pd

    It's "standalone" because the actual [dictionary] object uses a bunch of external patches that were replaced with [pd ] subpatches.

    If you're interested, I have a bunch of those patches here (I'll update it with a Github link soon):

    Pd Patches - Google Drive

    With the [environments] object, you can have key-value bindings where the values are [dictionary] objects (using dynamic patching). [abstractions] lets you put your own subpatch as the value instead of a [dictionary].

    Edit: Here's a standalone version of [abstractions] (that's also vanilla compatible):

    abstractions-standalone.pd
    abstractions-standalone-help.pd

    posted in technical issues read more
  • cpenny42

    I am just curious - I know there are other ways to create either type of filter. Also, if you were given a filter but didn't have any info about it, is there a good method for checking which type it is?

    Thanks!

    posted in technical issues read more
Internal error.

Oops! Looks like something went wrong!