Skip to content

Question about sequencer example #93

Open
@dfkettle

Description

@dfkettle

Hi!

This is the first time I've tried using python-rtmidi. I tried to run the sequence example (sequencer.py), but the last three notes didn't play. On a hunch, I added a pause in the 'finally' block and that took care of the problem. Is this expected behaviour or a bug?

I'm running under Python 3.8 and Windows 10.

try:
    seq.start()
    time.sleep(60. / seq.bpm * 4)
    seq.bpm = 150
    time.sleep(60. / seq.bpm * 6)
finally:
    time.sleep(5)    # added pause
    seq.stop()
    midiout.close_port()
    del midiout

Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions