mido:适用于Python的MIDI对象

时间:2024-05-17 17:37:12
【文件属性】:

文件名称:mido:适用于Python的MIDI对象

文件大小:145KB

文件格式:ZIP

更新时间:2024-05-17 17:37:12

python midi Python

Mido-适用于Python的MIDI对象 Mido是用于处理MIDI消息和端口的库: >> > import mido >> > msg = mido . Message ( 'note_on' , note = 60 ) >> > msg . type 'note_on' >> > msg . note 60 >> > msg . bytes () [ 144 , 60 , 64 ] >> > msg . copy ( channel = 2 ) Message ( 'note_on' , channel = 2 , note = 60 , velocity = 64 , time = 0 ) port = mido . open_output ( 'Port Name' ) port . send ( msg ) with mido . open_input () as in


网友评论