GithubHelp home page GithubHelp logo

Comments (3)

cuinjune avatar cuinjune commented on August 25, 2024 1

Hi, receiving non-float data through non-first inlets is not possible in Ofelia.
While it is possible to support other types by using "active" inlets, it will add extra overhead so I decided to use passive inlets supporting only float types. And if you want to use other types, you can always use the first inlet to receive a list of any types and handle them internally.

from ofelia.

emviveros avatar emviveros commented on August 25, 2024

Ok! Thank you again!! :)

from ofelia.

jamshark70 avatar jamshark70 commented on August 25, 2024

I realize this is closed and nothing will be done, but... here's a use case where it would be helpful.

Pd forum user 60Hz has created some Gem-style abstractions to simplify many basic use cases, for use in workshops where it would be too much to have everyone build up Lua code from scratch.

I was working on extending these for GLSL shader support. To handle image processors, it was necessary to pass imageID symbol messages, to tell the next processor in the chain which module's image variable contains the source to operate on. That was pretty straightforward.

Next problem: shaders with two image inputs.

If you can pass arbitrary lists into the additional inputs, then it would be easy to have a left imageID message for the main image source and a right imageID for the auxiliary source.

Because this is not allowed, it's necessary to have for instance imageID and imageID2, both going into the left inlet, and then every image-handling abstraction needs to include (replicate) logic to output imageID, imageID2, imageID3 as needed. Which is possible, but a lot messier.

Anyway, FWIW. I do realize that the intended design currently is to have one massive [ofelia] object that does pretty much all the drawing in one place, but... the learning curve for this is pretty nasty (the preamble just to open a window makes my head spin). Getting started really needs to be easier if it's to gain any traction in the Pd community, which is where abstractions such as 60Hz's come in.

from ofelia.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.