Skip to content
This repository was archived by the owner on Nov 23, 2023. It is now read-only.

Commit 7548dd5

Browse files
comment broken MIDI feature out of tutorial
1 parent df10552 commit 7548dd5

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

examples/iipyper/iipyper-tutorial.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,13 @@ def _():
2020

2121
# # decorator to make a midi handler:
2222
# # here filtering for pitch > 0, channel = 0
23-
@midi.handle.note_on(pitches=range(1,128), channels=0)
24-
def _(pitch, velocity, channel):
25-
print(pitch, velocity, channel)
23+
# @midi.handle.note_on(notes=range(1,128), channels=0)
24+
# def _(note, velocity, channel):
25+
# print(note, velocity, channel)
2626

2727
# function to send MIDI:
28-
midi.note_on(pitch=60, velocity=100, channel=0)
28+
midi.note_on(note=60, velocity=100, channel=0)
29+
midi.note_off(note=60, velocity=100, channel=0)
2930
midi.cc(control=0, value=127, channel=1)
3031

3132
# @repeat(1)

0 commit comments

Comments
 (0)