You need to log in to create posts and topics.

TimeVar not working

Hi folks!

I'm relatively new to Python and I'm following step by step some tutorial to learn FoxDot.

I have some problems with all the var instances in general: every time I try to evaluate the code, this message comes out:

>> a = var([1, 2, 3], [4, 2, 2])
... p1 >> pluck(a, dur=[1/2, 1/4, 1/4])
Traceback (most recent call last):
File "FoxDot/lib/Code/main_lib.py", line 110, in __call__
exec(self._compile(code), self.namespace)
File "FoxDot", line 2, in <module>
File "FoxDot/lib/TimeVar.py", line 824, in __call__
return TimeVar(*args, **kwargs)
File "FoxDot/lib/TimeVar.py", line 36, in __init__
TypeError: unbound method __init__() must be called with Repeatable instance as first argument (got TimeVar instance instead)

Now, I'm stuck here and can't get out.

What should I do?

(BTW, if necessary, I run OSX 10.10.5 with the FoxDot's latest version, Supercollider 3.8.0 and Python3)

Uploaded files:

Hi Ardano, sorry about this! This was a bug only found in Python 2.7 which I didn't test properly but you should find it fixed if you update to v0.5.5 by running the following in the command line:

pip install FoxDot --upgrade