Swayam Sahoo

TimeSignature

Overview

TimeSignature is a class to to fetch time signature info from a Scopul object. It has 4 properties: ratio, count, denominator, numerator, and one method: list().

Here’s an example of how to fetch a TimeSignature object of a Scopul object:

from Scopul import Scopul

scop = Scopul("test.mid")
time_signature = scop.time_sig_list[0]
print(time_signature)

# Sample output
>>> <TimeSignature.TimeSignature object at 0x0000029C5E1A5610>


Creating a TimeSignature object

TimeSignature(self, value: str, measure=None)

You can create your own note class, which you may use to append to the existing MIDI or use for other purposes

Args

To make create a Tempo class:

from Scopul import TimeSignature

my_note = TimeSIgnture(value="4/4", measure=28)


Properties