Tag: python

How to install sms-tools on Mac OS X

Sound analysis/synthesis tools for music applications


By Music Technology Group at Universitat Pompeu Fabra

(update: So far, the tools are painfully slow under Macports. Ubuntu performance is way faster.)


Screen Shot 2014-11-26 at 10.02.34 PM

These tools are used in:  Audio Signal Processing for Music Applications by Prof Xavier Serra, Prof Julius O Smith, III. Sms-tools was designed to run in Ubuntu Linux. After many failed attempts, it is now running in Mac OS 10.9 using macports. Although the performance is better way better using Ubuntu – on the same Macbook.

I had tried using Anaconda – but ran into problems installing pygame.

Assuming that you already know how to install macports. Then install all the python modules described at the sms-tools github page. The macports versions of the modules are prefixed by py27- , For example:

  • py27-cython
  • py27-game
  • py27-matplotlib
  • py27-ipython

also used: sudo easy_install cython

After installing all of the modules, then clone the sms-tools repository and recompile the Cython functions. You will get a screen full of warnings – but it shouldn’t matter.


Installing pycurl on Mac Os


update: 11/1/2014 installed version 7.19.5 using easy_install

Here’s the website: http://pycurl.sourceforge.net

It worked. Because xCode was installed?

sudo env ARCHFLAGS="-arch x86_64" /usr/bin/easy_install setuptools pycurl==7.19.0

Here are instructions, but really all I needed was the above command


Pycurl examples: http://www.angryobjects.com/2011/10/15/http-with-python-pycurl-by-example/

Local file examples in tkzic/python-api/

There are other Python libs like request, human curl, urllib….