electro-music.com   Dedicated to experimental electro-acoustic
and electronic music
 
    Front Page  |  Articles  |  Radio
 |  Media  |  Forum  |  Wiki  |  Links  |  Store
Forum with support of Syndicator RSS
 FAQFAQ   CalendarCalendar   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   LinksLinks
 RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in  Chat RoomChat Room 
 Forum index » Clavia Nord Modular » Nord Modular G2 Discussion
Set controls in your patch using javascript
Post new topic   Reply to topic Moderators: Nord Modular Editors
Page 1 of 1 [5 Posts]
View unread posts
View new posts in the last week
Mark the topic unread :: View previous topic :: View next topic
Author Message
ian-s



Joined: Apr 01, 2004
Posts: 2578
Location: Auckland, New Zealand
Audio files: 42
G2 patch files: 611

PostPosted: Sat Feb 15, 2014 9:20 pm    Post subject: Set controls in your patch using javascript
Subject description: Another function for the online app.
Reply with quote  Mark this post and the followings unread

Another part of the "Multi-file to pch2 patch file utility" has been published.

You can now use javascript to set control values in your patch.

Open your textpad in the G2 editor and type (or paste) some javascript code, the code needs to start with //yo to be accepted.

I have attached an example to get you started. If you 'choose' this file, the system will prompt if you want the code executed. If you click ok, the code is executed against the pch2 object and a link is presented to the new pch2.

The sample shows how to set 4 sequencers to 2 cycles of a sine wave.

I don't know how useful this is going to be to non-javascript programmers.


SelfDemo.pch2
 Description:
Demo of self setting part of new online utility.

Download
 Filename:  SelfDemo.pch2
 Filesize:  2.43 KB
 Downloaded:  142 Time(s)

Back to top
View user's profile Send private message
Antimon



Joined: Jan 18, 2005
Posts: 3739
Location: Sweden
Audio files: 277
G2 patch files: 96

PostPosted: Sun Feb 16, 2014 9:38 am    Post subject: Reply with quote  Mark this post and the followings unread

Shocked Not sure I understand this but it sounds awesome! Will try it out when I get the time for sure!
_________________
Antimon's Window
@soundcloud @Flattr home - you can't explain music
Back to top
View user's profile Send private message Visit poster's website
ian-s



Joined: Apr 01, 2004
Posts: 2578
Location: Auckland, New Zealand
Audio files: 42
G2 patch files: 611

PostPosted: Mon Feb 17, 2014 3:27 am    Post subject: Reply with quote  Mark this post and the followings unread

Antimon wrote:
Shocked Not sure I understand this but it sounds awesome! Will try it out when I get the time for sure!


It's a little difficult to explain in the limited space here so I have started a docs section for the utility. The file types list will get hyperlinks as I get around to documenting them.

Here is a direct link to the provisional documentation.

I should look at adding a snippets section for people to share useful bits of code.
Back to top
View user's profile Send private message
Electromagnetic Wave



Joined: Apr 28, 2013
Posts: 91
Location: Kebek
G2 patch files: 13

PostPosted: Mon Feb 17, 2014 4:23 am    Post subject: Reply with quote  Mark this post and the followings unread

It's the ultimate "patch adjuster" tool!
Back to top
View user's profile Send private message
xav



Joined: Mar 21, 2005
Posts: 150
Location: paris
Audio files: 8
G2 patch files: 7

PostPosted: Tue Feb 18, 2014 3:36 pm    Post subject: Reply with quote  Mark this post and the followings unread

I wish I could understand... that seems amazing!
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic Moderators: Nord Modular Editors
Page 1 of 1 [5 Posts]
View unread posts
View new posts in the last week
Mark the topic unread :: View previous topic :: View next topic
 Forum index » Clavia Nord Modular » Nord Modular G2 Discussion
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum
e-m mkii

Please support our site. If you click through and buy from
our affiliate partners, we earn a small commission.


Forum with support of Syndicator RSS
Powered by phpBB © 2001, 2005 phpBB Group
Copyright © 2003 through 2009 by electro-music.com - Conditions Of Use