Swayam Sahoo

Tempo

Overview

Tempo is a class to fetch the tempo and tempo changes in a Scopul object. It provides two properties bpm_list and midi_tempo_list which return the tempo information in bpm (beats per minute) and midi tempo format respectively.

Here is an example of how to acess the Tempo class for a Scopul object:

from Scopul import Scopul

scop = Scopul("test.mid")
tempo = scop.tempo_list[0]
print(tempo)

# Sample output
>>> <Tempo.Tempo object at 0x000001B737BBFC10>


Creating a Tempo object

Tempo(self, bpm: int, 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 Tempo

my_note = Tempo(bpm=122, measure=5)


Properties