ARLO Nester
Public Member Functions | List of all members
workspace.tools.Meandre.AdaptInterface Class Reference

Public Member Functions

def GetAudioSpectraData (self, mediaFile, startTime, endTime, numTimeFramesPerSecond, numFrequencyBands, dampingRatio, minFrequency, maxFrequency)
 Get Raw Audio Spectra Data for a MediaFile from the ADAPT API. More...
 
def GetAudioPitchTraceData (self, mediaFile, pitchTraceType, startTime, endTime, numTimeFramesPerSecond, numFrequencyBands, dampingRatio, spectraMinFrequency, spectraMaxFrequency, numSamplePoints, minCorrelation, entropyThreshold, pitchTraceStartFreq, pitchTraceEndFreq, minEnergyThreshold, tolerance, inverseFreqWeight, maxPathLengthPerTransition, windowSize, extendRangeFactor)
 Get Audio PitchTrace Data for a MediaFile from the ADAPT API. More...
 
def AdaptCall (self, action, params)
 Make a call to the Java Adapt Service (callMe). More...
 

Member Function Documentation

def workspace.tools.Meandre.AdaptInterface.AdaptCall (   self,
  action,
  params 
)

Make a call to the Java Adapt Service (callMe).

Parameters
actionThe 'action' name of the API we are calling
paramsDictionary of the parameters for the API call.
Returns
None on error, else JSON decoded Object from API call.
def workspace.tools.Meandre.AdaptInterface.GetAudioPitchTraceData (   self,
  mediaFile,
  pitchTraceType,
  startTime,
  endTime,
  numTimeFramesPerSecond,
  numFrequencyBands,
  dampingRatio,
  spectraMinFrequency,
  spectraMaxFrequency,
  numSamplePoints,
  minCorrelation,
  entropyThreshold,
  pitchTraceStartFreq,
  pitchTraceEndFreq,
  minEnergyThreshold,
  tolerance,
  inverseFreqWeight,
  maxPathLengthPerTransition,
  windowSize,
  extendRangeFactor 
)

Get Audio PitchTrace Data for a MediaFile from the ADAPT API.

Parameters
mediaFileMediaFile object from which to compute the Spectra.
pitchTraceTypeOne of "MAX_ENERGY" or "FUNDAMENTAL"
startTime
endTime
numTimeFramesPerSecond
numFrequencyBands
dampingRatio
spectraMinFrequency
spectraMaxFrequencyFUNDAMENTAL SETTINGS
numSamplePoints
minCorrelation
entropyThreshold
pitchTraceStartFreq
pitchTraceEndFreq
minEnergyThreshold
tolerance
inverseFreqWeight
maxPathLengthPerTransition
windowSize
extendRangeFactor
def workspace.tools.Meandre.AdaptInterface.GetAudioSpectraData (   self,
  mediaFile,
  startTime,
  endTime,
  numTimeFramesPerSecond,
  numFrequencyBands,
  dampingRatio,
  minFrequency,
  maxFrequency 
)

Get Raw Audio Spectra Data for a MediaFile from the ADAPT API.

Parameters
mediaFileMediaFile object from which to compute the Spectra.
startTime
endTime
numTimeFramesPerSecond
numFrequencyBands
dampingRatio
minFrequency
maxFrequency
Returns
The 'spectraData' object returned by Adapt

The documentation for this class was generated from the following file: