• ### simple slope I made not working ... why?

hey all,
thanks for all the help ! I am enjoying PD and watching lots of tutorials. I made this simple slope generator that I think should work, but it isn't .... what am I doing wrong. Also, bonus points to help me get it to output a bang EOC. But seriously, I am getting this " \$2 out of range" statement in the PD window and I'm not sure what that means.
jjr
slope2.pd

• Posts 3 | Views 1018
• @WEIRD1 If you want a slope..... a ramp..... there needs to be a time element.
So assuming you want a ramp upwards you need a message giving the value to ramp to and the time to do so..... and the time will need to be based on your [metro] value.
Also, the jump back down needs to happen after that time interval.
Please use trigger [t] where you want to make things happen in the correct order...... it makes the patch much easier to read..!

There is an object [phasor~] that does exactly the same though... !
The [vline~] method broken down (so very messy, but can of course be simplified, and even returned to your method)...... and the [phasor~ equivalent.......
simple.pd

You don't need the [\$1 \$2( after your [pack f f] but you will need a separate [pack f f f] for the jump back to zero (just like in the "print" part of the patch).
"\$2 out of range" means that there was no \$2 value arriving so no value could be given.
If you are using [pack] it can also be that \$1 was the wrong atom type..... so \$2 filled \$1 and then \$2 was missing.
I am not seeing that in this patch though.

I don't know what you want this for, but you might want to smooth the return to zero by giving a little time (3-5ms...?) for that to happen.
David.

• hey ! thanks @whale-av
while the form was down ( at least where I was on the east coast) I came up with this attached patch. Check it out if you have time. I tried to place the trigger object in it but every time I do it seems like it messes up the patch ( I am guessing this is because there is something weird in the way I have it set up). Also, I am still trying to think of a way to toggle the EOC to trigger the start of the attack so that I can cause it to cycle if I choose ( and be able to turn that function on and off with a "button").
thanks much, jjr