Thread View: comp.sys.next.programmer
2 messages
2 total messages
Started by Howard Pan
Wed, 12 Aug 1992 15:28
How do you play a scorefile under 2.x?
Author: Howard Pan
Date: Wed, 12 Aug 1992 15:28
Date: Wed, 12 Aug 1992 15:28
26 lines
1333 bytes
1333 bytes
Hi, I'm interested in playing a scorefile in my program. I've tried to use both the Score object in conjunction with the ScorePerformer object and the ScorefilePerformer object by itself; but none worked. I'm not really sure what I did wrong. I did something like this for the first method (and something similar for the second method): score = [[Score alloc] init]; [score readScorefile:"/NextLibrary/Music/Scores/Emma.score"]; sp = [ScorePerformer new]; [sp setScore: score]; [sp activate]; [Conductor startPerformance]; It looks like it's correct, but I must be missing something. If someone can please tell me what it is that I'm missing, I would really appreciate it. Also I would like to know what's the difference between ScorefilePerformer and ScorePerformer. Thanks. -- =Howard Pan= Internet: pan@athena.mit.edu 410 Memorial Dr. Cambridge MA 02139
Re: How do you play a scorefile under 2.x?
Author: Ralph Zazula
Date: Wed, 12 Aug 1992 22:09
Date: Wed, 12 Aug 1992 22:09
33 lines
1525 bytes
1525 bytes
Hi - In article <1992Aug12.152802.17138@news.media.mit.edu> writes: > Hi, > > I'm interested in playing a scorefile in my program. [...] I did something > like this for the first method (and something similar for the second method): > > score = [[Score alloc] init]; > [score readScorefile:"/NextLibrary/Music/Scores/Emma.score"]; > sp = [ScorePerformer new]; > [sp setScore: score]; > [sp activate]; > [Conductor startPerformance]; > You are missing a connection from the ScorePerformer (actually, its PartPerformer's NoteSenders) to some Instrument object (e.g., Midi or a SynthInstrument or two...). You should take a look at the examples: /NextDeveloper/Examples/MusicKit/playscorefile /NextDeveloper/Examples/MusicKit/playscorefilemidi They show how to connect the individual parts in a Score file to SynthInstrument or Midi instances and how to configure the Orchestra and Conductor objects to work together. Ralph --- Ralph Zazula Pinnacle Research, Inc. zazula@pri.com (NeXT Mail) (602)529-1135
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads