This is the parent class for all gui classes of AbstractPlayer subclasses.
Usually the only method you need to implement in your subclass is guiBody
to the standard ObjectGui it adds these visual elements:
server boot controls play button stop button [ ] free button tempo control save button save as #path - post the path # - post the object as a compile string
parent | |
bounds | |
... args |
b |
does synthConsole saveConsole does writeName does guiBody then shrinks the window to fit
parent | |
bounds | |
... args |
write the name of the object as a label. the color of the name label is different if the object has a path (was loaded from disk)
layout |
standard save controls using SaveConsole. you can override this method in subclasses to customise.
layout |
standard play/record/etc. controls using SynthConsole. you can override this method in subclasses to customise.
layout |
returns a formatted string representing the minutes:seconds duration of the player
subclasses can call this to add a display of the duration of the player. it will update itself when the player changes and also when the Tempo (global) changes which affects the calculation of the total duration in seconds.
layout |