musicianstructured

musicianstructured

Data:

instrument

_energy

_complexity

_my_tone

_notes

_key

_time

_plans

_changed

_durations

Methods:

compose(measure, window_start, window_duration)

energy

complexity

time

key

_print(measure)

_getStart(val)

_addNote(location, tone)

_addChord(location, chord, chordlist)

_decide()

_write()

Suggested Structure:

_genNotes()

_locations()

_lengths()

_dynamics()

sample _write() method for suggested structure:

def _write(self)

self.plans = {}

self.notes = self.getNotes()

self.locations()

self.lengths()

self.dynamics()

self._changed = False