Kyma Forum
  Kyma Support
  SoundCollectionVariable

Post New Topic  Post A Reply
profile | register | preferences | faq | search

next newest topic | next oldest topic
Author Topic:   SoundCollectionVariable
Larry Simon
Member
posted 07 April 2003 08:14         Edit/Delete Message   Reply w/Quote
Can someone point me to an example Sound that uses a SoundCollectionVariable? I tried constructing an Array of Sounds a couple of ways e. g.

| a |
a := Array new: 2.
a at: 1 put: sound1.
a at: 2 put: sound2.

snd start: 0 s aSoundCollectionVariable: a.

for one, where aSoundCollectionVariable is an input to snd (a Mixer). This example generated a stack trace. What am I doing wrong?

Larry

IP: Logged

SSC
Administrator
posted 07 April 2003 10:00         Edit/Delete Message   Reply w/Quote
Hi Larry--You have everything right except for one obscure detail. Your objects sound1 and sound2 are not the actual sounds but wrappers that hold onto sounds. To access the sounds themselves, send the message "sound" to them. In other words:

| a |
a := Array new: 2.
a at: 1 put: sound1 sound.
a at: 2 put: sound2 sound.

Then your example will work. (a sound is a sound is a sound?)

IP: Logged

All times are CT (US)

next newest topic | next oldest topic

Administrative Options: Close Topic | Archive/Move | Delete Topic
Post New Topic  Post A Reply

Contact Us | Symbolic Sound Home

This forum is provided solely for the support and edification of the customers of Symbolic Sound Corporation.


Ultimate Bulletin Board 5.45c