First time here? Check out the FAQ!
x

Why can't I use vmax: with a pasted Sound?

0 votes
430 views

If I use an STGC with an LFO in its Value field why can't I use vmax: on the output of the LFO like this:

 

 

Thanks for your answer Cristian that would get round this issue. I'm still intrigued about why vmax: or max: don't work with pasted Sounds and are there other CapyTalk messages that work with HotValues but not pasted Sounds? So far every random CapyTalk expression I've tried works with pasted Sounds:

 

 

 

 

 

as well as derivative, ceilling, asRightPan, accumulateIf:, of:....

Is it just an issue with max: and vmax:?

asked Dec 12, 2018 in Capytalk & Smalltalk by alan-jackson (Virtuoso) (15,840 points)
edited Dec 12, 2018 by alan-jackson

2 Answers

+1 vote
 
Best answer

It was an oversight (fixed now, in the upcoming release). For now, you can get around it by swapping the order of the pasted Sound and the argument, so in your example that would be:

!MinValue vmax: [LFO] L

Thanks for finding this!

answered Dec 12, 2018 by ssc (Savant) (128,200 points)
selected Dec 12, 2018 by alan-jackson
Brilliant thanks!
+1 vote

you could do it at Sample Rate with the Maximum prototype, your LFO and a CapyTalkToSound

like this

answered Dec 12, 2018 by cristian-vogel (Master) (8,460 points)
edited Dec 12, 2018 by cristian-vogel
Thanks! I can see how that would work.

I'm still intrigued about what's special with max: or vmax:

...I'll edit my question...
...