<div dir="ltr">Hi Alexandre and All,<div><br></div><div>I am not sure if the "<span style="font-size:12.8px">using store '=' in functions with multiple arguments" bug has been reported or not. However, in Expr 0.5 which was included in Pd 0.47  an expression which would use the store operator '=" in  a function with more than one argument such as the following</span></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">expr atan2($f1, x = $f2)</span></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">expr if ($f1, x = 1, 0)</span></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">would pass the creation process but upon execution would throw a "expr: FUNC_EVAL(766): bad left type 0" error</span></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">This is now fixed.</span></div><div><br></div><div><span style="font-size:12.8px">On a related note, if order to make the selective execution of the if() arguments to work, I had to make a few structural changes in parsing and execution of expressions. If you are using the new test version that Miller has put out, please let me know if you see any bugs that I may have introduced.</span></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">cheers,</span></div><div><span style="font-size:12.8px">Shahrokh</span></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px"><br></span></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Jul 18, 2017 at 11:59 AM, Alexandre Torres Porres <span dir="ltr"><<a href="mailto:porres@gmail.com" target="_blank">porres@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Howdy Shahrokh, Miller and pd-list, the release notes of 0.48 mention this:<div><br></div><div>"<span style="color:rgb(29,33,41);font-family:"San Francisco",-apple-system,system-ui,".SFNSText-Regular",sans-serif;font-size:14px;letter-spacing:-0.24px">The expr family (expr, expr~, fexpr~) got an update from Shahrokh Yadegari. I'm not sure when this first came about, but expr now can access "variable" objects as variables inside expressions. Expressions using "if" skip evaluating the argument that isn't used."</span><br><div class="gmail_extra"><br></div><div class="gmail_extra">well, the expr family can access variable objects since version 0.4 (which I do not know when got into Pd). As from version 0.5 (which made into Pd by 0.47, I think), you could also give it a value by using the new "=" syntax. Like: [expr x = 3] changes the value of a [v x] object.</div><div class="gmail_extra"><br></div><div class="gmail_extra">Now we have version 0.55 up, and I do not know what's new about variables, maybe nothing? So we could change the notes to what's asctually new. Here's a list  Shahrokh sent me though, since I was testing and reporting a few bugs.</div><div class="gmail_extra"><br><div class="gmail_quote">2017-07-14 21:08 GMT-03:00 Shahrokh Yadegari <span dir="ltr"><<a href="mailto:sdy@ucsd.edu" target="_blank">sdy@ucsd.edu</a>></span>:<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div><div style="font-size:12.8px"><p class="m_-1525026620975339018gmail-m_2461834462255163737m_7186420656896526379gmail-m_2250932983679935761gmail-p1"><span class="m_-1525026620975339018gmail-m_2461834462255163737m_7186420656896526379gmail-m_2250932983679935761gmail-s1"><span class="m_-1525026620975339018gmail-m_2461834462255163737m_7186420656896526379gmail-m_2250932983679935761gmail-Apple-converted-space">     </span>- Expr Version 0.55</span></p><p class="m_-1525026620975339018gmail-m_2461834462255163737m_7186420656896526379gmail-m_2250932983679935761gmail-p1"><span class="m_-1525026620975339018gmail-m_2461834462255163737m_7186420656896526379gmail-m_2250932983679935761gmail-s1"><span class="m_-1525026620975339018gmail-m_2461834462255163737m_7186420656896526379gmail-m_2250932983679935761gmail-Apple-converted-space"> </span><span class="m_-1525026620975339018gmail-m_2461834462255163737m_7186420656896526379gmail-m_2250932983679935761gmail-Apple-converted-space">      </span>- The arrays now redraw after a store into one of their members</span></p><p class="m_-1525026620975339018gmail-m_2461834462255163737m_7186420656896526379gmail-m_2250932983679935761gmail-p1"><span class="m_-1525026620975339018gmail-m_2461834462255163737m_7186420656896526379gmail-m_2250932983679935761gmail-s1"><span class="m_-1525026620975339018gmail-m_2461834462255163737m_7186420656896526379gmail-m_2250932983679935761gmail-Apple-converted-space"> </span><span class="m_-1525026620975339018gmail-m_2461834462255163737m_7186420656896526379gmail-m_2250932983679935761gmail-Apple-converted-space">      </span>- The "if()" function is reworked to only evaluate either</span><span class="m_-1525026620975339018gmail-m_2461834462255163737m_7186420656896526379gmail-m_2250932983679935761gmail-Apple-converted-space" style="font-size:12.8px"> </span><span style="font-size:12.8px">the left or the right arg      depending on the truth value of the condition.</span></p><p class="m_-1525026620975339018gmail-m_2461834462255163737m_7186420656896526379gmail-m_2250932983679935761gmail-p1"><span class="m_-1525026620975339018gmail-m_2461834462255163737m_7186420656896526379gmail-m_2250932983679935761gmail-s1">         However, if the condition is a vector,<span class="m_-1525026620975339018gmail-m_2461834462255163737m_7186420656896526379gmail-m_2250932983679935761gmail-Apple-converted-space">  </span></span>both the left and the right are evaluated regardless.</p><p class="m_-1525026620975339018gmail-m_2461834462255163737m_7186420656896526379gmail-m_2250932983679935761gmail-p1"><span class="m_-1525026620975339018gmail-m_2461834462255163737m_7186420656896526379gmail-m_2250932983679935761gmail-s1"><span class="m_-1525026620975339018gmail-m_2461834462255163737m_7186420656896526379gmail-m_2250932983679935761gmail-Apple-converted-space"> </span><span class="m_-1525026620975339018gmail-m_2461834462255163737m_7186420656896526379gmail-m_2250932983679935761gmail-Apple-converted-space">      </span>- The maximum number of inlet and outlets (MAX_VARS) is now set at 100</span></p><p class="m_-1525026620975339018gmail-m_2461834462255163737m_7186420656896526379gmail-m_2250932983679935761gmail-p1"><span class="m_-1525026620975339018gmail-m_2461834462255163737m_7186420656896526379gmail-m_2250932983679935761gmail-s1"><span class="m_-1525026620975339018gmail-m_2461834462255163737m_7186420656896526379gmail-m_2250932983679935761gmail-Apple-converted-space"> </span><span class="m_-1525026620975339018gmail-m_2461834462255163737m_7186420656896526379gmail-m_2250932983679935761gmail-Apple-converted-space">      </span>- The bug of using store "=" in functions with multiple arguments, which caused an error during execution, is fixed.</span></p></div></div></div></blockquote><div>So, Shahrokh, I get all of this but the "<span style="font-size:12.8px">bug of using store "=" in functions with multiple arguments", I don't think I reported that one, would you care to elaborate on it?</span></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">Miller, we seem to still have an issue creating [expr] with atanh() ,asinh() and acosh() on windows - such as in [expr atanh($f1)]. Are you working on it for the final release of Pd 0.48?</span></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">Thanks</span></div></div></div></div></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div dir="ltr" style="font-size:small"><div dir="ltr">Shahrokh Yadegari</div><div dir="ltr">Professor, Music Department<br>University of California, San Diego<br>Director, Sonic Arts R&D and IDEAS<br>Qualcomm Institute</div><div dir="ltr">Email: <a href="mailto:sdy@ucsd.edu" style="color:rgb(17,85,204)" target="_blank">sdy@ucsd.edu</a><br>Web: <a href="http://yadegari.org/" style="color:rgb(17,85,204)" target="_blank">http://yadegari.org</a></div></div></div></div></div></div></div></div></div></div></div></div></div></div>
</div>