downloadmarquee.GIF (2385 bytes)books.JPG (7189 bytes)

SAMPLE CODE: SOUND
All samples are credited to: Bruce Thompson, Apple.


Sound
Entire Section download
sound.zip  87k

sound.sit.hqx   112k


Serenade - 1 serenade.zip  16k

serenade.sit.hqx  24k

Serenade plays short songs with the built-in synthesizers on devices with the Newton 2.1 OS. It will not work on Newton OS 2.0 devices since they do not have the FM synthesizer installed.


Sound Advice (Mac) - 3

sndadvmc.sit.hqx  27k

Shows how to import sounds into NTK and play the sound from NewtonScript.


Sound Advice (Win) - 1

sndadvwi.zip  27k

Shows how to import sounds into WinNTK and play the sound from NewtonScript.


Sound Tricks - 4 sndtrick.zip  20k

sndtrick.sit.hqx  28k

SoundTricks is intended to demonstrate a couple tricks with sound on the Newton, modifying the samplingRate of a sound sample to shift speed and pitch, and using StuffByte and ExtractByte on the actual sound samples to reverse a sound. Demonstrates use of native function to give dramatic speed increases.


SoundStudio - 2 sndstdio.zip  25k

sndstdio.sit.hqx  35k

This sample shows the basics of the Newton 2.1 Sound APIs, including recording.