#Director Question
12-May-93 00:47:15
Sb: #56456-#Director Question
Fm: Keith Doyle 75300,3406
To: George S. Roland 74030,231
Here's a slightly modified version of your script that may help clarify:
buff=1
setblack
load 1,"tutorial:pictures/drumkid.1"
load 2,"tutorial:pictures/drumkid.2"
module "smus"
smus "loadscore",1,"tutorial:music/bach.smus"
smus "loadinst",1,1,"tutorial:instruments"
smus buf,"findbuff","voicea"
rem 60=mid"C", 1=note is not heard
smus "setsigs",buf,74,1
fade
smus "startscore",1,1,4
dim data[4],4
/top:
smus "waitsig",data
display buff
if data[2]=100: rem signals end of score
pause 35
goto atend
endif
buff=buff+1
if buff=3:buff=1:endif
goto top
/atend:
fade out,4
end
I substituted pictures from the Tutorial disk, so I know this script works, and
you should be able to reproduce the same results.
In this example, I didn't use middle-C because the example score didn't contain
any middle-C's, and I extended the "end of score" signal out a little more.
What you'll notice if you run it as is, is every time a certain note hits,
you'll get a display flip. If you change the soundflag parameter to a 0,
you'll get the exact same display results, but you won't hear the triggering
note's sound.
The idea here, is you can take an existing score, and add notes that are only
to be used as triggers, using a new note that doesn't otherwise appear in the
score. With soundflag set to 0, the note will not make a noise, and will only
cause the "waitsig" command to stop waiting and presumably the display effect
to occur in sync. If you are having other specific problems, see if you can
reproduce them using images and music on the Tutorial disk, so that I can see
exactly what you are seeing.
Keith