Skylar Saveland
unread,Jun 23, 2012, 1:27:25 AM6/23/12Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to pyo-d...@googlegroups.com
running the 02_midi_ctl_scan.py script, I only see events from my pedals, 64, 66 and 67:
(pyo)skyl@skyl-i5:~/Code/pyo/examples/utilities$ python 02_midi_ctl_scan.py
pyo version 0.6.2 (uses single precision)
MIDI devices:
0: OUT, name: Midi Through Port-0, interface: ALSA
1: IN, name: Midi Through Port-0, interface: ALSA
2: OUT, name: UM-1SX MIDI 1, interface: ALSA
3: IN, name: UM-1SX MIDI 1, interface: ALSA
4: OUT, name: qjackctl, interface: ALSA
Enter your Midi interface number : 3
Buffer size set to Jack engine buffer size: 1024
Play with your Midi controllers...
Do you want to continue ? (y/n) : y
Continue...
controller number = 64
ctl number : 64, ctl value : 0, midi channel : 1
ctl number : 64, ctl value : 127, midi channel : 1
ctl number : 64, ctl value : 127, midi channel : 1
ctl number : 64, ctl value : 0, midi channel : 1
controller number = 67
ctl number : 67, ctl value : 127, midi channel : 1
ctl number : 67, ctl value : 0, midi channel : 1
ctl number : 67, ctl value : 127, midi channel : 1
ctl number : 67, ctl value : 0, midi channel : 1
controller number = 66
However, with pypm's test script; I can retrieve events from all the keys and pedals:
(pyo)skyl@skyl-i5:~/Code/elmusic/pyportmidi$ python test_pyportmidi.py
enter your choice...
1: test input
2: test output
1
1 Midi Through Port-0 (input) (unopened)
3 UM-1SX MIDI 1 (input) (unopened)
Type input number: 3
Midi Input opened. Reading 100 Midi messages...
Got message 1 : time 7825 , 144 100 41 0
Got message 2 : time 7868 , 144 103 31 0
Got message 3 : time 7870 , 144 101 25 0
Got message 4 : time 7935 , 128 101 64 0
Got message 5 : time 7940 , 128 103 64 0
...
Got message 23 : time 223583 , 176 64 127 0
For the pypm numbers:
1) 144 is NOTEON, 128 is NOTEOFF, 176 is pedal
2) keys are [21-108], pedals are 64, 66, 67
3) velocity
4) ?, always 0
The same is true whether using JACK or ALSA.
Not sure how I might get these key events going in pyo.