Picture: RenderSamplesMBS

Online Documentation   -   Statistics   -   FAQ   -   Plugin Parts (All, Dependencies)   -   Class hierarchy

New in Version 22.2 22.3 22.4 22.5 23.0 23.1 23.2 23.3 23.4 23.5 24.0 24.1

The list of the   topics,   classes,   interfaces,   controls,   modules,   global methods by category,   global methods by name,   screenshots,   licenses   and   examples.

Platforms to show: All Mac Windows Linux Cross-Platform

Back to Picture class.

RenderSamplesMBS(Samples as memoryblock, SampleCount as Integer, Smooth as Integer, Width as Integer, Height as Integer, outlinewidth as Integer, BackColor as color=&c88B5C4, ForeColor as color=&c274C5A, OutLineColor as color=&c203F4E, Bits as Integer = 8, AutoScale as boolean = false) as Picture

Type Topic Plugin Version macOS Windows Linux iOS Targets
global method Graphics & Pictures MBS Picture Plugin 9.7 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Renders audio samples into a picture.

Samples has one byte for each audio value and 2 bytes for each stereo sample.
SampleCount: Number of Samples. = Samples.size/2
Smooth: How smooth the samples should be made.
Width: Width of picture
Height: Height of picture
outlinewidth: The width of the outline (0=no outline)
BackColor: The back color.
ForeColor: the fore color.
OutLineColor: The color for the outline.
Bits: Pass 7 for signed bytes, 8 for unsigned bytes, 15 for signed shorts and 16 for unsigned short values. Pass -32 for Float32 and -64 for Float64.
AutoScale: Whether to scale automatically depending on highest values.

See SoundFileMBS class to get samples cross platform.

Some examples using this global method:

Blog Entries

The items on this page are in the following plugins: MBS Picture Plugin.


💬 Ask a question or report a problem