You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/musicalgestures/_audio.md
+15-7Lines changed: 15 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -26,7 +26,7 @@ Class container for audio analysis processes.
26
26
27
27
### Audio().descriptors
28
28
29
-
[[find in source code]](https://github.com/fourMs/MGT-python/blob/master/musicalgestures/_audio.py#L210)
29
+
[[find in source code]](https://github.com/fourMs/MGT-python/blob/master/musicalgestures/_audio.py#L221)
30
30
31
31
```python
32
32
defdescriptors(
@@ -62,7 +62,7 @@ Renders a figure of plots showing spectral/loudness descriptors, including RMS e
62
62
63
63
### Audio().spectrogram
64
64
65
-
[[find in source code]](https://github.com/fourMs/MGT-python/blob/master/musicalgestures/_audio.py#L107)
65
+
[[find in source code]](https://github.com/fourMs/MGT-python/blob/master/musicalgestures/_audio.py#L112)
66
66
67
67
```python
68
68
defspectrogram(
@@ -72,6 +72,7 @@ def spectrogram(
72
72
power=2,
73
73
dpi=300,
74
74
autoshow=True,
75
+
raw=False,
75
76
title=None,
76
77
target_name=None,
77
78
overwrite=False,
@@ -88,6 +89,7 @@ Renders a figure showing the mel-scaled spectrogram of the video/audio file.
88
89
-`power`*float, optional* - The steepness of the curve for the color mapping. Defaults to 2.
89
90
-`dpi`*int, optional* - Image quality of the rendered figure in DPI. Defaults to 300.
90
91
-`autoshow`*bool, optional* - Whether to show the resulting figure automatically. Defaults to True.
92
+
-`raw`*bool, optional* - Whether to show labels and ticks on the plot. Defaults to False.
91
93
-`title`*str, optional* - Optionally add title to the figure. Defaults to None, which uses the file name as a title.
92
94
-`target_name`*str, optional* - The name of the output image. Defaults to None (which assumes that the input filename with the suffix "_spectrogram.png" should be used).
93
95
-`overwrite`*bool, optional* - Whether to allow overwriting existing files or to automatically increment target filenames to avoid overwriting. Defaults to False.
@@ -98,7 +100,7 @@ Renders a figure showing the mel-scaled spectrogram of the video/audio file.
98
100
99
101
### Audio().tempogram
100
102
101
-
[[find in source code]](https://github.com/fourMs/MGT-python/blob/master/musicalgestures/_audio.py#L348)
103
+
[[find in source code]](https://github.com/fourMs/MGT-python/blob/master/musicalgestures/_audio.py#L360)
102
104
103
105
```python
104
106
deftempogram(
@@ -141,6 +143,7 @@ def waveform(
141
143
mono=False,
142
144
dpi=300,
143
145
autoshow=True,
146
+
raw=False,
144
147
title=None,
145
148
target_name=None,
146
149
overwrite=False,
@@ -154,6 +157,7 @@ Renders a figure showing the waveform of the video/audio file.
154
157
-`mono`*bool, optional* - Convert the signal to mono. Defaults to False.
155
158
-`dpi`*int, optional* - Image quality of the rendered figure in DPI. Defaults to 300.
156
159
-`autoshow`*bool, optional* - Whether to show the resulting figure automatically. Defaults to True.
160
+
-`raw`*bool, optional* - Whether to show labels and ticks on the plot. Defaults to False.
157
161
-`title`*str, optional* - Optionally add title to the figure. Defaults to None, which uses the file name as a title. Defaults to None.
158
162
-`target_name`*str, optional* - The name of the output image. Defaults to None (which assumes that the input filename with the suffix "_waveform.png" should be used).
159
163
-`overwrite`*bool, optional* - Whether to allow overwriting existing files or to automatically increment target filenames to avoid overwriting. Defaults to False.
@@ -164,7 +168,7 @@ Renders a figure showing the waveform of the video/audio file.
164
168
165
169
## mg_audio_descriptors
166
170
167
-
[[find in source code]](https://github.com/fourMs/MGT-python/blob/master/musicalgestures/_audio.py#L629)
171
+
[[find in source code]](https://github.com/fourMs/MGT-python/blob/master/musicalgestures/_audio.py#L654)
168
172
169
173
```python
170
174
defmg_audio_descriptors(
@@ -202,7 +206,7 @@ Renders a figure of plots showing spectral/loudness descriptors, including RMS e
202
206
203
207
## mg_audio_spectrogram
204
208
205
-
[[find in source code]](https://github.com/fourMs/MGT-python/blob/master/musicalgestures/_audio.py#L518)
209
+
[[find in source code]](https://github.com/fourMs/MGT-python/blob/master/musicalgestures/_audio.py#L536)
206
210
207
211
```python
208
212
defmg_audio_spectrogram(
@@ -213,6 +217,7 @@ def mg_audio_spectrogram(
213
217
power=2,
214
218
dpi=300,
215
219
autoshow=True,
220
+
raw=False,
216
221
title=None,
217
222
target_name=None,
218
223
overwrite=False,
@@ -230,6 +235,7 @@ Renders a figure showing the mel-scaled spectrogram of the video/audio file.
230
235
-`power`*float, optional* - The steepness of the curve for the color mapping. Defaults to 2.
231
236
-`dpi`*int, optional* - Image quality of the rendered figure in DPI. Defaults to 300.
232
237
-`autoshow`*bool, optional* - Whether to show the resulting figure automatically. Defaults to True.
238
+
-`raw`*bool, optional* - Whether to show labels and ticks on the plot. Defaults to False.
233
239
-`title`*str, optional* - Optionally add title to the figure. Defaults to None, which uses the file name as a title.
234
240
-`target_name`*str, optional* - The name of the output image. Defaults to None (which assumes that the input filename with the suffix "_spectrogram.png" should be used).
235
241
-`overwrite`*bool, optional* - Whether to allow overwriting existing files or to automatically increment target filenames to avoid overwriting. Defaults to False.
@@ -240,7 +246,7 @@ Renders a figure showing the mel-scaled spectrogram of the video/audio file.
240
246
241
247
## mg_audio_tempogram
242
248
243
-
[[find in source code]](https://github.com/fourMs/MGT-python/blob/master/musicalgestures/_audio.py#L773)
249
+
[[find in source code]](https://github.com/fourMs/MGT-python/blob/master/musicalgestures/_audio.py#L798)
244
250
245
251
```python
246
252
defmg_audio_tempogram(
@@ -278,14 +284,15 @@ Renders a figure with a plots of onset strength and tempogram of the video/audio
278
284
279
285
## mg_audio_waveform
280
286
281
-
[[find in source code]](https://github.com/fourMs/MGT-python/blob/master/musicalgestures/_audio.py#L441)
287
+
[[find in source code]](https://github.com/fourMs/MGT-python/blob/master/musicalgestures/_audio.py#L453)
282
288
283
289
```python
284
290
defmg_audio_waveform(
285
291
filename=None,
286
292
mono=False,
287
293
dpi=300,
288
294
autoshow=True,
295
+
raw=False,
289
296
title=None,
290
297
target_name=None,
291
298
overwrite=False,
@@ -300,6 +307,7 @@ Renders a figure showing the waveform of the video/audio file.
300
307
-`mono`*bool, optional* - Convert the signal to mono. Defaults to False.
301
308
-`dpi`*int, optional* - Image quality of the rendered figure in DPI. Defaults to 300.
302
309
-`autoshow`*bool, optional* - Whether to show the resulting figure automatically. Defaults to True.
310
+
-`raw`*bool, optional* - Whether to show labels and ticks on the plot. Defaults to False.
303
311
-`title`*str, optional* - Optionally add title to the figure. Defaults to None, which uses the file name as a title. Defaults to None.
304
312
-`target_name`*str, optional* - The name of the output image. Defaults to None (which assumes that the input filename with the suffix "_waveform.png" should be used).
305
313
-`overwrite`*bool, optional* - Whether to allow overwriting existing files or to automatically increment target filenames to avoid overwriting. Defaults to False.
Copy file name to clipboardExpand all lines: docs/musicalgestures/_blurfaces.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -39,7 +39,7 @@ Credits: `centerface.onnx` (original) and `centerface.py` are based on https://g
39
39
-`mask_scale`*float, optional* - Scale factor for face masks, to make sure that the masks cover the complete face. Defaults to 1.0.
40
40
-`ellipse`*bool, optional* - Mask faces with blurred ellipses. Defaults to True.
41
41
-`draw_scores`*bool, optional* - Draw detection faceness scores onto outputs (a score between 0 and 1 that roughly corresponds to the detector's confidence that something is a face). Defaults to False.
42
-
-`save_data`*bool, optional* - Whether we save the scaled coordinates of the face mask (x1, y1, x2, y2) for each frame to a file. Defaults to True
42
+
-`save_data`*bool, optional* - Whether to save the scaled coordinates of the face mask (time, x1, y1, x2, y2) for each frame to a file. Defaults to True.
43
43
-`data_format`*str, optional* - Specifies format of blur_faces-data. Accepted values are 'csv', 'tsv' and 'txt'. For multiple output formats, use list, eg. ['csv', 'txt']. Defaults to 'csv'.
44
44
-`color`*tuple, optional* - Customized color of the rectangle boxes. Defaults to black (0, 0, 0).
45
45
-`target_name`*str, optional* - Target output name for the directogram. Defaults to None (which assumes that the input filename with the suffix "_blurred" should be used).
0 commit comments