Re: anyone using enyo with webaudio and MIDI (kinda ot/obscure)?

Keep a reference to the result of "new Step({classes:
"enyo-unselectable"}).write();" That will let you get into the Enyo world -
e.g.

var mySteps = new Step({classes: "enyo-unselectable"}).write();

// later on, you want to turn on g_0:
mySteps.$.g_0.setValue( true );

That might not be perfect code, but you get the idea.

On Thu, Sep 20, 2012 at 3:46 PM, Peter Nyboer <pete@lividinstruments.com>wrote:

> This source is a bit of a mess, but I'm able to control the toggles with
> the buttons, but can't figure out how to control the toggles with MIDI....
> http://lividserver.com/enyotest/step.html
> It's clearly a problem of scope. If I could some how turn the MIDI scripts
> into an Enyo "plugin" then I suppose that's the ticket. I played around
> with some of the suggestions here:
>
> https://developer.palm.com/content/resources/develop/using_3rd_party_libraries_in_enyo_apps.html
> but to no avail, which could be a result of my somewhat haphazard
> organization of the source.
> I'll have to put it aside until next week, but hopefully the break will
> provide some space for enlightenment :)
> P
>
> On Sep 20, 2012, at 12:01 PM, Chris Wilson wrote:
>
> > On Thu, Sep 20, 2012 at 11:29 AM, Peter Nyboer <
> pete@lividinstruments.com> wrote:
> > Jquery is pretty good - I did a project with that, and there are
> frameworks for Jquery UI and Mobile. The other good thing about jquery is
> that pretty much ANY question you might have about it is answered on
> stackoverflow.com! But Enyo is built from the start with touch screens
> and mobile in mind. PhoneGap can be easily leveraged so you can access
> cameras, accelerometers, and other on-board devices. Overall, it just has a
> more elegant and concise feel to it. But the dearth of examples puts it at
> a disadvantage for a guy like me who learns from example.
> >
> > Yes, it is missing a lot of examples of how to drive it from controls
> outside the Enyo kinds.  (E.g.: I want this MIDI CC to drive this Enyo
> slider.)
> >
> > (ps - I saw you integrated the CNTRLR into the drum machine! NICE!)
> >
> > :)  It was quite easy, actually - was about 2 hours of coding from start
> to finish.  More to come in the future.
> >
> > -C
>
>

Received on Thursday, 20 September 2012 22:52:02 UTC