Skip to content

getVersion flags

These flags are given to ui.getVersion() to control the version information returned.

VER_Major module-attribute

VER_Major = 0

Return major version number as int.

>>> import ui, midi
>>> ui.getVersion(midi.VER_Major)
20

VER_Minor module-attribute

VER_Minor = 1

Return minor version number as int.

>>> import ui, midi
>>> ui.getVersion(midi.VER_Minor)
8

VER_Release module-attribute

VER_Release = 2

Return release version number as int.

>>> import ui, midi
>>> ui.getVersion(midi.VER_Release)
4

VER_Build module-attribute

VER_Build = 3

Return build number as int.

>>> import ui, midi
>>> ui.getVersion(midi.VER_Build)
2553

VER_VersionAndEdition module-attribute

VER_VersionAndEdition = 4

Return program version and edition as str.

>>> import ui, midi
>>> ui.getVersion(midi.VER_VersionAndEdition)
"Producer Edition v20.8.4 [build 2553]"

VER_FullVersionAndEdition module-attribute

VER_FullVersionAndEdition = 5

Return program version and edition as str.

>>> import ui, midi
>>> ui.getVersion(midi.VER_FullVersionAndEdition)
"Producer Edition v20.8.4 [build 2553] - Signature Bundle - 64Bit"

VER_ArchAndBuild module-attribute

VER_ArchAndBuild = 6

Return operating system and system architecture as str.

>>> import ui, midi
>>> ui.getVersion(midi.VER_ArchAndBuild)
"Windows - 64Bit [BETA]"