Friday, May 3, 2013

Vamp Host in XCode

I'm working on a Vamp host, and since getting Vamp to play nicely with XCode 4.6.2 (OS X 10.7.5) wasn't as straight forward as I'd have liked, here are the steps I followed.

Work In Progress!

  1. Get the vamp source code and uncompress it
  2. Go to build/Makefile.osx and remove -arch i386 at line 68
  3. Compile the code by typing make -f build/Makefile.osx 
  4. You should now have two libraries: libvamp-sdk.a & libvamp-hostsdk.a 
  5. Create command line XCode project
  6. Add the two libraries to the project
  7. Also add the header files folders: vamp/, vamp-sdk/ and vamp-hostsdk/ 
  8. Go to the target build settings and change the "C++ Standard Library" from "libc++" to "libstdc++"

UPDATE!

The problem compiling the example code for 32 bits (-arch i386) has to do with the libsndfile I have in my machine. It was compiled only for 64 bits (-arch x86_64), and that's why the -arch i386 flag failed. I've been using homebrew to install my dependencies, but althout libsndfile has a --universal option, libogg and libvorbis don't, and failed to copile for i386. My solution was to compile and install libogg and libvorbis manually for both architectures (see this VERY HELPFUL link) and then I finally installed libsndfile using homebrew (you'll need to use the --ignore-dependencies option to prevent homebre to try to install libogg and libvorbis (note that there might be other dependencies that you might need to install).

Friday, March 29, 2013

Mounting Remote filesystem in OS X

Sublime Text is awesome, but it lacks the capability of directly working on remote files. While there are some plugins to do this (e.g. Sublime SFTP), they don't meet my needs (taste?). So I decided to try mounting a remote filesystem locally and the work treat the remote files as local ones. To do this in OS X you'll need a tool such as Macfusion (and it's dependency, OSXFuse). This post explains how to get them to work in OS X Lion.

Tuesday, March 26, 2013

Sublime Text color schemes

If you happen to use Sublime Text 2 and every once in a while you get tired of your color scheme, then this awesome online editor can become handy!


Saturday, March 16, 2013

BBB: Beck + Bowie + Binaural

Let's face it, the audio specialization could have been much better, but the result is awesome nonetheless.

Friday, February 22, 2013

Python decorators

They can by really helpful! A great explanation on how to create/use them can be found here, with some extra insights and helpful comments.

Thursday, January 24, 2013

Theano + Pylearn2

Theano is an awesome Python library to efficiently handle multi-dimensional arrays. It is aimed to a machine learning research/academic audience. Pylearn2 is a library designed to make machine learning research easy. The latter is built on top of the former.

Being both in active development, it is expected to findo some bumps on the road. The first few bumps appeared during the installation.

Friday, November 30, 2012

Using GNU 'screen'

This is a quick-and-dirty GNU screen cheat-sheet