8000 test_clip_add_many_notes: Test with 384 notes · steeltrack/AbletonOSC@7bed4e9 · GitHub
[go: up one dir, main page]

Skip to content

Commit

Permalink
test_clip_add_many_notes: Test with 384 notes
Browse files Browse the repository at this point in the history
  • Loading branch information
ideoforms committed Nov 19, 2023
1 parent 3611d09 commit 7bed4e9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions abletonosc/osc_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,8 @@ def process_message(self, message, remote_addr):
remote_hostname, _ = remote_addr
response_addr = (remote_hostname, self._response_port)
self.send(address=message.address,
params=rv,
remote_addr=response_addr)
params=rv,
remote_addr=response_addr)
elif "*" in message.address:
regex = message.address.replace("*", "[^/]+")
for callback_address, callback in self._callbacks.items():
Expand All @@ -119,8 +119,8 @@ def process_message(self, message, remote_addr):
remote_hostname, _ = remote_addr
response_addr = (remote_hostname, self._response_port)
self.send(address=callback_address,
params=rv,
remote_addr=response_addr)
params=rv,
remote_addr=response_addr)
else:
self.logger.error("AbletonOSC: Unknown OSC address: %s" % message.address)

Expand Down
2 changes: 1 addition & 1 deletion tests/test_clip.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ def test_clip_add_many_notes(client):
duration = random.randrange(1, 4) / 4
velocity = random.randrange(1, 128)
# Create multiple instances of the same sequence, shifted in time.
for timeshift in range(1):
for timeshift in range(3):
note = (pitch,
time + (timeshift * 8),
duration,
Expand Down

0 comments on commit 7bed4e9

Please sign in to comment.
0