Thread for stupid questions (Question #3:I crave a looong pulse)


#1

Hey, so, in the line of stupid questions I ask (I should make a general stupid questions thread), is there an object that makes it so it only triggers/reroutes the signal if two buttons are pressed down?

Like, I have two footswitches on my Axo, and they both have latching and momentary functionality, but can I make it so when I push down both at the same time, it'll do something else?


#2

Yeah, use a logic/and object - it's output will go high when both inputs are high


#3

Awesome! Many thanks!


#4

Question #2!

How do I set the minimum and maximum range of a dial simultaneously? I have a physical knob on my Axo hooked up to a parameter in my patch, but the range is just too extreme in both directions. There's like a sweet spot of around 8 'points' smack in the middle of the parameter I'd like to control. 8 out of 64 leaves me with a lot of unusable sounds. I know I can use *c to set the maximum range, but how do I set the minimum range AND the maximum range of a dial at the same time?


#5

Either scale your maximum with "math/*c" and then add your minimum value (from another dial or constant) with a "math/+" object or run your dial through one of the "jv/math/constrain" objects.


#6

I just found the constraint object 5 min ago after using some more elaborate search words! Works like a charm! Cheers!


#7

Question #3

I need to send a long pulse to a table-based object, and I need for it to be as long as the buffer (or at least pretty close), which is 5.46s and 10.9s, and the only suitable object I've found is delayedpulseduration, which is perfect, except it only goes to 3.91s. Is there an object I've missed that will allow me to send an an automated longer timed single pulse? Alternatively, is there a way to add to, multiply or otherwise extend delayedpulseduration's pulse without it breaking the pulse? :no_mouth:


#8

The best solution for that depends a bit on what you are doing. You could connect your trigger to a "logic/flipflop toggle" object and reset it when whatever you're doing is finished. If there's no better way a counter fed by a square LFO might do the trick.