Skip to content

How to get the notes from a pattern #129

Answered by demberto
curtistornade asked this question in Q&A
Discussion options

You must be logged in to vote

All "model" classes in PyFLP are proxy classes. They are just a better representation of the underlying event data.

You cannot yet add notes, but you can remove or modify existing ones:

import pyflp

project = pyflp.parse("/path/to/flp.flp")
for pattern in project.patterns:
    for note in pattern.notes:
        print(note)
        # You can do whatever modifications you need to here.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@curtistornade
Comment options

Answer selected by curtistornade
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
pattern-note MIDI notes in patterns
2 participants