core API¶
Core : Functions useful for all the package.¶
-
class
music22.core.
f0file
(path)[source]¶ A class to manage data files (.txt).
-
class
music22.core.
file
(path)[source]¶ A class to manage files.
Paramètres: path (str) – absolute path of a file. -
path
¶ str
The path of the file.
-
basename
¶ str
The name of the file.
-
dirname
¶ str
The directory path of the file.
-
name
¶ str
The name of the file.
-
extension
¶ str
The extension of the file.
Example
>>> audio = "/Users/anas/Barraq/AUDIO/P0.wav" >>> A = file(audio) >>> print A.path /Users/anas/Barraq/AUDIO/P0.wav >>> print A.basename P0.wav >>> print A.dirname /Users/anas/Barraq/AUDIO >>> print A.name P0 >>> print A.extension wav
-