edthrn / py-midi Goto Github PK
View Code? Open in Web Editor NEWA simple MIDI interface for Python 3
License: GNU General Public License v3.0
A simple MIDI interface for Python 3
License: GNU General Public License v3.0
Specifically, adding MIDI-Capability Inquiry, Profiles and Property Exchange
Details here:
https://www.midi.org/midi-articles/details-about-midi-2-0-midi-ci-profiles-and-property-exchange
Is there a way to access USB connected MIDI devices / Ports ?
I checked the /dev
folder but nothing looks like my connected MIDI device.
Hello,
Sorry if I am forgetting something that might resolve this issue instantly. The current problem that I am having is that I am attempting to use this library and another library called python midi (https://github.com/vishnubob/python-midi) for the same project. The issue is that both libraries utilize [import midi] to call upon the module. I considered manually going into the py-midi library and changing the label to make both libraries functional. Currently, I do not have access to any of the functionality of the py-midi library since [import midi] will only import the python midi library.
My code:
import midi
c = MidiConnector('/dev/serial0')
Output:
c = MidiConnector('/dev/serial0')
NameError: name 'MidiConnector' is not defined
I assume that that the import midi is importing the other midi module; therefore, causing the py-midi library not being imported and causing the NameError.
Thank you for your time.
Hello,
I'm trying to send midi messages from a Raspberry Pi 3B + with the latest version of python.
All seems to work fine but when I made the command:
conn.write (msg)
I do not get the value of the number of bytes sent and the MIDI message is not sent.
If anyone has a solution I would be eternally grateful to him!
Using with some Midi devices and I got error when hitting play on the midi devices.
SysEx message like 11111010 [Start/Play] got halt in the while loop. Not sure what's the reason. Tried two midi devices I have. Same problem occurs.
Hello,
Thank you for creating this library. Are there some more examples available anywhere? I'd like to create a custom interface to my MIDI controller that detects if a certain combination of notes are sent at the same time (buttons pushed together) and then sends a different note, possibly on a different channel. The script would just be a series of "if" statements checking for different note combinations.
-da'ud
can you provide an example for windows and raspberry pi.
I am using loopbe1 midi and trying to send midi messages the issue that I have is
conn = MidiConnector('/dev/serial0')
its not clear what we should insert here or how to find the path
I found a possible bug for SysEx, and try to fix it.
In midi.py (310), instead of i message.type != SysEx :
if message.type.__class__ != SysEx :
Hope it will be usefull to someone
So far, we need to give a Channel when building a SysEx message, even though it won't be used...
There is better to do
I'm trying to use this library to send a SysEx message to my Boss GT-1 pedal.
Here's what the full message should look like (with header and footer):
F0 41 00 00 00 00 30 12 7F 00 00 01 01 7F F7 (all values in hex)
Here's my code:
`from midi import MidiConnector, SysEx, Message
conn = MidiConnector('/dev/serial1', timeout=5)
sysexCmd = SysEx(0x41, 0x00, 0x00, 0x00, 0x00, 0x30, 0x12, 0x7f, 0x00, 0x00, 0x01, 0x01, 0x7f)
msg = Message(sysexCmd)
conn.write(msg)`
I'm trying all of this on a Raspberry Pi 3, but the conn.write() method never returns and the message is never sent.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.