{ "metadata": { "name": "Guitar sound frequency analysis" }, "nbformat": 3, "nbformat_minor": 0, "worksheets": [ { "cells": [ { "cell_type": "heading", "level": 1, "metadata": {}, "source": [ "Playing a sound in the browser" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "First question is: can we play a sound the browser? With the help of this [link](http://nbviewer.ipython.org/urls/raw.github.com/Carreau/posts/master/07-the-sound-of-hydrogen.ipynb), we just might. Let's see." ] }, { "cell_type": "code", "collapsed": false, "input": [ "import scipy.constants as const\n", "import scipy\n", "from scipy.io import wavfile\n", "from IPython.core.display import HTML\n", "from __future__ import division" ], "language": "python", "metadata": {}, "outputs": [], "prompt_number": 1 }, { "cell_type": "code", "collapsed": false, "input": [ "# this is a wrapper that take a filename and publish an html