Skip to content

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

@unhandyandy

Description

@unhandyandy

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'
>>> 

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions