Using Tracery in [ js ] in max
Hi everyone,
Has anyone used a patch that loaded the tracery library into the js object, to generate either text or anything else? ( www.tracery.io )
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.
bump... is anyone able to help? even if it's with a different library that would be a good analogy... thanks, H
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.
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!
With [jweb] you can also access files saved on your computer (in folder with your patch, for example).
oh I see what you mean.
OK cool, I'll see how far I get with that start, thanks :) !
If you are interested in some examples related to [jweb] grab zip linked here: https://www.paweljanicki.jp/projects_maxandp5js_en.html
Amazing, thanks Yaniki, P5 was next on my list to try alongside tracery!