mingus.core.meter

Module for dealing with meters.

A meter is represented by a tuple. 4/4 time would look like (4,4), 3/4 like (3,4), etc.


mingus.core.meter.common_time

Attribute of type: tuple (4, 4)


mingus.core.meter.cut_time

Attribute of type: tuple (2, 2)


mingus.core.meter.is_asymmetrical(meter)[source]

Return True if meter is an asymmetrical meter, False otherwise.

Examples:

>>> is_asymmetrical((3,4))
True
>>> is_asymmetrical((4,4))
False

mingus.core.meter.is_compound(meter)[source]

Return True if meter is a compound meter, False otherwise.

Examples:

>>> is_compound((3,4))
True
>>> is_compound((4,4))
False

mingus.core.meter.is_simple(meter)[source]

Return True if meter is a simple meter, False otherwise.

Examples:

>>> is_simple((3,4))
True
>>> is_simple((4,4))
True

mingus.core.meter.is_valid(meter)[source]

Return True if meter is a valid tuple representation of a meter.

Examples for meters are (3,4) for 3/4, (4,4) for 4/4, etc.


mingus.core.meter.valid_beat_duration(duration)[source]

Return True when log2(duration) is an integer.


Back to Index