Revision 10:966247e41556

View differences:

Vamp.ipynb
25 25
   "metadata": {
26 26
    "collapsed": false
27 27
   },
28
   "outputs": [
29
    {
30
     "name": "stderr",
31
     "output_type": "stream",
32
     "text": [
33
      "/usr/lib/python2.7/site-packages/librosa/core/audio.py:33: UserWarning: Could not import scikits.samplerate. Falling back to scipy.signal\n",
34
      "  warnings.warn('Could not import scikits.samplerate. '\n"
35
     ]
36
    }
37
   ],
28
   "outputs": [],
38 29
   "source": [
39 30
    "import vamp\n",
40 31
    "import librosa\n",
......
974 965
   "metadata": {},
975 966
   "source": [
976 967
    "### Processing many files\n",
977
    "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",
968
    "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",
978 969
    "\n",
979
    "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."
970
    "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."
980 971
   ]
981 972
  },
982 973
  {
Vamp.v3.ipynb
54 54
     ],
55 55
     "language": "python",
56 56
     "metadata": {},
57
     "outputs": [
58
      {
59
       "output_type": "stream",
60
       "stream": "stderr",
61
       "text": [
62
        "/usr/lib/python2.7/site-packages/librosa/core/audio.py:33: UserWarning: Could not import scikits.samplerate. Falling back to scipy.signal\n",
63
        "  warnings.warn('Could not import scikits.samplerate. '\n"
64
       ]
65
      }
66
     ],
57
     "outputs": [],
67 58
     "prompt_number": 1
68 59
    },
69 60
    {
......
976 967
     "metadata": {},
977 968
     "source": [
978 969
      "### Processing many files\n",
979
      "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",
970
      "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",
980 971
      "\n",
981
      "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."
972
      "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."
982 973
     ]
983 974
    },
984 975
    {

Also available in: Unified diff