Skip to content

🐞 Instrument.plugin fails due to base class type param check #101

@BilliumMoto

Description

@BilliumMoto

Describe the issue

Key line is in pyflp.plugin: 412, where get_args(ptype) may return an empty tuple, resulting in this error:

  File "...\lib\site-packages\pyflp\plugin.py", line 412, in __get__
    if isinstance(ins.events.first(PluginID.Data), get_args(ptype)[0]):
IndexError: tuple index out of range

What version of PyFLP are you using?

2.0.0a5.post

What code caused this issue?

# A project with just one patcher or VST instrument channel
proj = parse(project_file)
channels = proj.channels
channel = list(channels)[0]
print(channel.plugin)

Screenshots, Additional info

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingchannel-instrumentNative and 3rd party plugin channelsplugin-3rdpartyVST 2/3, Waves, AU plugins and Fruity Wrapper

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions