comparison modules-and-plug-ins/python-module/example.py @ 94:2716b8d1b8ad

Updated vamp plug-in
author Adam Stark <adamstark.uk@gmail.com>
date Sat, 18 Jun 2016 10:47:38 +0100
parents ae3ec9b14092
children edb071c0cd1f
comparison
equal deleted inserted replaced
93:4aa362058011 94:2716b8d1b8ad
3 3
4 # need to import btrack, our beat tracker 4 # need to import btrack, our beat tracker
5 import btrack 5 import btrack
6 6
7 # set the path to an audio file on your machine 7 # set the path to an audio file on your machine
8 audioFilePath = "/Users/adamstark/Documents/Audio/Databases/Hainsworth/audio/001.wav" 8 audioFilePath = "/path/to/your/audioFile.wav"
9 9
10 # read the audio file 10 # read the audio file
11 audioData, fs, enc = wavread(audioFilePath) # extract audio from file 11 audioData, fs, enc = wavread(audioFilePath) # extract audio from file
12 12
13 # convert to mono if need be 13 # convert to mono if need be