Kyma Forum
  Kyma Support
  reversing ramp with offset

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

next newest topic | next oldest topic
Author Topic:   reversing ramp with offset
flo
Member
posted 25 October 2004 12:42         Edit/Delete Message   Reply w/Quote

tussenmorf.kym


marimba_carriernylon1_monos256.spc


marimba_carrierwound1_monos256.spc

 
Hi,

a question regarding my sound “MarimbaCues&Waves”, which you can find in the attached sound file: why is it that reversing the FullRamp (in the FunctionGenerator) doesn’t work anymore, after I added an offset to it? There’s probably something wrong with the offset code, but somehow I’m blocked at the moment, can’t find the mistake…
Thanks in advance.
Best,

Florian

IP: Logged

mathis
Member
posted 25 October 2004 14:40         Edit/Delete Message   Reply w/Quote
Your patch managed my Kyma to crash, wow... While asking for the spc files.

Generally I wonder if it is so wise to use constants for what you´re doing. The HotParamter fields only "see" their input every millisecond, so you get steps. Maybe better use Gain for the reversing. The offset thing I still don´t really understand. I´m unfortunatly handicapped through the crashing.

IP: Logged

SSC
Administrator
posted 25 October 2004 19:34         Edit/Delete Message   Reply w/Quote
I am not sure what you want to accomplish, but the Constant called TimeOffset is clipping:

(!TimeIndex + (([Mixer] L + 1) * (2 - !TimeIndex)) - 1)

Mixer's range is -1 to 1, so [Mixer] L + 1 varies from 0 to 2. !TimeIndex varies from 0 to 2, (2 - !TimeIndex) has the same range, so this product varies from 0 to 4. Subtracting 1 gives a range of -1 to 3 and adding !TimeIndex again makes the range (-1->3) when !TimeIndex is zero, (0->2) when !TimeIndex is 1, and (1->1) when !TimeIndex is 2.

The output of the Constant clips to (-1,1) and the TimeIndex parameter of the SumOfSines does the same. This means that when the expression is outside the bounds of (-1,1) the SumOfSines will be synthesizing the same spectrum (either the first or the last spectrum depending on whether you are less than -1 or greater than 1).

If you can say what you would like to accomplish, we could suggest an alternate expression.

p.s. I didn't have any troubles running the Sound here...



IP: Logged

flo
Member
posted 26 October 2004 11:13         Edit/Delete Message   Reply w/Quote
Thanks for the clarification. I copied that code in part from another
sound, but oversaw that the context is slightly different, furthermore
it was a little late and I mixed up all the ranges...this all caused a kind of r.e.m. without sleeping :-)
What I wanted to accomplish is not that difficult: I wanted to be able to go through the spectrum from almost* any single point in the spectrum in normal and reverse direction.
At the moment I'm working on a solution, with a Ramp and a !TimeIndex (offset) dependable !Scale for that Ramp, that probably will work out. I'll finish that (better to do it on my own first) and let you know , then you maybe could show me other alternatives...maybe there is a simpler solution...
Thanks, Mathis, I'll implement your advice and compare.

* backwards from -1 doesn't make any sense of course


IP: Logged

flo
Member
posted 28 October 2004 08:28         Edit/Delete Message   Reply w/Quote

sorgenkind.kym

 
Here is my solution. I first figured that it might be helpful to do this
in several graphical steps (with constants for example), also with respect to troubleshooting, but it turned out to be more confusing somehow. So therefore I worked out all the math on paper first and then
implemented this code into the SOS and the FunctionGenerator. Now I am
able to do what I wanted to do.
Is this still improvable?


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