Posts Tagged ‘Quartz Composer’

Giants of the Hoods Recap

Monday, August 30th, 2010

Last weekend was pretty intense as we had three “performances” with the Giants of the Hoods crew here in Helsinki. Thursday in Kallio, Friday in Kontula and Saturday in Tapiola, Espoo. We had some issues, but in the end it all worked out quite well. Here’s a quick recap of the events.

Kallio 26/8/2010

Kallio - Image by Kirsi Tuura

Image by Kirsi Tuura

We couldn’t do a rehearsal on Wednesday so I was a bit worried about how everything would go down on the first night. Everything had worked fine the week before in Tapiola, so I was still quite comfortable… At least I was until Mr. Murphy once again proved that you should really take his law seriously.

Problem #1

No signal to the projector with a long VGA cable, so I had to move all my gear to a different location in the last minute and setup everything again. That left me no time to properly test the motion tracking and everything else.

Problem #2

All of the dozens of WiFi networks on this particular street corner disturbed our wireless network we had set for sending data and pictures. This increased the delay between the tracking and animation to several seconds instead of the normal tenths of a second.  It took me a while to figure out that this was the problem and of course no ethernet cables anywhere. Fortunately, Severi – our technical producer – somehow got a hold of a cable and we finally got the tracking working quite smoothly in the end.

We still had a problem with the communication between my computer and Markku’s laptop, so we couldn’t really update the character as it was planned. Somehow, we still managed to limp through the night and the last hour was actually quite enjoyable.

Emmi Vainio and Kalle Kuisma shot some documentation video.

Giants of the Hoods, Kallio 26/8/10 from Giants of the Hoods on Vimeo.

Kontula 27/8/2010

Kontula worked out a lot better technically as we had ironed out all the problems in Kallio. The mood was also quite different as we had a lot of children coming to dance and also because of the commitment of the people that took part in the workshop some weeks ago. It was also the “Night of the Arts” in Helsinki that day and I think it was nice that we did this in the suburbs of East Helsinki and not downtown where everything else happened.

Giants event in Kontula from Giants of the Hoods on Vimeo.

Tapiola 28/8/2010

Technically, Tapiola worked the best, but there weren’t that many people around. The cold and windy weather was against us, but we still had fun and it was nice to see some people who had been there the week before also when we did some testing.

No video yet, but i will add it here once it’s online.

Next

We are doing two more shows this week. On Wednesday, we are at the Aalto University Opening after-party in Otaniemi and on Saturday we have the event at the Lasipalatsi square. For more details: http://www.giantsofthehoods.com/

QC Plugins Update

Friday, March 12th, 2010

A quick fix for my OSC plugins. There was a stupid bug that affected changing the IP address. Should actually work now

Månsteri OSC Sender Plugin v. 1.3 changes:
- Fixed a bug in setting the IP Address. The IP should actually change now.

Animata OSC Plugin v. 1.3 changes:
- Fixed a bug in setting the IP Address. The IP should actually change now.

Download: http://mansteri.com/software/

Animata OSC Plugin v. 1.2

Sunday, March 7th, 2010

There is a new version of the Animata OSC plugin available. I’ve had the Z-axis support working for a long time, but I’ve just been too lazy to upload it here. Also added the option to change the IP address and port numbers. Useful when you need to send OSC from QC to a different computer running Animata. You really shouldn’t touch the port, but decided to throw in the option to change it just in case.

Download the plugin here.

Download the example seen on the video.

Version 1.2 Changes
- Added the Z Position port for the Layer patch. That means you can now move layers in Z-axis too. (requires the latest version of Animata 004)
- Added the option to configure the IP address and port number. (Please test this one)

I also updated the VDMX plugins to have the Z Position option.

Please test this and let me know if you run into any problems.

Månsteri QC Plugins Update

Friday, November 20th, 2009

I finally installed Snow Leopard this week on my MBP. I had some critical projects going on and couldn’t afford breaking anything.

So the first thing I had to do was to update my Quartz Composer Plugins to support Snow Leopard. There were some issues because QC 4.0 runs in 64bit and my plugins had only been compiled for 32bit. But now they should work. I still need to sort out a few issues (check your console for details), but everything seemed to be working fine when I did some tests. Let me know if you have any problems.

Download here: http://mansteri.com/software/

Månsteri OSC Sender Plugin for Quartz Composer

Wednesday, July 15th, 2009

I just finished an OSC plugin for Quartz Composer that allows the user to change the IP, port number and address space dynamically through the input ports.

The current version does not support sending QC Structures as multiple values, but I am looking into ways of implementing it. Please let me know, if you come up with a good solution.
Download the plugin and the soure code.

This plugin uses the VVOSC framework developed by mrRay.

Serato Video-SL + Quartz Composer

Monday, July 13th, 2009

I bought the Rane TTM 57SL mixer and Serato Video-SL a couple of weeks ago, because I wanted a good setup for AV mixing and scratching. I’ve had the Ms. Pinky vinyls for a long time. They are very nice, but the software just doesn’t cut it for my purposes.

Don’t get me wrong, I love my pink vinyls and the fact that I can do whatever I want with them using the Max/MSP patches. And the newest version of Maxi-Patch even has OSC output so it works very nicely together with VDMX. But I need something more advanced for the audio side and a rock solid system for doing AV.

I have to tell you, the 57 has now become my favourite mixer. The faders are perfect for turntablism, it feels very solid just like the 56 and the software integration works well. The only gripe I have with it, is that it uses some proprietary HID protocol to communicate with Serato Live. So I can’t use the hardware control with any other software. Hoping for a MIDI firmware update. Oh, and the other thing is that it’s only USB1.1. Haven’t had much problems with it, but I would feel more comfortable if it would be USB 2.0.

I have the M-Audio Torq and for DJ-stuff it would have been enough for me, but there was just no way to easily incorporate video for AV-sets. I was surprised how well the Serato Video-SL works. Just throw your video on the deck like you would do with an .mp3 file and you are good to go. Together with 57SL, it’s a system that “just works.” Very important for me since I’m always busy doing stuff on the turntables and want to keep my hands off the laptop as much as possible.

Now mixing videos with audio is cool by itself, but the biggest selling point for me was the Quartz Composer integration. This feature was just added in the latest Video-SL release so hopefully there will be improvements, but what they got going is pretty cool already.

You can load a .qtz file on a deck that is playing audio by dragging it on the corresponding video channel. Your basic QC files work just like that. The only special thing about it is that the patch time of your composition is being controlled by the the song position of the deck where you .qtz file is loaded. So if your composition has any some sort of animation on it (Interpolation, LFOs etc.) you can just start scratching and the animation will follow. If you don’t want this behavior (I usually don’t), just feed system time into any patch that depends on the patch time.

That’s fine for some basic stuff. But I want more control! Fortunately, Serato has included the ability to control .qtz files with all kinds of data from the Scratch Live software – needle velocity, song info etc. – and you also get some data from the hardware controls of the TTM 57SL mixer. However, this stuff is not really documented anywhere (except for a .pdf I found on the Video-SL Beta forum). So I’m gathering all the info that I know over here.

The way this works is the same way you always interact with Quartz Composer files in an external program. You publish inputs with certain names.

This image is from the .pdf I mentioned earlier. I don’t want to post it here since Serato hasn’t released it publicly and they might have a reason for that. You can find it on the forum if you are registered. http://serato.com/forum/discussion/141782 The .zip also includes a bunch of sample compositions that show how the communication works.

There are 27 parameters that you can use to drive your compositions. And the input name always starts with kSSV_SeratoData. Now I could list all of theme here, but it would just make this already too long post even longer. So I’m doing something better.

I created these clips for myself to be able to easily add the Serato input splitters to my compositions without trying to remember the syntax exactly. And since I’m such a nice guy, I’m sharing them with you.

Download the clips.

Once downloaded, copy the .qtz files to this location:
~/Library/Application Support/Apple/Developer Tools/Quartz Composer/Clips (where /~ is your Home Folder).

The next time you launch Quartz Composer, search for Serato in the Patch Creator and double-click the clip that you want to use.

Connect the output to whatever you want to control. Remember to also publish the input of the Serato clip you have chosen by right clicking and choosing Published Inputs and the input name. Make sure you don’t change the name.

I think I haven’t tested all of them, but I know that there is at least one problem. The Serato Needle Position is not working at all. I’ve reported this to Serato, but haven’t received an answer yet. This has been fixed in Scratch Live 1.9.1. which is in public beta. You can use the song position also if you need position data. The Needle Position is the position from the beginning of your control vinyl.

Here is an example that I made pretty much the first day I got Video-SL running. It was inspired by the Visual Scratch project. The Needle Velocity controls the Y position and the fader controls the visibility of the line. It’s not perfect, but fun to mess with anyway. Sorry about the crappy scratching. I’m a bit rusty, because I didn’t have turntables in Montreal so I couldn’t practice for 9 months.

Music by the Finnish dubstep-superheroes Demonic 1 & Dr. Coil. The song is called Bottomless Pit and it’s from their Treblescience EP.

Download the .qtz file.

If you’ve been reading this blog for the past few days, you might have guessed that I’m working on some Serato + Animata stuff. I should have a video to show later this week. Stay tuned.

QC + Animata: Mr. Cool

Monday, July 13th, 2009

In my previous post, I promised to do something more exciting with the QC and Animata communication. You can’t get much cooler than Mr. Cool!

This is a modified rig of the Mr. Cool character I used for my Product Placement animation. I used Max/MSP when I did the animation, but QC is just much more fun.

Mouth and body movement controlled by the sound. Arms have a small LFO on them and you can trigger some other movements with the arrow keys.

Download the example files. Requires the Animata OSC plugin for QC. You also need a recent build of Animata from the svn. Compile it yourself or download this one that I compiled. Should work on intel machines running Leopard.

Quartz Composer Audio Spectrum + Animata

Sunday, July 12th, 2009

I started messing with my Animata OSC plugin for Quartz Composer and trying out different kinds of data I could feed from QC to Animata. The Audio Input patch is the obvious choice, so might as well get that over with first.

The first test. Just playing various samples and seeing how the communication works. Not very exciting, since I’m not using any images in Animata.

Click here to download the Quartz composition and the Animata file I used in the video above. The only special thing worth noting in the .qtz is that I’m normalizing the bands a little bit and scaling the values. Otherwise the 0-band would always peak out and the others wouldn’t really output anything useful. Requires the Animata OSC plugin for Quartz Composer.

I will probably post something more interesting tomorrow. The point with this test was more to do something I’ve been meaning to do for a long time. That is to figure out exactly what is the frequency range of the different spectrum bands of the Audio Input patch.

My testing method was not the most accurate, but should be fine for this purpose. I just want to have a rough idea of what is going on. They way I measured this was by generating different frequencies with the Max/MSP cycle~ object and then seeing at what frequency the maximum value jumped from one band to the next one. Here are my results. The frequency is in Hz:

  • Band 0: 0 – 580
  • Band 1: 580 – 1000
  • Band 2: 1000 – 1500
  • Band 3: 1500 – 2000
  • Band 4: 2000 – 3200
  • Band 5: 3200 – 4800
  • Band 6: 4800 – 6140
  • Band 7: 6140 – 8230
  • Band 8: 8230 – 10300
  • Band 9: 10300 – 12380
  • Band 10: 12380 – 15110
  • Band 11: 15110 – 17880
  • Band 12: 17880 – 20000

There was no point trying to measure Bands 13-15 since they go over 20kHz and my sound card can’t handle that. Actually, in normal use – normal use for me meaning music visualizations – there’s not much point using the bands above 8, since the amplitude at those frequencies is barely noticeable.

Let me know if you are doing something cool with Quartz Composer and Animata.

Quartz Composer to Animata OSC Plugin

Friday, July 10th, 2009

I stumbled on the VVOSC framework yesterday and started messing around with it. It seemed really simple and I had a Cocoa application that sent OSC to Animata running in no time. So I decided to try to create a plugin for Quartz Composer that would allow me to send Animata compatible OSC messages. This wasn’t previously possible, because the default OSC sender in QC didn’t allow to send messages with mixed data types. The peeps over at vidvox forum have been trying to find a solution for some time now.

After a couple of hours and with some tips on compiling from vade, I had the plugin working!

I was really happy about that, because I really thought that writing plugins for Quartz Composer would be out of my skill range. It turned out to be pretty simple actually.

Download the plugin and the source code.

The available patches are:

  • Animata Layer OSC – Sends messages controlling visibility, opacity, absolute position and relative position of Animata layers.
  • Animata Joint OSC – Sends messages controlling the absolute position of Animata joints
  • Animata Bone OSC – Sends messages controlling the length of Animata bones.

Hopefully with this plugin Animata and QC can go from “not working together at all” to “the easiest way to communicate with Animata”.

  • Obviously Mac only, as it is a Quartz Composer plugin.
  • Requires a recent build of Animata from the source to have all the messages working.

Click here to download Animata revision 47 that I just compiled today. Should work at least on Intel Macs running Leopard

Let me know if something isn’t working or if you have suggestions on how to improve the code.

How to Control Animata With OSC from Max/MSP and Pure Data

Monday, December 15th, 2008

If you haven´t heard of Animata yet, you should head over to http://animata.kibu.hu/index.html and educate yourself. Download the software and go through the tutorials. I also recommend reading through the mailing list, it has tons of useful information.

Controlling Animata with a mouse and doing real-time animations is pretty cool by itself, but Animata really shows its true potential when you control it with OSC. Then you can start doing something like this:

There is a Processing example available from the Animata site that controls Animata with sound input.

HOW DOES IT WORK?

Unfortunately, the Kitchen Budapest guys are busy improving the software and there isn´t really good documentation available about the OSC messages needed to control Animata. I´ll try to go through all of the available messages and give you some examples in Pure Data and Max/MSP

I assume that you know something about OSC, Pure Data and Max/MSP, because I don´t want to write a huge post explaining everything from the beginning. I´m also assuming that you have spent some time learning the basics of Animata.

One more important thing. I´m using revision 35 of Animata compiled from the svn repository. NOTE! YOU WILL NEED TO COMPILE ANIMATA FROM THE SOURCE CODE TO MAKE THE /LAYERPOS MESSAGES WORK. IT IS NOT AVAILABLE IN THE BINARY VERSION ON THE ANIMATA WEBSITE. All the other messages I´m showing here do work with Animata 003 that is available from the site. OK, let’s start.

DOWNLOAD MY EXAMPLES. Contains the Animata Scene + Max and PD patches.

FORMATTING THE OSC MESSAGES

All incoming messages to Animata must be sent through port 7110. The “name” in the message refers to the name of the joint, bone or layer.

Moving a joint, x and y are float values:
/joint name x y

Control the length of a bone, value is a float between 0 and 1:
/anibone name value

Switch on and off a layer, on_off is 0 or 1:
/layervis name on_off

Set the transparency of the layer, value is a float between 0 and 1:
/layeralpha name value

The next two messages require the svn version:

Moving a layer in absolute mode, x and y are the position coordinates as float values:
/layerpos name x y

Moving a layer in relative mode, x and y is the amount of pixels you want the layer to move from it’s current position:
/layerdeltapos name x y

PURE DATA TO ANIMATA

I´m not really comfortable with Pure Data, but I was able to get all of the messages working except /layervis. I believe this is because Animata is very picky and is looking for real boolean values and Pure Data is sending integers when sending 0 or 1. This was just fixed by the Kitchen Budabest guys. The /layervis message works now. I have updated the code so please download the .zip again. You need to compile Animata again from the svn for this to work.

Pure Data to Animata


Pure Data to Animata with OSC from Matti Niinimäki on Vimeo.

There is a little problem, because Animata needs float values in the messages and Pure Data doesn’t have a separate number box for floats, so have to make sure the number you are sending is never an even number. I did this by multiplying the values by 0.999. If someone knows a better way, let me know.

MAX/MSP 5 TO ANIMATA

It´s pretty much the same deal with Max/MSP. The /layervis doesn’t work here either. This was fixed in the svn version (>36). My Max-patch has been updated so please download again.

Max to Animata


Max/MSP to Animata With OSC from Matti Niinimäki on Vimeo.

I didn´t add the /layerdeltapos to the example patches, because it´s really easy to lose your layers somewhere outside the window.

SENDING OSC FROM ANIMATA

There is also an option to send OSC messages from Animata. For this you need the SVN version. It simply works by clicking on the small OSC tick box on the Skeleton tab. The messages are sent through port 7111. The message format is: /joint name x y

Send OSC

QUARTZ COMPOSER

I’ve made a plugin for Quartz Composer that makes it really easy to control Animata from Quartz Composer. Check it out over here.

HOW ABOUT OPEN FRAMEWORKS, PROCESSING ETC.

Basically, any software or programming environment that is able to send OSC messages should be able to communicate with Animata.

Processing works perfectly and you can download the Sound Input example from the Animata website that will get you started. I´ll see if I can find the time to do a similar sample file for Processing also.

I’ve also had luck testing OpenFrameworks. Download the FAT version of OpenFrameworks and modify the oscSenderExample.

WHAT CAN YOU DO WITH THIS?

Whatever you want! Hook up audio input, MIDI controllers, sensors or computer vision to control real-time animations.

Check out my Mickey Mann project for an example on how to control Animata with an Arduino.

Here is the source code download link one more time.