Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot read sent data to raspberry pi #12

Closed
tomiquagliardi opened this issue Dec 14, 2017 · 6 comments
Closed

Cannot read sent data to raspberry pi #12

tomiquagliardi opened this issue Dec 14, 2017 · 6 comments
Assignees
Labels
enhancement Inbound Inbound MIDI events TO raveloxmid from a remote host

Comments

@tomiquagliardi
Copy link

Hi Dave! Thank you for the software.
I am trying to send midi packets from a PC to the raspberry pi, the opposite way in which you planned your drum kit. I want to read the midi note arriving to the raspberry and then flash some lights with the GPIO pins.
The issue is that altought I succesfully built and executed raveloxmidi, I cannot read the port in which packets arrive.

I tried the following python script:

Import socket
Import struct

host='localhost'
port=5006

s=socket.socket(socket.AF_INET, socket_DGRAM)
s.connect((host,port))
print(s.recv(1024))
s.close

Nothing happens after s.recv.... it seems no data is read!
Can you help me with this please?

Thank you Dave
Cheers, Tom

@ravelox
Copy link
Owner

ravelox commented Dec 26, 2017

Hi Tom

raveloxmidi wasn't designed with that in mind. I can look at creating that function but what do you want to happen with the note event when it has been received by raveloxmidi.

That is, are you expecting raveloxmidi to send the simple note events to another port?

Thanks

Dave

@tomiquagliardi
Copy link
Author

tomiquagliardi commented Dec 26, 2017 via email

@ravelox
Copy link
Owner

ravelox commented Feb 28, 2018

Hi Tom

I have some experimental code to accept MIDI events from a Mac, I just need to know where to pass them on to. For the moment, is it acceptable enough to write them to a file descriptor ( /dev/sequencer ? ).

Thanks

Dave

@ravelox
Copy link
Owner

ravelox commented Mar 1, 2018

I've release v0.3.0 to handle the inbound MIDI events. Please let me know if this is working for you.

@ravelox ravelox self-assigned this Mar 1, 2018
@tomiquagliardi
Copy link
Author

tomiquagliardi commented Mar 1, 2018 via email

@ravelox
Copy link
Owner

ravelox commented Mar 7, 2018

Did you get a chance to check out the new code?

@ravelox ravelox added enhancement Inbound Inbound MIDI events TO raveloxmid from a remote host labels Mar 9, 2018
@ravelox ravelox closed this as completed Apr 23, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Inbound Inbound MIDI events TO raveloxmid from a remote host
Projects
None yet
Development

No branches or pull requests

2 participants