{"identifier":43407,"topic":"Commands","name":"play","text":"<code>play stop<\/code> <code><pre>play <i>sound<\/i> \nplay <i>sound<\/i> <i>notes<\/i>\nplay <i>sound<\/i> tempo <i>posInteger<\/i>\nplay <i>sound<\/i> tempo <i>posInteger<\/i> <i>notes<\/i>\n<\/pre><\/code> The<code> play <\/code>command plays a sound or a series of notes using a sound through the speaker of the Macintosh (or through the audio jack if it\u2019s in use). <br><br>\n\n <code>Play stop <\/code>stops the current sound immediately; otherwise, the sound plays until it\u2019s done and stops by itself. <br>\n<br>\n<b>Important<\/b>: HyperCard continues to run handlers and perform other actions while a sound plays. Use the command<code> wait until the sound is done <\/code>to stop a handler until the sound is done playing. <br><br>\n\n The text string<code> <i>notes<\/i> <\/code>is an unlimited sequence of words in which each word represents one note. A note has the following NAOD format (Name, Accidental, Octave, and Duration): <br>\n","related":{"31649":"beep","64990":"sound","50819":"wait"},"examples":"play \"boing\"\nplay \"harpsichord\"\n\nplay \"Moo\" -- if you have installed this sound into a stack\n\nplay \"boing\" \"c e f f# g f e d c\"\nplay \"boing\" tempo 150 \"c e f f# g f e d c\"","demo":"","debug":{"9":["play stop\rplay sound"],"10":["Important: HyperCard"]}}