composers¶
Abstract base class¶
-
class
roqba.composers.abstract_composer.
AbstractComposer
(gateway, settings, behaviour, scale='DIATONIC')[source]¶ -
static
assemble_real_scale
(scale, min=0, max=128, tunings=None)[source]¶ extends the one-octave scale over the specified range.
Tunings should be in (<index>, <delta>) format, e.g. {1: -0.5 2: -1} would create the the start of a greek enharmonic scale for an underlying scale of [1, 1, 1,.....
-
set_binaural_diffs
(val=None, voice=None)[source]¶ “de-tunes” the specified voice by the specified interval (in hertz)
if no values are given, random values (in the configurated range) are set for each voice.
-
static
Amadinda¶
Baroq¶
-
class
roqba.composers.baroq.
Composer
(gateway, settings, behaviour)[source]¶ -
acceptable_harm_for_length
(harm, length)[source]¶ checks if the specified (interval-set) are “harmonic”
-
embellish
(state)[source]¶ checks for embellishment markers of the single voices
- starts a thread to handle the embellishment
-
generate
(state)[source]¶ main generating function, the next polyphonic step is produced here
any of the voices can change.
-
is_base_harmony
(chord)[source]¶ checks if a chord is a the base tonality
(either major or minor) of the current context
-
ornament_handler
(v, duration, note, note_delta, state)[source]¶ this method handles the sending of the ornament notes.
the ornament is chosen randomly if the ornament would be too fast, it returns without action
-
static
scale_walker
(scale, present_note, delta)[source]¶ walks the <scale> <delta> steps starting at <present_note>
-