Category Archives: programming

Swig is broken in Ubuntu 16.04 (xenial)

If you’re building a swig Python module and encounter errors like:

where Foobar is some class that is being wrapped, then you are encountering a swig-3.08 bug.  Unfortunately this is still the official package in Ubuntu 16.04.  You can … Continue reading

Posted in computing, programming | Leave a comment

P5js player widget in pure javascript

Okay, so I got really excited about p5js, checkout their examples page.  But I struggled a little bit to include a sketch on my wordpress blog, the canvas was showing up at the bottom of the website as I discussed … Continue reading

Posted in computing, programming | Leave a comment

Nsound rewrite 2016

The Nsound code base is old, (10 years! I can hardly believe that).  Obviously I’m a much better developer today (:P), and there’s lots of things that need cleaning.  Maintenance is becoming a burden, the build process is complex, it’s … Continue reading

Posted in nsound, programming | Leave a comment

Nsound broken on Ubuntu 16

I’m sad to report that nsound is broken by default on Ubuntu 16 until I get time to fix it.  The main issue is that the default swig package is swig3.0, for some reason this breaks most things in the … Continue reading

Posted in nsound, programming | Leave a comment

Python pith

I just wrote a little tool to help with your Python development called pith.

Checkout the release.

Posted in programming | Leave a comment

Ranking Photos With Python

Photo Ranking With Python What is this? This is a tool that uses the Elo Ranking System written in Python using: Matplotlib Numpy exifread Features: Auto image rotation that the camera recored in the EXIF meta data Persistent state from … Continue reading

Posted in computing, programming | Leave a comment

Listening to Gravity Waves with Nsound!

Gravity Wave Signal Processing With all the excitement about LIGO and gravity waves, I’ve downloaded the raw GW150914 detection data for from here.  The file I downloaded was 32 seconds sampled at 4096 samples per second. Next I reviewed some of … Continue reading

Posted in computing, nsound, programming, science | Leave a comment

Nsound::biquad::FilterBank Work In Progress

I’ve made some good progress on a biquad filter bank on this branch.  I’ve been able to replicate Figure 10 from this reference: That’s a filter bank with 4 individual biquad filters, here’s the C++ code that produced the plot:

The … Continue reading

Posted in nsound, programming | Leave a comment

Nsound + Biquad + JSON

I’ve stared using github to host the nsound source code here.  I’m currently working on porting some of the code in this paper: High-Order Digital Parametric Equalizer Design I’ve ported most of the MATLAB code to Python and have made … Continue reading

Posted in computing, nsound, programming | Tagged , | Leave a comment

SWIG C++ & Python: C++ & Python Object Lifetime

I’m currently struggling with a bug in my open source project and it has to do with temporary object lifetimes.  I believe the core issue is that I have a Python object that holds a pointer to an underlying C++ … Continue reading

Posted in programming | Tagged , , | Comments Off on SWIG C++ & Python: C++ & Python Object Lifetime