VMO_Score.segmentation

Module implementing the segmentation of an audio file using the package VMO.

Classes

Region(min, max)
Section Class representing a section of the segmentation
Segmentation(audio_path) Class representing a segmentation
class VMO_Score.segmentation.Region(min, max)
max

Alias for field number 1

min

Alias for field number 0

class VMO_Score.segmentation.Section[source]

Class representing a section of the segmentation

class VMO_Score.segmentation.Segmentation(audio_path)[source]

Class representing a segmentation

generate(audio_path, sr=44100, hop_length=512)[source]

Segmentation of an audio recording using the Constant Q Transform (CQT)

Parameters:
  • audio_path (str) – A string representing the path of the audio file
  • sr (int) – Sampling rate (default: 44100)
  • hop_length (int) – Number of samples between successive CQT columns
  • (default
oracle

VMO Oracle generated with the segmentation.

Returns:Oracle
Return type:VMO
output_png(filename)[source]

Generate a PNG file of the segmentation

Parameters:filename (str) – A string representing the path of the generated file
save_oracle(filename)[source]

Save the oracle to disk

Parameters:filename (str) – Filename to write the oracle
segmentation

List of sections generated by the segmentation.

Returns:[Section]