You need to log in to create posts and topics.

NameError: name 'Psum' is not defined


I'm new to Python (as of 2017) and recently discovered FoxDot and holy sh*t I'm in love.

Can anyone explain why I'm getting this error about Psum nor being defined?



>>> b1 >> bass(ch, dur=Psum(3,2))
Traceback (most recent call last):
File "/Users/rrmc/FoxDot/FoxDot/lib/Code/main_lib.py", line 106, in __call__
exec(self._compile(code), self.namespace)
File "FoxDot", line 2, in <module>
NameError: name 'Psum' is not defined

Hi there - Psum has since been renamed to PSum with a capital "S". All pattern functions, such as PSum, start with upper-case P and then the descriptor also with an upper-case first letter.

Thank you!  Sorry for the super-noob question.  Since I posted it I've been digging around the actual code and I realize I could have just searched for the function and discovered the spelling change myself.

BTW I absolutely love FoxDot.  Amazing work!!  I have a million more questions but I'll put a little more effort into figuring them out before posting here!

Thanks for all your hard work!