Kyma Forum
  Kyma Support
  Encapsulation Problem

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

next newest topic | next oldest topic
Author Topic:   Encapsulation Problem
Phi Curtis
Member
posted 26 March 2008 01:31         Edit/Delete Message   Reply w/Quote

EncapsulationBug.kym

 
Hi,

Another thread about a class I encapsulated has me wondering about a different problem with a different class that I encapsulated.

The attached sound has a stereo filter that I encapsulated (it allows you to choose between All Pass, High Pass and Low Pass filters). The problem with it is that it doesn't work with certain types of inputs. For example, it works with audio files or samples as an input, but not with noise.

Earlier tonight I was working with it, and had a crossfade going into it, with two samples going in to the crossfade. At first when I compiled it, the fader for the crossfade disappeared from the VCS, but I heard sound coming from the samples. Then, after recompiling it a couple of times, I no longer heard the samples. I'm not sure if I can recreate it with the samples sounding and the fader missing. Now I only get no sound when putting a crossfade into it.

I looked at the original example I created it with, but see nothing unusual.

thanks,
Phil

IP: Logged

SSC
Administrator
posted 26 March 2008 12:08         Edit/Delete Message   Reply w/Quote

EncapsulationBugisSmashed.kym

 
This was a curious one, working with all kinds of inputs and silent for noise inputs. Turns out it was the ParameterTransformer. When you substituted a variable for the Type parameter, it extended into the Noise Sound and changed *its* Type parameter as well!

Alternatively, you could use the following in the ParameterTransformer:

code:

snd doNotTransformSubSounds.
snd type isNil ifFalse: [snd type: ?typeR].

to block the transformation from extending any deeper than the ParameterTransformers immediate input. (I've attached an example to save you the trouble of recreating the class. It's called New StereoFilters.)

IP: Logged

Phi Curtis
Member
posted 27 March 2008 00:40         Edit/Delete Message   Reply w/Quote
Great - thanks!

Now I have some other encapsulated classes to fix as well, and replace on the Tweaky.

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