Old 11-13-2019, 06:06 AM   #1
danerius
Human being with feelings
 
Join Date: Oct 2018
Posts: 59
Default Creating a Library

As I am a total noob to coding? How do you create the libraries for jsfx plugs? I tried googling but nothing jsfx specific came up. Is there a reference or description somewhere on this forum?

Thanks + best regards /danerius
danerius is offline   Reply With Quote
Old 11-13-2019, 06:53 AM   #2
DarkStar
Human being with feelings
 
DarkStar's Avatar
 
Join Date: May 2006
Location: Surrey, UK
Posts: 18,092
Default

The library file has the extension .jsfx-inc. I tend to define an @init section in that file and add memory definitions (constants, variables, arrays etc) and functions in it. It is very similar to the main JS FX.

The library file is included into the main JS FX using a statement, before any of the sections, such as:
import GUI_controls_DS.jsfx-inc

Oh, and one library file can import another.

----------------------
PS: You would be better off in the specific JS FX forum:
https://forum.cockos.com/forumdisplay.php?f=3
__________________
DarkStar ... interesting, if true. . . . Inspired by ...
DarkStar is online now   Reply With Quote
Old 11-13-2019, 09:12 AM   #3
danerius
Human being with feelings
 
Join Date: Oct 2018
Posts: 59
Default

Quote:
Originally Posted by DarkStar View Post
The library file has the extension .jsfx-inc. I tend to define an @init section in that file and add memory definitions (constants, variables, arrays etc) and functions in it. It is very similar to the main JS FX.

The library file is included into the main JS FX using a statement, before any of the sections, such as:
import GUI_controls_DS.jsfx-inc

Oh, and one library file can import another.

----------------------
PS: You would be better off in the specific JS FX forum:
https://forum.cockos.com/forumdisplay.php?f=3
Hi and thanks. I'll tryand see if I can make a library file

And any forum moderator reading this is more than welcome to move this thread

/danerius
danerius is offline   Reply With Quote
Old 11-15-2019, 08:45 AM   #4
-_~
Human being with feelings
 
Join Date: Oct 2019
Posts: 25
Default

In answer to your question about where the programming reference is, it's here:

https://www.reaper.fm/sdk/js/js.php

Feel free to ask any questions at all in the JSFX forum though, nobody actually read the docs (and remembers all of them).
-_~ is online now   Reply With Quote
Old 11-16-2019, 02:39 AM   #5
danerius
Human being with feelings
 
Join Date: Oct 2018
Posts: 59
Default

Quote:
Originally Posted by -_~ View Post
In answer to your question about where the programming reference is, it's here:

https://www.reaper.fm/sdk/js/js.php

Feel free to ask any questions at all in the JSFX forum though, nobody actually read the docs (and remembers all of them).
Thanks. Im not fluent enough in C to work from the Reaper Reference

/Regards
danerius is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 07:40 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2019, vBulletin Solutions Inc.