Search found 17 matches

by Kprellz
Tue Aug 25, 2020 6:24 am
Forum: General discussion
Topic: USBComposite send data from within interrupts
Replies: 10
Views: 7832

Re: USBComposite send data from within interrupts

I actually had the exact same issue, trying to use interrupts on push buttons to send certain midi messages, would only ever send the first message, Really weird, never figured it out and just ended up going a different route anyway. If you figure it out let me know!
by Kprellz
Sat Aug 22, 2020 8:28 am
Forum: Libraries & Hardware
Topic: Rename device with USBComposite library?
Replies: 5
Views: 10719

Rename device with USBComposite library?

Hey all! kind of silly but i'm wondering if its possible to change what name the computer sees when using the USBComposite class? as of right now i'm using the Midi portion of the library and it comes up as "maple" but im wondering if would be possible to make that custom? I thought I coul...
by Kprellz
Sat Aug 08, 2020 8:21 pm
Forum: General discussion
Topic: USBComposite Sysex
Replies: 9
Views: 6846

Re: USBComposite Sysex

I figured it out. Apparently I had an older version of the library before sysex was actually implemented. just had to update now everything works fine. thank you!
by Kprellz
Sat Aug 08, 2020 5:33 pm
Forum: General discussion
Topic: USBComposite Sysex
Replies: 9
Views: 6846

Re: USBComposite Sysex

Code: Select all

virtual void handleSysExData(unsigned char ExData) {
      USBMIDI::sendNoteOn(0, 0, 0x7f);

    }
using the midiin example and just pasting that in. For whatever reason I never get that message back. using https://factotumo.com/web-midi-console/ to send/receive midi
by Kprellz
Sat Aug 08, 2020 4:49 pm
Forum: General discussion
Topic: USBComposite Sysex
Replies: 9
Views: 6846

Re: USBComposite Sysex

So interestingly enough I actually cant get handleSysexData to detect my sysex messages. If I send a sysex message the function never gets called for some reason. currently sending a sysex Message from my DAW(pro tools) but the function never gets called to execute my code.
by Kprellz
Thu Aug 06, 2020 5:06 am
Forum: General discussion
Topic: USBComposite Sysex
Replies: 9
Views: 6846

Re: USBComposite Sysex

Ahhhhhh! I see. The 47 effects library does all the buffering of the Sysex message internally. I just need to read every byte of sysex and start storing it into an array if I get the start message and stop when I get the stop, then do what I need to do with the sysex array. Hopefully this doesn’t ca...
by Kprellz
Wed Aug 05, 2020 8:40 pm
Forum: General discussion
Topic: USBComposite Sysex
Replies: 9
Views: 6846

Re: USBComposite Sysex

Usually sysex messages are pretty long, so i'm confused as to why its an unsigned char. Generally a sysex message is something like {0xf0, 0xf1, 0xf2, 0xf3, 0xf4, 0xf5, 0xf6, 0xf7, 0xf8, 0xf9, 0xf7} how is that supposed to be stored into an unsigned char, an unsigned char ARRAY would make sense.
by Kprellz
Wed Aug 05, 2020 12:29 am
Forum: General discussion
Topic: USBComposite Sysex
Replies: 9
Views: 6846

USBComposite Sysex

Hey all, Been using the USBComposite library for a bunch of midi stuff, now I need to receive sysex messages and I'm not really sure how. I've done sysex using the 47effects midi library however I'd rather not convert everything I have over to that just to use sysex. I know there is some level of sy...
by Kprellz
Sat Feb 01, 2020 1:27 am
Forum: General discussion
Topic: USB Composite library MIDI
Replies: 10
Views: 7762

Re: USB Composite library MIDI

I ended up figuring this out for anyone else who may be having issues rather than midi::sendNoteOn you need to use USBMIDI:: in the my midi class, then after myMidi midi; is declared you can use the regular midi:: operator.
by Kprellz
Thu Jan 30, 2020 7:56 am
Forum: General discussion
Topic: USB Composite library MIDI
Replies: 10
Views: 7762

Re: USB Composite library MIDI

#include <USBComposite.h> class myMidi : public USBMIDI { virtual void handleNoteOff(unsigned int channel, unsigned int note, unsigned int velocity) { midi.sendNoteOn(0x00, 0x00, 0x00); } virtual void handleNoteOn(unsigned int channel, unsigned int note, unsigned int velocity) { } }; myMidi midi; U...

Go to advanced search