MusicKit
0.0.0
|
A MKScorePerformer performs a MKScore object by creating a group of MKPartPerformers, one for each MKPart in the MKScore, and controlling the group's performance. More...
#import <MKScorePerformer.h>
A MKScorePerformer performs a MKScore object by creating a group of MKPartPerformers, one for each MKPart in the MKScore, and controlling the group's performance.
MKScorePerformer itself isn't a MKPerformer but it does define a number of methods, such as activate, pause, and resume, that emulate MKPerformer methods. When a MKScorePerformer receives such a message, it forwards the message to each of its MKPartPerformer objects, which are true MKPerformers.
MKScorePerformer also has a MKPerformer-like status; it can be active, inactive, or paused. The status of a MKScorePerformer is, in general, the same as the status of all its MKPartPerformers. For instance, when you send the activate message to a MKScorePerformer, its status becomes MK_active as does the status of all its MKPartPerformers. However, you can access and control a MKPartPerformer independent of the MKScorePerformer that created it. Thus, an individual MKPartPerformer's status can be different from that of the MKScorePerformer.
A MKScorePerformer's MKScore is set and its MKPartPerformers are created when it receives the setScore: message. If you add MKParts to or remove MKParts from the MKScore after sending the setScore: message, the changes will not be seen by the MKScorePerformer.