Coder Social home page Coder Social logo

py-midi's People

Contributors

edthrn avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

py-midi's Issues

Path to serial device

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

Importing py-midi conflict with another python MIDI library

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.

Improve SysEx creation

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

SysEx Start/Play got halt in the while loop.

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.

checking for note combinations?

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

problem with "conn.write(msg)"

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!

SysHex error

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

conn.write(msg) not working

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.