python - pygame.midi Exception: PortMidi: `Insufficient memory' -
im trying setup pygame.midi communicate midi input device (usb) maintain getting
" exception: portmidi: `insufficient memory' "
and if retry without reinitializing get" exception: portmidi: `host error'"
it seems simple, copied code guy: https://github.com/kushalbhabra/pymidi/blob/master/src/test.py found youtube vid: https://www.youtube.com/watch?v=jhnow4cumv8
to seek out how works, can't seem passed simple error.
my code looks this, , fails @ lastly line:
import pygame.midi pygame.init() pygame.midi.init() input_id = pygame.midi.get_default_input_id() = pygame.midi.input( input_id )
my device recognised. if insert
print pygame.midi.get_device_info(input_id)
i "('mmsystem', 'nanokey', 1, 0, 0)"
i utilize python 2.7 32 bit on 64 bit win7 if matters
i'd same problem on windows 7, python 2.7.8, pygame-1.9.2a0.win32.
i tried install pygame-1.9.1.win32 , worked.
python pygame midi
No comments:
Post a Comment