Audacity Nyquist Plugin - plugins

I am playing around with Audacity and have been trying to generate tones with harmonics. Audacity does not seem to support it directly, but you can write a plugin to do it. The plugins are written in Nyquist (a variant of lisp) and there a small tutorial here. I do not have any experience with lisp and just want to write something similiar to the "Generate -> Tone" feature in Audacity with a harmonics field. Anyone have a simple example for a generate plug-in that I can use as an example? The plugins that come with Audacity are mostly "processing" types and the few "generate" plugins are not very straightforward.

Try the Buzz Tone example from the Sample Nyquist plugins for Audacity(at Sourceforge). I've never coded one of these, yet this example seems to make sense.
Also see Touch Tones.

Related

Graphical output in Perl

A very simple question but just not some thing I have done before and that I have been playing with on and off for a while now.
The basic outline is that I have been playing with different ways of generating procedural based star scapes with the idea that it can generate displays that contain “constellations” that orbit with in a much large field.
The eventual idea is to hook up a laser projector (or two), but you run these using DACs and Galvos. in the mean time I want to simple output to a standard monitor and while I can do this with C# and Visual Basic .NET, graphical output from Perl is not something I have ever done.
Can any one point me in the right direction of what I should be looking at? I just want to create an X by Y window that I can map the starscape array to.
You can use Gtk, Qt or other toolkit to create GUI for Perl applications. I tried Gtk. The installation was not so smooth on Windows, but when I got it running, it was pretty much easy to use. The Gtk bindings for Perl can be installed from CPAN.

Vector graphics library for Common Lisp

Could someone suggest a good library for vector graphics?
Several libraries support drawing shapes, what I need is a library that can save to a vector format.
edit:
I must admit I didn't do enough googling before posting.
cl-vectors seems to be maintained, advanced and documented.
vecto seems to be maintained, advanced-enough and documented-enough interface for it
Still I am used to cl libraries not being what they seem, so if anyone has some personal experience, please share
Besides CL-SVG, CL-PDF seems to be another option.
EDIT: another recommendation
I've looked further into the subject, since I'm interested in this myself, and found one library that supports both saving to files (PS, PDF, SVG, and PNG) and drawing on the screen (GTK2 and X11): cl-cairo2. It seems really the best choice if you need both and aren't already bound to another windowing library.
I have very positive experience with vecto, but I used it for generating PNG files (various graphs). It's quite easy to use and user-friendly. But, as far as I know, it can't save to any vector format.
If you want to write to some vector format, CL-SVG is, probably, the only reasonable choice, but I didn't try it.

Why is everything that concerns CvSeq in OpenCV is such a mess?

So, I have a project at my job using OpenCV (and it's actually the first project I'm doing with OpenCV) and I have to use stuff like CvSeq to use the SURF algorithm. Since I started to put that in my code, it's a total mess. Apparently, it compiles, but, at least Eclipse, is considering that there's a bunch of errors. All the definitions are messed up.
So, is the problem with Eclipse, or is it that the new header files of OpenCV are just that bad, at least for that part.
I would highly recommend you use the new C++ interface of OpenCV. It will allow you to use vector<KeyPoint> objects, which is far easier to use than CvSeq as I'm sure you've seen. The C++ interface also has far more features than the old C interface.
Here is a good OpenCV sample doing descriptor matching.
Hope that is helpful.

What is a good visualization library for creating state diagrams and animations?

I'd like to post-process log files and extract node data and transitions, and then graph them in a gui of some kind. So, I'd like to programmaticly draw bubble diagrams, maybe with animations showing packets going from node to node.
Ideally, perl or java would be the language of choice, but anything that runs on a linux platform would be fine.
What is the best library for this kind of thing?
Java Solutions
Two possibilities in Java include Prefuse and Visual Library. They both have the ability to display graphs with some animation ability. Prefuse has better graph layouts. Visual Library is more Swing-like if you are used to Swing development.
Adobe Flash
If you are willing to work with Adobe Flash, Flare is probably a little more suited to your task as it has better animation capabilities and has good graph layouts.
Animation Libraries
If your diagrams are fairly simple, you could create your own diagrams and use the Timing Framework or Trident for animation.
Other
Some other possibilities include Processing and JavaFX. Javascript libraries include ProcessingJS and Protovis.
Graphviz will draw you static diagrams. It can't do animations as far as I know.
If you can convert the output into graphviz dot format (graphviz) than you can use idot incremental viewer (iDot_incremental_viewer) which uses prefuse behind the scenes and it's completely free. The only thing you need to do here is to convert the output in simple dot file. Rest will be taken care of incremental viewer.

Where can I find good open source code flow visualization software?

I am working on an academic research regarding some very long functions in the Linux kernel (link, link).
For that research, I would like to use some code flow visualization tool, that would be able to plot a graph in which each vertex is a decision point and each edge is a piece of code which runs in a consequent way.
Do you know of any good, open source project that can visualize C code?
Perhaps a tool like KCacheGrind would be of help. It generates call graphs based on actual calls and cannot pre-generate a call graph without actually running the program, which may not suit your needs, but then it again it may.
History flow's are very neat for changes/diff across multiple versions.
Codeplex has a project, Dependency Visualizer which does support C also.
Gprof2Dot can render oprofile, this would get you dynamic info also.
CodeViz also (static tool) would work.
If your using gcc, gcc-xml has an introspector plugin also todo this.
You appears to want to acquire a flowchart of C source code ("decisions", "code blocks").
Something like this C flowchart?
To do this correctly, esp. for Linux kernal code, I'd expect you to have to preprocess the code first to get rid of macros and conditionals. I would assume that GCC would construct such a graph internally and that you ought to be able to get your hands on that graph.
Doxygen does some amount of 'visualization',
but you need to work on the code a bit for it to be usable.
Another interesting thing to check would be lxr
Linux Cross Referencer is a software toolset for indexing and presenting source code repositories. LXR was initially targeted at the Linux source code, but has proved usable for a wide range of software projects. lxr.linux.no is currently running an experimental fork of the LXR software.
I can recommend Sourcetrail. Can work with a compile_commands.json. Not sure if it's still maintained, though. But it's foss and you can fork it!