View this PageEdit this PageAttachments to this PageHistory of this PageHomeRecent ChangesSearch the SwikiHelp Guide
Hotspots: Admin Pages | Turn-in Site |
Current Links: Cases Final Project Summer 2007

Spring 04 Midterm 2 Review: Multimedia Programming in Squeak

The test is supposed to cover material discussed since Midterm one. This is a bit more detail than I expected from the multimedia nuts, and bolts lecture. Does anyone have a good answer to this?

Seth Horrigan



Not really sure if this is what they're looking for...

c _ FMSound soundNamed: 'clarinet'.
p _ Pen new up.
p goto: 10@10; down; goto: 50@10.
(AbstractSound noteSequenceOn: c from: #((c4 1.0 500)) ) playAndWaitUntilDone.
p goto: 50@50.
(AbstractSound noteSequenceOn: c from: #((d4 1.0 500)) ) playAndWaitUntilDone.
p goto: 10@50.
(AbstractSound noteSequenceOn: c from: #((e4 1.0 500)) ) playAndWaitUntilDone.
p goto: 10@10.
(AbstractSound noteSequenceOn: c from: #((f4 1.0 500)) ) playAndWaitUntilDone.


Ray Cole

That looks right to me, but I'll be dead on this midterm if they don't give us the sample code. I also have no idea what an octave is.
Andrew Sayman

Link to this Page