Jitter gen examples.
By Kagami Shota
Patches: http://mirror.boy.jp/?cat=41
Why would you write Jitter code inside a js object?
There are three Jitter javascript tutorials (built in to Max) 45-47
The Max javascript documentation is generally far flung. A helpful reference by Tim Schenk https://reactivemusic.net/?p=17445
Here’s an example to get started with. It downsamples a movie and changes the background color. Something I often dream about.
https://github.com/tkzic/max-projects
Folder: jitter-js
Not as easy as it looks.
First, think of a way to get the same results without writing an external. For example, borrow other code, use javascript, gen, Processing, or MSPaint.
Apparently that didn’t work out. Well I can only get you so far.
Assuming that you have already done the following
Learn how to write non-Jitter externals:
Currently the Jitter examples in the SDK are in the folders: examples/matrix and examples/gl. We’ll pretend we didn’t see GL.
Here’s a sensible approach on Mac OS.
In jit.clip.c, find the functions starting with
void jit_clip_vector_char(long n, t_jit_clip_vecdata *vecdata, t_jit_op_info *in, t_jit_op_info *out)
These are functions that processing the matrix vectors for char, long, and float matrixes respectively. We’ll work with the char function.
Change the code so that the pixel values are inverted as well as clipped by subtracting pixel values from 255.
Change two lines of code, marked here by the comment: // invert
if ((is==1)&&(os==1)) { ++n;--op;--ip; while (--n) { tmp = *++ip; *++op = 255 - tmp>max?max:tmp<min?min:tmp; // invert } } else { while (n--) { tmp = *ip; *op = 255 - tmp>max?max:tmp<min?min:tmp; // invert ip+=is;op+=os; } }
The window on the left is inverted because its getting that way in the object we just hacked.
I didn’t really explain anything. Sometimes going through the motions is a start. If I had to do this for a living I would find the example that is most like a desired result and hack away.
https://github.com/tkzic/max-projects
folder: jitter-dev
files:
Tutorials by Gregory Taylor
gen~ for beginners (not Jitter) https://cycling74.com/wiki/index.php?title=gen~_For_Beginners
Delicious Max Tutorials by dude837
http://otherbirds.com/tutorials/
Pixelface (gen): https://www.youtube.com/watch?v=e49qgv5NuUQ
Experiments in particle generation
download patches: http://www.itaru.org/ilog/2012/11/12/inky-particle/
Party Lights (From Jitter Recipes book 4) https://cycling74.com/2012/03/20/jitter-recipes-book-four/5/
Jitter-examples/gen/jit.gen.particles
From: https://cycling74.com/forums/topic/sharing-is-hairy-brains-gen-particles/
Learn how to write audio objects with this book.
By Eric Lyon
http://www.amazon.com/Designing-Objects-Computer-Digital-Series/dp/0895797151
A Tutorial using Visual Studio Express.
By Benoit Bouchez
updated 11/5/3013
Bidirectional analog/digital conversion of composite, s-video, and firewire/ilink.
By Grass Valley
http://www.grassvalley.com/products/advc110
Using this device on Mac OS X 10.9, analog video input shows up as a system device. It also works as a firewire video output device.
Using Jitter you can get real time input from analog video devices like cameras and VCR’s. Here’s an example using jit.grab (Max help file) to get input from an analog camcorder.
Sending output via firewire to a TV using jit.qt.videoout (Jitter tutorial 22):
This is what it looks like on a TV:
“To encourage the creation of work using new electronic media technologies…”