Archive for the ‘Software’ Category.

Gnuplot-Lua-Terminal

My buddy Peter Hedwig has written a terminal for gnuplot which allows interfacing with Lua. This is interesting for me as in the current configuration it uses Lua to write a TeX source file with PGF/Tikz-instructions which can then be included in LaTeX documents.

“WTF?” you might ask. And you are right in doing so. The usefulness of this becomes clear immediately to people who dislike how their gnuplot plots look when imported as bitmap into a LaTeX document. The fonts aren’t right, lines look wishy-washy, etc. And even if you do get these right, once you change the fonts in your document you have to redo all plots. The gnuplot-lua-terminal solves these issues by using PGF/Tikz. PGF/Tikz is a drawing library for LaTeX. Simply put, your gnuplot plot is translated into a list of LaTeX commands which make sure to use the right fonts, line widths, etc., to achieve a seamless fit into your LaTeX document.

Download it here

MINI-HOWTO:

start gnuplot

set term lua fulldoc
set output “test.tex”
plot (x**2)
plot (x**3)

Then in the terminal run:

pdflatex test.tex

and then use some pdf viewer to look at the result. The default settings of the Lua terminal create a tex file without preamble, etc, so you can include it in your document. With the “fulldoc” option we get a complete LaTeX source including preambel, etc.. Have a look at the included documentation for more info.

Example:

Here you can find an example output.

LaTeX-Preview released

LaTeX-Preview is a small python app to preview the output generated by LaTeX.

screeny of latex-preview

Read more here

OSC support for kontroll

As a final measure on this evening i have added OSC support to kontroll. You can specify a OSC-URL (liblo-style) for each of the axes and a range. Kontroll then sends float values. Here’s its page.

And here’s a screenshot for the eye candy:


kontroll screenshot

LASH support for kontroll

Yet another minor update. Kontroll now speaks to LASH! Grab it from its page

Kontroll update

Another small update to kontroll. Now the controller and channel numbering range from 1-128 and 1-16 as commonly seen in other midi applications and hardware. previously it was 0-127 and 0-15 which was probably confusing to non computer people.