-
Notifications
You must be signed in to change notification settings - Fork 24
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
Info request #11
Comments
@Alefrasca90 Welcome to the Pico world. I assume you are a C programmer. I encourage you to read the Getting Started Guide and follow the tutorial. Once you have the example code in the tutorial running, have a go at this. Once you have done that, I can say... Yes, this code could be a good starting point for a project like that. You can copy this project to a new directory and hack it. Find the routine
That line will fill the byte buffer If your pedal has a MIDI out but you don't care what it is sending, around line 166 is the function Around line 115 you can delete or comment out I hope that is helpful. |
Awesome! Thanks! I'll try as soon as go back on project! |
One more thing, that Rx array that contains up to 48 bytes, why can contains that amount and if I have to send multiple signals can I parse them one after the other inside Rx or is better to call the method more times? That's for understanding how to build my method, thanks. |
@Alefrasca90 The longest USB bulk transfer in USB Full Speed mode is 64 bytes, so the buffer that composes USB packets is for transmission is 64 bytes long ( So you can send at most 64 bytes/4bytes/message =16 messages at once before you overflow the driver's transmitter FIFO. You need 16x3=48 bytes to store 16 3-byte messages, so the size is 48 bytes. In practice, the USB is much faster than the serial port UART, so the 48 bytes is enough. The call to How many Control Change (3-byte) and Program Change (2-byte) messages are required to configure your guitar pedalboard? Do you need SysEx? If it is more than 16 messages at once, put them in a big buffer and change I hope this helps and didn't confuse you. When you are done, please publish your project on GitHub. Sounds cool. |
You're very kind, I'm going to send a CC message per time every time I need to change some parameters so no problems at all, mine was just curiosity about the complicated (for me) usb protocol, thanks so much! |
Hello everybody, I'm new to Pico world, that project looks like the one for me but for a thing, I need to send midi messages on a guitar pedalboard that uses usb type c but only works as a device. Would I be able to interact with it just sending midi signals with this code? I don't need to translate from din pins on UART, but just be able to send CCs and PCs over usb but without setting up a midi software on Pc. As I know already all the messages I need to sent, would be possible to just setup a midi host over the native usb of the Pico?
The text was updated successfully, but these errors were encountered: