Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

馃悶 IterProp properties doesn't work with ListEventBase #48

Closed
demberto opened this issue Sep 18, 2022 · 0 comments
Closed

馃悶 IterProp properties doesn't work with ListEventBase #48

demberto opened this issue Sep 18, 2022 · 0 comments
Assignees
Labels
bug Something isn't working descriptors models High-level API
Milestone

Comments

@demberto
Copy link
Owner

IterProp is for properties having multiple events

tracking = IterProp(ChannelID.Tracking, Tracking)

PyFLP/pyflp/channel.py

Lines 952 to 953 in f2bd7a0

envelopes = IterProp(ChannelID.EnvelopeLFO, Envelope)
"""One each for Volume, Panning, Mod X, Mod Y and Pitch :class:`Envelope`."""

PyFLP/pyflp/channel.py

Lines 965 to 966 in f2bd7a0

lfos = IterProp(ChannelID.EnvelopeLFO, LFO)
"""One each for Volume, Panning, Mod X, Mod Y and Pitch :class:`LFO`."""

Each of these have a separate backing event. For instance, every Envelope or LFO has a separate ChannelID.EnvelopeLFO event.

The problem

controllers = IterProp(PatternID.Controllers, Controller)

notes = IterProp(PatternID.Notes, Note)

Each of these are a collection of items obtained from a single event. Their associated Structs derive from ListEventBase

@demberto demberto added the bug Something isn't working label Sep 18, 2022
@demberto demberto added this to the PyFLP 2.0.0 milestone Sep 18, 2022
@demberto demberto self-assigned this Sep 18, 2022
@demberto demberto pinned this issue Sep 18, 2022
@demberto demberto unpinned this issue Sep 18, 2022
@demberto demberto added models High-level API descriptors labels Oct 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working descriptors models High-level API
Projects
None yet
Development

No branches or pull requests

1 participant