PyTuning icon indicating copy to clipboard operation
PyTuning copied to clipboard

AttributeError: 'int' object has no attribute 'evalf'

Open unhandyandy opened this issue 8 months ago • 0 comments

I just installed pytuning on Ubuntu 24.10, using a venv. I'm getting an odd error when I try to generate a fluidsynth tuning table.

>>> pytuning.tuning_tables.create_fluidsynth_tuning(scale,prog=range(128))
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/dabrowsa/mygit/PyTuning/.venv/pytuning/lib/python3.12/site-packages/pytuning/tuning_tables/tuning_tables.py", line 185, in create_fluidsynth_tuning
    freq = note_number_to_freq(
           ^^^^^^^^^^^^^^^^^^^^
  File "/home/dabrowsa/mygit/PyTuning/.venv/pytuning/lib/python3.12/site-packages/pytuning/utilities.py", line 255, in note_number_to_freq
    base = scale[-1].evalf()
           ^^^^^^^^^^^^^^^
AttributeError: 'int' object has no attribute 'evalf'
>>> 

unhandyandy avatar May 19 '25 22:05 unhandyandy