A Sound Project

Lex Spoon lex at cc.gatech.edu
Sat Jan 31 23:19:58 UTC 2004


Hey professor, your intentions sound very well suited to implementation
with Squeak.

Here are some quick pointers that should be useful:

To read sound, use SoundRecorder.

To write one buffer of sound, make an instance of SampledSound and then
tell it to #play.   To stream sound, you will need to do a little more
programming.


If you are ever looking at a class and wondering how to use it, try
doing "class refs" from the yellow-button menu when the class is
selected.  This will show you all the code in the system that mentions
the class by name, and thus often leading you to examples of using the
class.

Under the "new object" desktop menu item, you can look in "multimedia"
to find some interesting classes.  In particular, SoundRecorder and
WaveEditor should be interesting to you.

In Morphic, you can tear things open and see what is happening under the
hood by using the gray halo handle.  To get to it, press the blue mouse
button until you have the correct morph halo-ed, and then click on the
gray circle.  Particularly interesting are "inspect morph" and "browse
morph class".

If you want places to ask questions, this list is very good.  Also,
there is a #squeak IRC channel on irc.freenode.net.


Hope this gets you started!

Lex Spoon



More information about the Squeak-dev mailing list