metronome package¶
Submodules¶
metronome module¶
metronome
- class MetronomeView(**kwargs)[ソース]¶
ベースクラス:
Screen
MetronomeView has bps layout and beat layout.
- sound(on)[ソース]¶
Sound metronome start/stop.
- パラメータ:
on (str) -- "down" start, otherwise stop
- 戻り値の型:
None
- status(disable)[ソース]¶
Show and hide the layouts.
- パラメータ:
disable (bool) -- "True" disabled, "False" enabled
- 戻り値の型:
None
- update_beat(obj)[ソース]¶
Update beat.
- パラメータ:
obj (BeatSelectButton) -- Button for beat update
- 戻り値の型:
None
- update_bps(obj)[ソース]¶
Update bps.
- パラメータ:
obj (BpsChangeButton) -- button corresponding to the amount of bps updates
- 戻り値の型:
None
- beat¶
beat
- Type:
ListProperty
- beat_layout¶
layout beat
- Type:
ObjectProperty
- bps¶
bps
- Type:
BoundedNumericProperty
- bps_layout¶
layout bps
- Type:
ObjectProperty
- property volume: int¶
volume
- Type:
int
pattern module¶
Provide implementation for the metronome module.
- class Metronome[ソース]¶
ベースクラス:
object
Metronome beats a rhythm.
- start(bps, beat)[ソース]¶
Start.
- パラメータ:
bps (float) -- bps
beat (list) -- beats and notevalue
- 戻り値の型:
None
- property volume: int¶
volume
- Type:
int
- notevalue: int = 4¶
notevalue
- Type:
int
- rhythm: list[int] = [0]¶
beats
- Type:
list(int)
- schedule_stop: bool = True¶
Flag of continuation
- Type:
bool
Module contents¶
metronome function