First time here? Check out the FAQ!
x

Ramp inverted

0 votes
154 views

Hello!


I’d like to pitch down a sample to zero/stop via a keyDown expression. I’m using this expression in a frequency field. The issue is that instead of a ramp I guess I need a saw as a function to get it work right.

default * (1 - (!keyDown ramp))

 

 

 

asked Sep 6 in Capytalk & Smalltalk by martin-stehl (Practitioner) (330 points)

2 Answers

0 votes
I would try the variants:

ramp0

and

ramp00

Each of these has a different "resting" position before/after it is triggered. So one of these variations may be closer to the behavior you expect.

Thanks!
answered Sep 8 by ssc (Savant) (128,000 points)
Many thanks!
Sorry for confusion, but I wanted to use an elegant expression which should include a ramp (or saw), that goes down on a trigger from 1 to zero. Imagine a sample that is scrubbed from a default tempo to get stopped evenly after 1 second . I think I could use an envelope und use the Decay stage, but I thought there was something like an inverted ramp. Greetings Martin
I’d use a FunctionGenerator prototype. Then replace the Gaussian waveform with something like the exponrev.aif (in the “waveforms" folder). Then paste that sound in your the rate field of your DiskPlayer.

You could also try something like this ….
(1 ramp: 2 s) * (-1) + (1)
in the rate field of your DiskPlayer

If you are unfamiliar with the FunctionGenerator, I’d recommend a deep dive. It really helped me when I did. You can even create your own function shapes or edit the existing shapes in the sample editor window. So it gives you more flexibility in creating the shape you need to create the exact audio result your are looking for.
0 votes

I’d use a FunctionGenerator prototype. Then replace the Gaussian waveform with something like the exponrev.aif (in the “waveforms" folder). Then paste that sound in your the rate field of your DiskPlayer.

You could also try something like this ….
(1 ramp: 2 s) * (-1) + (1)
in the rate field of your DiskPlayer

If you are unfamiliar with the FunctionGenerator, I’d recommend a deep dive. It really helped me when I did. You can even create your own function shapes or edit the existing shapes in the sample editor window. So it gives you more flexibility in creating the shape you need to create the exact audio result your are looking for.

answered Sep 17 by mark-phillips (Adept) (1,150 points)
Many thanks! I´m aware of this possibility and will check it out. I just thought it would be nice and elegant to have a corresponding capytalk message like a saw, since a ramp and a triangle are available already.
...