voice¶
-
class
roqba.voice.
Voice
(id, composer, note_range=[24, 48], register=None, behaviour=None, note=None, real_note=None, note_length_grouping=[1, 1, 3, 3])[source]¶ -
-
apply_overhanging_notes
()[source]¶ applies overhanging notes of a registered melody
to the next <on_off_pattern>
-
exceeds
(note)[source]¶ returns min/max limits and a bounce back direction coefficient
if incoming int exceeds limits, returns False otherwise
-
manage_melody_note
(meter_pos)[source]¶ retrieves next note-delta and length belonging to the melody.
sets the following ‘bits’ of the off-on-pattern according to the specified length of the note. returns the pitch-related move (delta) and sets eventual modifier attribute on the composer
-
reload_register
()[source]¶ reloads the current register and reapplies its settings
- in voice
- in the controller
-
reset_slave
(change_master=False)[source]¶ resets values for slave voices.
- if <change_master> is an int:
- it is used as the id new master-voice
- if <change_master> is ‘True’:
- a new random master is chosen,
-
set_note_length_groupings
(mapping={'BASS': 'HEAVY_GROUPINGS', 'FLAT_MID': 'FAST_GROUPINGS', 'MID': 'DEFAULT_GROUPINGS', 'HIGH': 'TERNARY_GROUPINGS', 'LOW_MID': 'DEFAULT_GROUPINGS', 'ROCK_BASS': 'FAST_GROUPINGS'})[source]¶ sets the note_length_groupings attribute on self
by reading the current value from the composer
-