Grid¶
Auto-generated documentation for musicalgestures._grid module.
- Mgt-python / Modules / Musicalgestures / Grid
mg_grid¶
def mg_grid(
self,
height=300,
rows=3,
cols=3,
padding=0,
margin=0,
target_name=None,
overwrite=False,
return_array=False,
):
Generates frame strip video preview using ffmpeg.
Arguments¶
heightint, optional - Frame height, width is adjusted automatically to keep the correct aspect ratio. Defaults to 300.rowsint, optional - Number of rows of the grid. Defaults to 3.colsint, optional - Number of columns of the grid. Defaults to 3.paddingint, optional - Padding size between the frames. Defaults to 0.marginint, optional - Margin size for the grid. Defaults to 0.target_name[type], optional - Target output name for the grid image. Defaults to None.overwritebool, optional - Whether to allow overwriting existing files or to automatically increment target filenames to avoid overwriting. Defaults to False.return_arraybool, optional - Whether to return an array of not. If set to False the function writes the grid image to disk. Defaults to False.
Returns¶
MgImage- An MgImage object referring to the internal grid image.