Using Tracery in [ js ] in max

    Sep 14 2021 | 3:17 pm
    Hi everyone,
    Has anyone used a patch that loaded the tracery library into the js object, to generate either text or anything else? ( )
    I have been learning how to write generative text in the tracery grammar and want to use it within Max (offline), but I'm out of my depth trying to get it to work.
    downloading the files from github obvs easy, loading tracery.js into the js object fine, but stuck at how to actually then get it to execute a JSON formatted tracery project...
    Thanks for any help at all! H.

    • Sep 20 2021 | 11:48 am
      bump... is anyone able to help? even if it's with a different library that would be a good analogy... thanks, H
    • Sep 20 2021 | 12:04 pm
      I wasn't using Tracery, but what you're asking should be simple.
      You probably use Tracery as part of a web page. Put [jweb] object in your patch to load this page (it my be stored locally). [jweb] is a web browser embeddable inside your patch and capable to exchange messages or even dictionaries with it.
    • Sep 20 2021 | 12:25 pm
      thanks Yaniki, I guess that would work if hosted on a site, but I need this to be offline with the tracery files and whatever .js I need stored in a folder with the patch... if that's possible!
    • Sep 20 2021 | 2:17 pm
      With [jweb] you can also access files saved on your computer (in folder with your patch, for example).
    • Sep 20 2021 | 4:19 pm
      oh I see what you mean.
      OK cool, I'll see how far I get with that start, thanks :) !
    • Sep 20 2021 | 4:29 pm
      If you are interested in some examples related to [jweb] grab zip linked here:
    • Sep 20 2021 | 5:59 pm
      Amazing, thanks Yaniki, P5 was next on my list to try alongside tracery!