keyboard package

Submodules

keyboard module

MIDI sequencer function for USB MIDI Keyboard

class GMSoundSetButton(**kwargs)[ソース]

ベースクラス: ToggleButton, EventDispatcher

GMSoundSetButton is placed on GM Sound Set layout.

preset_num

GM Sound Set program(preset) number

Type:

NumericProperty

class GMSoundSetGroupButton(**kwargs)[ソース]

ベースクラス: ToggleButton, EventDispatcher

GMSoundSetGroupButton is placed on the GM Sound Set Gourp layout widget.

presets

int, "End":int}

Type:

DictProperty

Type:

GM Sound Set Gourp program(preset) numbers {"Start"

class KeyboardView(**kwargs)[ソース]

ベースクラス: Screen

KeyboardView places GM Sound Set and GM Sound Set Group layout widget.

add_gmss_buttons()[ソース]

Add GMSoundSetButtons that has not been assigned a program(preset) number.

戻り値の型:

None

add_gmssg_button(name, presets)[ソース]

Add GMSoundSetGroupButton

パラメータ:
  • name (str) -- button text

  • presets (dict) -- GM Sound Set Group program(preset) numbers

戻り値の型:

None

select_gmss(gmss_button)[ソース]

Select program(preset) number assigned to the button.

パラメータ:

gmss_button (GMSoundSetButton) -- selected button

戻り値の型:

None

select_gmssg(gmssg_button)[ソース]

Select GM Sound Set Group assigned to the button.

パラメータ:

gmssg_button (GMSoundSetGroupButton) -- selected button

戻り値の型:

None

unregister()[ソース]

Processing when terminating a View.

戻り値の型:

None

gmss

Layout for GM Sound Set

Type:

ObjectProperty

gmssg

Layout for GM Sound Set Group

Type:

ObjectProperty

property volume: int

volume

Type:

int

mididriver module

Functions for managing MIDI driver for "keyboard".

class MidiSoundModule[ソース]

ベースクラス: object

MidiSoundModule manages MIDI driver for the "keyboard".

preset_name(preset_num)[ソース]

Return the program(preset) name assigned to the program(preset) number.

パラメータ:

preset_num (int) -- program(preset) number

戻り値:

program(preset) name

戻り値の型:

str

programchange(preset_num)[ソース]

change program

パラメータ:

preset_num (int) -- program(preset) number

戻り値の型:

None

sounding()[ソース]

Sound the selected instrument.

戻り値の型:

None

gm_percussion_sound_set: list = []

list of GM Percussion Sound Set

Type:

list

gm_sound_set: list = []

list of GM Sound Set

Type:

list

property volume: int

volume

Type:

int

Module contents

MIDI sequencer function for USB MIDI Keyboard