KingaJanicka / pushpin-groovebox

WIP Groovebox project using Push 2 as a control surface and interface and Raspberry Pi for hosting
MIT License
0 stars 0 forks source link

Pads not being evaluated for state in sequencer_mode.py #22

Closed KingaJanicka closed 8 months ago

KingaJanicka commented 8 months ago

Function self.is_midi_note_being_played() always returns False as if pads are not being pressed when they are. I'm guessing this is related to async, because it worked before we added the clock/tick

KingaJanicka commented 8 months ago

I think it's an async issue, I've got pads to toggle when the sequencer is not running

KingaJanicka commented 8 months ago

This seems to be a bit more serious than I thought as it seems to stop other functions from being evaluated - I can't stop the sequencer once I have the tick running for example

KingaJanicka commented 8 months ago

I've tracked this bug down to the await asyncio.sleep() line in tick(), sequencer.py - if it's present you can't do anything with the pads until it finishes

KingaJanicka commented 8 months ago

I'm experimenting with isobar and after I've analysed it the past few days I've found a way to have it trigger a funciton - we could use that as a timer, possibly use isobar for sequencing too - could embed the "index" of the sequence into the values were' getting from it I think