'panic_control_number', 'mutate_control_number', 'min_listen_ticks_control_number', 'max_listen_ticks_control_number', 'response_ticks_control_number', 'temperature_control_number', 'tempo_control_number', 'loop_control_number', 'generator_select_control_number', 'state_control_number'] # A map from a string generator name to its class. _GENERATOR_MAP = melody_rnn_sequence_generator.get_generator_map() _GENERATOR_MAP.update(drums_rnn_sequence_generator.get_generator_map()) _GENERATOR_MAP.update(performance_sequence_generator.get_generator_map()) _GENERATOR_MAP.update(pianoroll_rnn_nade_sequence_generator.get_generator_map()) _GENERATOR_MAP.update(polyphony_sequence_generator.get_generator_map()) class CCMapper(object): """A class for mapping control change numbers to specific controls. Args: cc_map: A dictionary containing mappings from signal names to control change numbers (or None). This dictionary will be updated by the class. midi_hub_: An initialized MidiHub to receive inputs from. """ def __init__(self, cc_map, midi_hub_): self._cc_map = cc_map self._signals = cc_map.keys()
'or FATAL.') _CONTROL_FLAGS = [ 'clock_control_number', 'end_call_control_number', 'panic_control_number', 'mutate_control_number', 'min_listen_ticks_control_number', 'max_listen_ticks_control_number', 'response_ticks_control_number', 'temperature_control_number', 'tempo_control_number', 'loop_control_number', 'generator_select_control_number', 'state_control_number' ] # A map from a string generator name to its class. _GENERATOR_MAP = melody_rnn_sequence_generator.get_generator_map() _GENERATOR_MAP.update(drums_rnn_sequence_generator.get_generator_map()) _GENERATOR_MAP.update( pianoroll_rnn_nade_sequence_generator.get_generator_map()) _GENERATOR_MAP.update(polyphony_sequence_generator.get_generator_map()) class CCMapper(object): """A class for mapping control change numbers to specific controls. Args: cc_map: A dictionary containing mappings from signal names to control change numbers (or None). This dictionary will be updated by the class. midi_hub_: An initialized MidiHub to receive inputs from. """ def __init__(self, cc_map, midi_hub_): self._cc_map = cc_map self._signals = cc_map.keys() self._midi_hub = midi_hub_
'panic_control_number', 'mutate_control_number', 'min_listen_ticks_control_number', 'max_listen_ticks_control_number', 'response_ticks_control_number', 'temperature_control_number', 'tempo_control_number', 'loop_control_number', 'generator_select_control_number', 'state_control_number'] # A map from a string generator name to its class. _GENERATOR_MAP = melody_rnn_sequence_generator.get_generator_map() _GENERATOR_MAP.update(drums_rnn_sequence_generator.get_generator_map()) _GENERATOR_MAP.update(performance_sequence_generator.get_generator_map()) _GENERATOR_MAP.update(pianoroll_rnn_nade_sequence_generator.get_generator_map()) _GENERATOR_MAP.update(polyphony_sequence_generator.get_generator_map()) class CCMapper(object): """A class for mapping control change numbers to specific controls. Args: cc_map: A dictionary containing mappings from signal names to control change numbers (or None). This dictionary will be updated by the class. midi_hub_: An initialized MidiHub to receive inputs from. """ def __init__(self, cc_map, midi_hub_): self._cc_map = cc_map self._signals = cc_map.keys()