Skip to content

Commit

Permalink
add hello
Browse files Browse the repository at this point in the history
  • Loading branch information
Casey Tucker committed Mar 9, 2024
1 parent fe06354 commit f4554bc
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions bridge/bridge.py
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,7 @@ def connect(self, client, port):

log("Control connected")
self.ping()
self.hello()
return True

def ping(self):
Expand All @@ -288,6 +289,20 @@ def ping(self):
self.client.event_output(event, port=self.port)
self.client.drain_output()

def hello(self):
for p in range(80,83):
for i in range(0,8):
event = ControlChangeEvent(channel=i, param=p, value=127)
self.client.event_output(event, port=self.port)
self.client.drain_output()
time.sleep(0.032)

for p in range(80,83):
for i in range(0,8):
self.client.event_output(ControlChangeEvent(channel=i, param=p, value=0))
self.client.drain_output()
time.sleep(0.032)

def listen(self):
event = self.client.event_input(timeout=0.01)
if event:
Expand Down

0 comments on commit f4554bc

Please sign in to comment.