ffd8/P5LIVE

Question: Import sketch with configurations

staus opened this issue · 0 comments

staus commented

Hey Ted,

First off, thanks for making P5Live. Just fell over it yesterday, while researching how to get 3D into Hydra with P5 and now I see that you've made it possible to get Hydra into P5 in a much more effective way :) Super impressive! Sorry for creating my question as an issue here. Do you have a discord or some other forum you'd prefer discussions to happen?

My question: Is it possible to import a separate sketch into a main sketch? (without hosting it outside P5Live)

I've been working on a setup for algoraves and one thing I wanted was to use my midi controller (MidiFighter) in an elegant way throughout my performance. I figured out how to use midi inside P5Live. It's super nice, but the setup I'm thinking of would look rather dry and overwhelming for an audience as the first thing they see, so I would like to separate that part of the configuration from my performance code. I would like to create a separate file where I configure all the midi signals into meaningful variables or arrays, that I can then import into all of my projects and easily jam with without having to look at it. Basically so my live code doesn't get polluted by basic configurations.

Hope you're having a great weekend