Mercurial > hg > dhoxss15
changeset 10:966247e41556
Save again without import warning (+ minor text fixes)
| author | Chris Cannam |
|---|---|
| date | Thu, 16 Jul 2015 16:34:15 +0100 |
| parents | 1171de1838d7 |
| children | 584b2318cae3 |
| files | Vamp.ipynb Vamp.v3.ipynb |
| diffstat | 2 files changed, 6 insertions(+), 24 deletions(-) [+] |
line wrap: on
line diff
--- a/Vamp.ipynb Thu Jul 16 16:25:00 2015 +0100 +++ b/Vamp.ipynb Thu Jul 16 16:34:15 2015 +0100 @@ -25,16 +25,7 @@ "metadata": { "collapsed": false }, - "outputs": [ - { - "name": "stderr", - "output_type": "stream", - "text": [ - "/usr/lib/python2.7/site-packages/librosa/core/audio.py:33: UserWarning: Could not import scikits.samplerate. Falling back to scipy.signal\n", - " warnings.warn('Could not import scikits.samplerate. '\n" - ] - } - ], + "outputs": [], "source": [ "import vamp\n", "import librosa\n", @@ -974,9 +965,9 @@ "metadata": {}, "source": [ "### Processing many files\n", - "We define a function that exports chroma features, with the parameters used above, from an audio file given the filename. Then we can call that for a set of files.\n", + "We define a function that exports chroma features, with the parameters used above, from an audio file given the filename. Then we can call that for a set of files. The body of the function is basically just the same code we already showed, to extract and then save the chroma features.\n", "\n", - "This time we are overriding the `sr` parameter of `librosa.load` to tell it to use the file's own sample rate always (that's what `sr = None` does). We also print out what that rate is, for each file, as well as the resulting step size in audio samples between chroma features." + "This time we are overriding the `sr` parameter of `librosa.load` to tell it to always use the file's own sample rate (that's what `sr = None` does). We're also printing out the filename, its sample rate, and the resulting step size in audio samples between chroma features." ] }, {
--- a/Vamp.v3.ipynb Thu Jul 16 16:25:00 2015 +0100 +++ b/Vamp.v3.ipynb Thu Jul 16 16:34:15 2015 +0100 @@ -54,16 +54,7 @@ ], "language": "python", "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stderr", - "text": [ - "/usr/lib/python2.7/site-packages/librosa/core/audio.py:33: UserWarning: Could not import scikits.samplerate. Falling back to scipy.signal\n", - " warnings.warn('Could not import scikits.samplerate. '\n" - ] - } - ], + "outputs": [], "prompt_number": 1 }, { @@ -976,9 +967,9 @@ "metadata": {}, "source": [ "### Processing many files\n", - "We define a function that exports chroma features, with the parameters used above, from an audio file given the filename. Then we can call that for a set of files.\n", + "We define a function that exports chroma features, with the parameters used above, from an audio file given the filename. Then we can call that for a set of files. The body of the function is basically just the same code we already showed, to extract and then save the chroma features.\n", "\n", - "This time we are overriding the `sr` parameter of `librosa.load` to tell it to use the file's own sample rate always (that's what `sr = None` does). We also print out what that rate is, for each file, as well as the resulting step size in audio samples between chroma features." + "This time we are overriding the `sr` parameter of `librosa.load` to tell it to always use the file's own sample rate (that's what `sr = None` does). We're also printing out the filename, its sample rate, and the resulting step size in audio samples between chroma features." ] }, {
