Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!seismo!sundc!pitstop!sun!decwrl!pyramid!voder!apple!kateley From: kateley@apple.UUCP (Jim Kateley) Newsgroups: comp.sys.mac.hypercard Subject: Re: SND Resources with a Mac+ and HC Message-ID: <6579@apple.UUCP> Date: Fri, 30-Oct-87 12:26:18 EST Article-I.D.: apple.6579 Posted: Fri Oct 30 12:26:18 1987 Date-Received: Wed, 4-Nov-87 22:33:17 EST References: <404UD069225@NDSUVM1> Reply-To: kateley@apple.UUCP (Jim Kateley) Organization: Apple Computer Inc., Cupertino, USA Lines: 57 In article <404UD069225@NDSUVM1> UD069225@NDSUVM1.BITNET (Eric H. Romo) writes: > >Also since I haven't received a response from a previous post I will re-state >it. How exactly do you call up a snd resource with Hypercard scripts? I ^^^^^^^^^^^^^^^^^^^^^^ You can use the "play" command in HC to play any sound. The Boing sound built into HC is an example of this. The syntax of the play command is: play "voice" [ tempo ] [ "notes" ] For example, 'play "boing"' will play the boing sample. You can also play notes based on a sample by using the optional notes. The notes are specified in the following form: notename accidental octave duration Notename can be a thru g, accidental is # and b specify sharp and flat, octave is a number specifying the pitch of the scale (4 is the "middle c" scale) and duration specifies the relative time value of the note played: w whole note h half note q quarter note e eight note s 16th note t 32th note x 64th note and an optional . or 3 following duration can be used to specify a dotted or triplet not. Now, and example: play "boing" tempo 200 "c4e c dq c e# eh" The complete definition of the play command is in "Hypercard Script Language Guide" available from APDA. Most of this article is from the guide, page 7-11 (working draft 4) > >Thank you in advance for replies on both these inquiries, Eric. >------- >ERIC H. ROMO -- Jim Kateley Applelink: kateley1 UUCP: {sun, voder, nsc, mtxinu, dual}!apple!kateley CSNET: kateley@apple.COM Disclaimer: What I say, think, or smell does not reflect any policy or stray thought by Apple Computer, Inc. Remember: When you smile :-), the world smiles with you, When you frown :-(, the : and - keys think they are getting picked on