Recording video from Max on OSX

Really two issues here. One is the fact that jit.qt.grab does not behave well under max 6.1.8 and 6.1.9 running on OSX 10.9.5 (yes yes, I will upgrade to Yosemite soon). The other is which codec to use to record HD video that can be further edited in Final Cut Pro X, Motion or whatever you are using.

To start with the first issue; if you are using the patch from the jit.qt.grab help file, it will report jit.qt.grab: doesn’t understand “write”. The solution: take the output of jit.qt.grab and patch it into a jit.qt.record object:

 

Screen Shot 2014-10-29 at 14.48.08

The other issue is: which codec to choose from the myriad of available codecs if you want to edit your movies further? I have successfully used the one in the above picture, which is apple_intermediate_codec. So simply send your jit.qt.record a write 30. apple_intermediate_codec message (for 30 fps video) and when you’re done, send it a stop message.

Here is the help patcher for jit.qt.grab with an added jit.qt.record. You can try it with your built-in iSight camera or something like that.

----------begin_max5_patcher----------
5352.3oc6c8+iaair+mS9qfv3AjF.+TD+tXt1dnuqA8xC8R50l95cn2gEZs0
ZqDaKGI4rIuC2+62Ljxdk10qr7t1TNKBJ5FaJKoge37MNb3v+0iezfyy9XRw
.xyI+N4QO5e83G8HaSXCOp56OZv73ONZVbg8mMXdRQQ7jjACcWqL4ik11KJy
VttwkwkilltXxY4IiJcObIMLHbHIRSw+gKw+RMAgj+Y08rX07zEyRJsuEVUi
WjsnrH8+OAaixg6w0b1pR3WV9okItG9fA0eLtqZeNzpVSGaowrye6+MUNn1C
eQ7b6yXv2kmFOa.dg+8ieL9mgcDOVjbI7XuAb71zxf2WF..PV93VvEgCPzFi
8er3Bida3BcOwEfJNadbYd5GGL71QI1VPI1gEktMtlKySKSH7v.R7xkyRNKc
QYR97jwowkImMJabxnVvNFWX4oTZGpo5MlpnCKZMJa97jEk2.sxxIqJRHHu0
3OFLIO9bxkSSGMEasf78oHz72BZAw3Q5.ESKDzgDkhFP0ToFfNs5dw2cQ9jy
wlB2zRSDK7lHlHzKhgKySuBG2l3mzDn0pPECTJoLAQTC2nwOeu.jc18o9gg4
GdwqdwO+c+H4Uu9Mu34jOkshTLMa0rwjkI4WjkOmDSt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qO2p5lgMQf0KEdR40vmi0MeL5SrCggiarxN
0rBeUepgM6iYepSFC8mpN5QIUvLXRJoNHo7oaGaDub4GRxKpHKauYv732513
QpgO1UHMbe0NynA3tkc8u2VBLFDmOZZZYxnxU4tcKyGs0BI387ue7+Af2H1T
A
-----------end_max5_patcher-----------

Hyperacusis – 31 day challenge

Unfortunately I have somehow turned myself into someone who suffers from hyperacusis. This has been going on for more than a decade, and last year I was checked by the hospital and indeed diagnosed as someone with hyperacusis. They also said there was little they could do for me.

I totally blame my own way of living for this condition. Either it’s the bad sleeping habits, or the bad eating habits, or the bad exercising habits or the fact that I listen to sound all day. Or (most probably) a combination of these. Whatever it is, it is most probably my own fault. But that’s not important. My 31 day challenge is to see if I can make it better, even a small bit. This is pretty difficult to quantify, but I think I will be able to tell if things have improved, worsened or remained as they were.

On http://www.hyperacusis.net/ we read that there are several known substances that may play and adverse role in hyperacusis (and/or tinitus; those two are very much related). One of these is caffeine. Now I used to be a coffee junk for several decades, but I’ve pretty much switched to decaf and tea a few years ago. However, that still means I have a daily dose of caffeine intake. At mayoclinic.org we read that decaf can have as much as 12 mg of caffeine, while black tea can have as much as 70 mg of caffeine. Even green tea can still contain as much as 45 mg of caffeine.

Another thing that has helped many people suffering from either hyperacusis or tinitus is listening to pink noise. A pink noise generator was of course easily built in max msp. Here’s how my pink noise generator looks:

Screen Shot 2014-09-02 at 10.29.33

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

You can download this pink noise generator as an OSX app for free here. Hyperacusis.net suggests listening to pink noise at a low level.

So here’s my personal challenge: I will drink only fluids that contain absolutely no caffeine for the next 31 days. I will also listen to my pink noise generator as much as possible. Then it is of course impossible to tell which of these two was the most beneficial in alleviating the hyperacusis condition (if at all!), but if I report some form of progress, this might be helpful for others suffering from the same or a similar condition. I will report back after 31 days, that is october 4, 2014. I think there will be some physiological response in my body from total caffeine withdrawal. Today was lost (had some tea and decaf already), so my start date is tomorrow, september 3, 2014.

hz37edit

I sometimes find it quite amazing that people are still using my edit software, hz37edit. It has made it onto several released records, which is quite nice to know. You can still download it here, a free Windows installer. It still works in Windows 8.1.

 

1469565369_4129a58dc0_o

 

If it doesn’t make sense, here’s a track I edited with my own software:


 

 

Phase correlation meter for Ableton Live

I stripped all the bullshit from my earlier correlation meter attempt, so here is a simple audio effect for Ableton Live that displays the phase correlation.

Screen Shot 2014-08-21 at 17.58.57

 

 

 

 

 

 

 

You can adjust the interval (just drag the number), but 200 samples seems to be a great starting point. You can download the effect here for free and dissect it if you have max-for-live. Combine it with a Utility plugin (Ableton Live -> Audio Effects -> Utility) to control your stereo image.

Flanger

Back in the old days I used to have a mono flanger guitar stomp box. Of course I put it on everything, so a lot of disgustingly mangled music was emanating from my teen angst bullshit room those days. Anyways, we skip further three decades and here’s my very basic but useful similar sounding stereo max-for-live flanger. Free to download, use and edit. It uses gen~ technology. It is fully automatable in Ableton Live.

Screen Shot 2014-08-21 at 11.36.23

 

 

 

 

 

 

I made it for this coursera course I’m taking. Here’s a video about it with a pre-version that looked more ugly and didn’t have live.dials yet:

 

Connecting Spectre to Max/msp

Spectre by Audiofile Engineering is one of the best metering options for OSX.

Screen Shot 2014-08-10 at 22.09.22

 

 

 

 

 

 

 

It’s got all kinds of meters (VU, BBC, LU, Nordic, K12, etc.) and look amazing:

Screen Shot 2014-08-10 at 22.10.25

 

 

 

 

 

 

So how do we get max/msp to talk to Spectre? Spectre uses AUNetSend by Apple. On the max side of things, you don’t even need to know where this Audio Unit file is. A vst~ object with AUNetSend as its only parameter works just fine:

Screen Shot 2014-08-10 at 22.12.43

 

 

 

 

The open message will open the Apple supplied dialog of AUNetSend, which you use to connect Spectre with max/msp. If you open it in max/msp, it will tell you it’s listening:

Screen Shot 2014-08-10 at 22.03.46

 

 

 

 

 

 

 

 

Just leave everything at its default. After you’ve started Spectre, go to Preferences – Audio:

Screen Shot 2014-08-10 at 22.03.58

 

 

 

 

 

 

 

 

 

Network should be [v] Enabled. Click on Configure…:

Screen Shot 2014-08-10 at 22.04.04

 

 

 

 

 

 

 

 

 

As you can see, Spectre is “Not Connected”. Select the AUNetSend in the Directory list (if it isn’t already) and click on Connect. Max will probably ask you if all this is allowed. Of course we click Allow:

Screen Shot 2014-08-10 at 22.03.36

 

 

 

 

 

 

Now Spectre and max/msp are connected! Yes!

Screen Shot 2014-08-10 at 22.04.13

 

 

 

 

 

 

 

 

All the audio you send to Spectre (via the vst~ object) will now be displayed by those gorgeous meters you selected.

Screen Shot 2014-08-10 at 22.05.16

 

 

 

 

 

 

 

 

 

 

Here’s the max patch just in case you want to fiddle around with it:

----------begin_max5_patcher----------
920.3ocyX1saaBCFF93jqBD6zrHv.Ax1Q8FnmLsiplhbBtItiXxrcRSaU609
7OXBrBTm1NqToDGrM1u9wu9iO5SiG4ur7Hh468Mua7FM5owiFopRVwnpqG4u
EdbUAjo5leA9.ZJGtzehtwCPJAtE0Yaj8awjBDWcmgUUdaIgyvOptiv3oAm5
6hBLAwVrCxWsASV27lDsVtmaFpnpZ0UweXGRuB78mn+baQIj668qWO1TDCQ3
PNtjHuGyralyETzJtdv.wgBw4EFEIKhDWARl3ABlFTOt3b0xtb4ceMxudjnB
bvQzEHBbYAp4pfAOfxW.4bJd4dN5zuXU.uh3RpVrGUdqoZS8MG9hRx59HeqN
x1TR4V0SCIAczFR.wJJuUnXIkUrRTxf2qJDDVVRJwLTM7aMH6IXNi+flJA51
ed73SEpued7jywLtFhIuzqcrUqsLjfN8VI84sXXAtKzKTyuN40lHmNVCOW+N
pnjLYQbl1dMqaCE3BvP0jcukkp29ZPXPGssUrcHa6qoAS6tcnZ6eVmshEtIr
XiPA2FmK62xE+wsbrBbNhNXDt1FpvdCVMnWIctxdLKUYYBhzQel2sYIaHyhI
FmInKHP7Wcb2RJtY.wv2ARHn6EhvHAN5nZM3uCS98K1+n.PyGEXC+pNFNDES
BzQsizAwyTm+5KDdZreCcU6tuhJ8XedXggJD5qj9hWbmvIwUvoJbDXt7zkWZ
zfrA3D1HEmfKwAhiyIcRmHWac.goVXcBcBd1sAxDFmAeZl6.SRrEfIvIfY0C
qJPWJbYtEwZhm+4xEzi4vUmSZNuchuyhjOjvKIw7cWqiYehahGXhy9.uq940
H9OPj7O91Y14lKmJENQIlvMUo9XQXzjDc.zzA22GJNQib5pj4WtVN6RtnDWI
LWjMye1iDC3DO4rHpsAt77+tPouiMjsHFCtF8pcjxcHx+wCUCh0vLU3k3T0S
mhTAgCy54zjcGlT2pu5EAa+FupoWVeaFwJ2SWYDa0tmWXs.xQLNlTm4zMlSD
M6yFbdNp0aZliYxDyxqeCnWsWcNpIvB0D3D0.rfMgNiM.KXSnyXSpMxA3L3X
sbbCcxrPMogWVxI3hRNxrIbkUN1F7HMOwtQOg1pGGc1JvV8.bhd9Gqw.5IxM
54hJvbjsv48HGc5Fvc6NfnrpwToDQxW2URU+eslntDSzWpxTR7RvGvl9mppA
REYGwEoFsmpSs4XlLwaw7773+ZaUQNN
-----------end_max5_patcher-----------

Easy rectangular cropping in Adobe Photoshop and The GIMP

You need to crop an image in Photoshop or GIMP but you need some precision with the rectangular selection, so you zoom in. This makes it cumbersome to make a select, because you need to drag-hold-scroll until the lower right corner is visible. Crazy! Here’s an easier way. First select a small rectangle upper-left:

Screen Shot 2014-07-31 at 15.27.58

 

 

 

 

 

 

 

 

 

 

 

Just make sure the upper left corner is right. The lower right is random. Now find your way to the lower right of your picture. No need to hold the mouse down. Again make a small rectangular selection where only the lower right is important:

Screen Shot 2014-07-31 at 15.28.27

 

 

 

 

 

 

 

 

 

And you guessed it: the Crop command now crops as if you had selected a larger rectangle! Works in both Photoshop and GIMP:

Screen Shot 2014-07-31 at 15.28.33

 

 

 

 

 

 

 

 

 

 

Screen Shot 2014-07-31 at 15.31.39

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Inserting an image into a PDF and/or converting multiple images to pdf

I needed to insert an image (a photo of a signature) into an existing PDF. There are tons of tools that cost something, crippled 2-page converters or online web services that will make you tear your hair out. So here’s how to do this for free. I must warn that it takes some command line and open source hacking around.

Step 1) Convert the pages in the PDF to separate TIFF files. I did this with the free GIMP program. It runs on just about any operating system, so that shouldn’t be a problem. GIMP gives you several options for importing the PDF pages. Be sure to adjust the resolution and Open pages as images. Unless of course you love layers and know exactly what you’re doing. If you go for a default resolution of 100 dpi, you might lose some quality. Don’t worry if you get gigantic TIFF files. They’ll be compressed back later.

Screen Shot 2014-07-28 at 15.24.09

 

 

 

 

 

 

 

 

 

Step 2) Within GIMP edit the page you want to insert something into. If you can’t work with GIMP, export all the pages to TIFF and edit them in your favorite image editing program. Either way, you should end up with a separate TIFF for every page in your PDF. Exporting to TIFF in GIMP is easy if you know how. File – Export As… and then Select File Type (TIFF Image). Check if your TIFFs are all beautiful. They should have increasing names, like page01.tif, page02.tif, etc.

Screen Shot 2014-07-28 at 15.29.15

 

 

 

 

 

 

 

 

 

 

Step 3) Move all the TIFFs to a single temporary directory which you can access from your command line. Now we can do this in OSX or Linux. I happen to have both on my Macbook Pro. If you don’t have at least one Linux distribution at your disposal, it is time to change this. In this day and age one meddling with computers should at least know some basic Linux. The command we need is convert and it is part of a wonderful open source program called imagemagick. To install imagemagick in OSX I highly recommend homebrew. First we run of course:

osx_prompt$ brew update

 

Then followed by:

osx_prompt$ brew install imagemagick

 

Of course osx_prompt$ is the name of your OSX Terminal prompt.

In Linux (Debian in my case) it is (as a super user):

root@debian:/home/your_name# apt-get install imagemagick

 

3) We now cd to the directory where all the TIFFs are and execute the command:

root@debian:/home/your_name# convert -compress LZW *.tif new.pdf

 

Or you may choose to run this as a normal Terminal, because your Desktop probably is not “root@debian” so you might find that your pdf is now not owned by you. Also in OSX you can now simply run:

osx_prompt$ convert -compress LZW *.tif new.pdf

 

There it is, a beautiful PDF to mail to the eagerly waiting other party! Two things to note:

- We do an LZW compress because else the PDF would be of a monster size. Especially for b&w page scans you can compress a lot using a simple LZW.
- If all your TIFFs end with .tiff, you can say convert -compress LZW *.tiff new.pdf of course.