(self)
Rebuild tone queues.
Rebuild tone queues.
Rebuild tone queues .
def rebuild(self):
        """Rebuild tone queues."""
        # should we pop one at a time from each voice queue to equalise timings?
        for voice, q in enumerate(self._voice_queue):
            for item, duration in q.items():
                item.params = list(item.params)
                item.params[2] = duration
                self._queues.audio.put(item)
def rebuild ( self ) : # should we pop one at a time from each voice queue to equalise timings? for voice , q in enumerate ( self . _voice_queue ) : for item , duration in q . items ( ) : item . params = list ( item . params ) item . params [ 2 ] = duration self . _queues . audio . put ( item )