Forum Rule: Always post complete source code & details to reproduce any issue!

Search:

Type: Posts; User: SteveBar

Page 1 of 2 1 2

Search: Search took 0.00 seconds.

  1. Replies
    1
    Views
    140

    The way the "midiList" index is linked to the...

    The way the "midiList" index is linked to the physical port is by adding a call-back in enumeration.cpp in function void USBHost::enumeration().
    The pointer to the device descriptor is passed in...
  2. Replies
    1
    Views
    140

    USB Host as MIDI router

    Hi Paul,
    I am using the T3.6 as a MIDI router. I have a hub chip hard connected to the T3.6 host port. How can I associate the "midiList" index with the physical port? I implemented a version of...
  3. Replies
    9
    Views
    426

    Just a little prototype MIDI Sequencer/Synth...

    Just a little prototype MIDI Sequencer/Synth thingy were messing with...
    23264
  4. SSD1351 OLED display using HW SPI on Teensy 41

    Hi All,
    I'm trying to get the SSD1351 lib to use HW SPI1 on Teensy 4.1. (SPI1: sclk=27 mosi=26 reset=23 dc=19 cs=38)
    Similar to my last question about SPI1 use in the MD_MAX72xx

    In file...
  5. Replies
    9
    Views
    426

    In Conclusion: To use SPI1 in the MD_MAX72xx lib...

    In Conclusion:
    To use SPI1 in the MD_MAX72xx lib do this...
    Search & Replace of "SPI." with "SPI1." in the file MD_MAX72xx.cpp.
    I did it and got great results!
    BTW the CS pin can be something...
  6. Replies
    9
    Views
    426

    Thanks, I'll give it a go.

    Thanks, I'll give it a go.
  7. Replies
    9
    Views
    426

    This guy... 23239

    This guy...
    23239
  8. Replies
    9
    Views
    426

    Yes, that's it. Steve

    Yes, that's it.
    Steve
  9. Replies
    9
    Views
    426

    Can't seem to find the edit button... I want to...

    Can't seem to find the edit button...
    I want to make clear I should have written "SPI1" (not SPI2), which is the 2nd SPI port. You'll can tell I'm an engineer (starts counting at 1), not a SW dev...
  10. Replies
    9
    Views
    426

    MD_MAX72xx using HW SPI on Teensy

    Hi All,
    I'm trying to get the MD_MAX72xx lib to use HW SPI2 on Teensy 4.1. (SPI1: MOSI1=26, SCK1=27, CS1=0 or 38)

    Using the 5 param call results in a BIT Bangged "SPI" (not the goal) which...
  11. Looking for contractor for synth projects

    Hi All,
    We are looking for an experienced SW engineer on Teensy and R-Pi platforms to help us implement various synthesizer and midi controller projects. It would be awesome if the candidate is...
  12. Replies
    21
    Views
    8,461

    Great suggestion, tested and implemented!...

    Great suggestion, tested and implemented!
    THANKS!
    Steve
  13. Replies
    21
    Views
    8,461

    I agree if it where a simple matter of...

    I agree if it where a simple matter of "rounding/truncating errors" that skewed the distribution this way or that, but 3 is just wrong and needs to be fixed. As stated above the goal is to give...
  14. Replies
    21
    Views
    8,461

    if ((in_max - in_min) > (out_max - out_min)) { ...

    if ((in_max - in_min) > (out_max - out_min)) {
    return (x - in_min) * (out_max - out_min+1) / (in_max - in_min+1) + out_min;
    } else {
    return (x - in_min) *...
  15. Replies
    21
    Views
    8,461

    Trouble with results when min>max output bounds

    Hi All,
    When the output Min > Max, I get this:

    map(0, 0, 127, 60, 30) = 60 (GOOD)
    map(127, 0, 127, 60, 30) = 32 (NOT SO GOOD)

    From Arduino reference:
  16. Replies
    0
    Views
    442

    USBHost_t36 attach/detach callbacks

    HI All,
    I really wanted to get "call backs" when USB devices attached and detached, so a buddy helped me add some code to USBHost_t36.h and enumeration.cpp...

    The 1st goal was so no polling...
  17. Thanks. I wonder how Serial6 got damaged??? I...

    Thanks.

    I wonder how Serial6 got damaged??? I was soldering on the belly-pads to get TX6 cabled up... it may have arrived that way too???
    Steve
  18. Hi Paul, We ordered and just received another...

    Hi Paul,
    We ordered and just received another couple T36's and did a test. Our original T36 has a bad Serial6, the new ones work fine. :-)

    I don't know how to change the name of this thread or...
  19. Maybe I have an issue with my T3.6... even this...

    Maybe I have an issue with my T3.6... even this hangs. BTW changing 6 to 1-5 works (using the appropriate pins).
    I tried with no MIDI driver to remove complexity, just sending a serial byte 0xF8 =...
  20. Hi Paul, Here's an example. Middle C on/off... ...

    Hi Paul,
    Here's an example. Middle C on/off...


    #include <MIDI.h>

    // Serial hardware UART 6
    // MIDI_CREATE_INSTANCE(HardwareSerial, Serial1, midiF); <--- this works SERIAL #1
    ...
  21. Thanks guys for looking into this. Really super...

    Thanks guys for looking into this. Really super appreciate it. When I get back to work Monday morning I will try the samples above.

    KurtE, Maybe some timing delays would help??? What exactly do...
  22. Can someone try this code on their T3.6 to see if...

    Can someone try this code on their T3.6 to see if it locks up? No soldering required, because the no MIDI data ever comes out the port.
    Thanks
    Steve
  23. In MIDI.hpp, on or about line 123, is the Send()...

    In MIDI.hpp, on or about line 123, is the Send() function (see code below). It handles sending Real-Time msgs... but the bounds checking requires the channel must = 1-16. It wasn't working for me...
  24. Looking for info on Serial MIDI Real-Time message support

    Hi All,
    Does anyone have a link to or info on the Serial MIDI Driver support for MIDI real-time messages: Clk, Start, Stop, & Continue (F8, FA, FB, & FC). I can't seem to find a definitive answer, ...
  25. HI All, Here's an update: I got the whole...

    HI All,
    Here's an update:

    I got the whole thing working and it is really cool. Well, not SysEx yet, but all the 1,2,& 3 byte MIDI messages including the real time messages: Clk, Start, Stop, &...
  26. T3.6 crash when using Serial Port #6 for MIDI - after Teensy Damaged

    Hi ALL,
    I searched for this potential issue and did not have any luck finding it... if there is info on this please LMK. :-)

    We isolated this issue using example 'Basic I/O' as a starting point...
  27. Yikes... 64 bit operations aren't always...

    Yikes... 64 bit operations aren't always working!!! i.e. bit-shift <<, >> and print. Oy!
    Maybe I will be using a 32 bit ring buffer...
    - Steve
  28. Iím using 64 bits now with the presumption that I...

    Iím using 64 bits now with the presumption that I would be feeding the ring buffer from the send_sMIDITxMsg function in real time, in the next version. This version is only using the 64bit...
  29. Here's the next version of the "8x Soft MIDI Tx"...

    Here's the next version of the "8x Soft MIDI Tx" test code.
    This code snippet sends MIDI Note-On messages every 62.5 msec (120 BMP - 1/8th notes) to all 8 Pins with notes C4, E4, G4, C5, E5, G5, C6,...
  30. UPDATE: Issue: every ~6sec there is a corrupt...

    UPDATE:
    Issue: every ~6sec there is a corrupt message coming out of the bit-banged MIDI out pin, ONLY under intense conditions:

    Updating 26 NeoPixels every 125ms (typically only updated once...
  31. 3 ARM procs a might be UART efficient, but maybe...

    3 ARM procs a might be UART efficient, but maybe not cost efficient. :-)

    That reminds me, our original plan was to use the T4.0. How close is that? We'd really rather target that platform.
    ...
  32. Thanks again Pete. I’m planning on writing a...

    Thanks again Pete.
    I’m planning on writing a function called “sendMIDImsg”, that is very similar to the standard midi lib function. This fcn will do all the midi formatting/translating to a bit...
  33. Thanks Pete! I edited the code above and moved...

    Thanks Pete! I edited the code above and moved the gTXReadHead inc below the write.
  34. Thanks el_supremo! I think you pointed out all...

    Thanks el_supremo! I think you pointed out all the right issues! Thanks so much for taking the time. I just reposted the new MIDI bit stream test data and some small changes in the code. These seem...
  35. Thanks Paul for the scope pics! ITS WORKING!...

    Thanks Paul for the scope pics!

    ITS WORKING! It was a couple things...

    LSB v MSB, it turns out LSB bit first!
    Pad the buffer with 1's
    inverse logic, the not "!" is removed from the...
  36. I tried all variations and sent the buffer: both...

    I tried all variations and sent the buffer:
    both forward & reverse order... flipped polarity start/stop bit... padded buffer w/ 0 or 1 ...
    ...none resulted in the desired interpretation from...
  37. Thanks Paul... I modified the image and super...

    Thanks Paul...
    I modified the image and super imposed the 0/1 stream... looks like the right bits are getting thru. I'll double check my "format" of the MIDI bit stream.
    16447
  38. MIDI Bit-Bang via 32usec Interrupt timer on T3.6

    Here's my stab at writing the code. I love any feedback, suggestions, comments...

    Theory of operation:

    setup 32usec interrupt timer at high priority to callback bit-bang function once per...
  39. If I did the calc right, a clock tic @240MHz...

    If I did the calc right, a clock tic @240MHz ~4.2nano sec. so 30us = ~7200 ticks!
    I think the ISR would need to inc a counter, test for empty buffer, test 8 on/off states and set 8 pin states to...
  40. Hi Frank, Thanks for your feedback. In addition...

    Hi Frank,
    Thanks for your feedback. In addition to using an interrupt timer I was planning to do all 8 outputs simultaneously in the same interrupt handler, as you mentioned. This will require only...
  41. Hi Paul/All, Here are some more details... I...

    Hi Paul/All,
    Here are some more details... I have a prototype of this already built and running and about 60% of the code written. Below is the current input/output definitions of the MIDI router....
  42. Could the "tunedDelay" function in the...

    Could the "tunedDelay" function in the Softwareserial lib be achieved by using a high priority 32 micro-sec interrupt timer, and not turning off interrupts?

    Guess Iím asking for someoneís help......
  43. MIDI can be daisy-chained from device to...

    MIDI can be daisy-chained from device to device... but that can add latency especially with older devices. And tedious when re-configuring equipment. So spitting the MIDI and running cables in...
  44. I need more than 6 outputs. Steve

    I need more than 6 outputs.
    Steve
  45. BTW given its MIDI at 31250 baud its fixed at a...

    BTW given its MIDI at 31250 baud its fixed at a 32usec pulse
  46. For instance functions "tx_pin_write" &...

    For instance functions "tx_pin_write" & "tunedDelay" are called bracketed by toggling all interrupts. Could "tunedDelay" be achieved by setting a high priority micro-sec timer to the pulse width...
  47. Here's the SoftwareSerial.cpp that I modified......

    Here's the SoftwareSerial.cpp that I modified... all locations where code was commented out or added has the comment... "// added by SEB to remove RX delays"


    /*
    SoftwareSerial.cpp (formerly...
  48. Hi Paul thanks for the reply. Any chance of...

    Hi Paul thanks for the reply.
    Any chance of getting a function to read the port and hub numbers? Otherwise the user has no idea which physical device corresponds to which logical device# in the...
  49. Tx only needed in Softserial lib for MIDI on T3.6 -

    If I missed this info in another thread feel free to point to it, I’ve been browsing and reading for several hours today and haven’t come across these answers. But learned a ton of other stuff in the...
  50. T3.6 USB Host MIDI - Theory of operation question

    If I missed this info in another thread feel free to point to it, Iíve been browsing and reading for several hours today and havenít come across these answers. But learned a ton of other stuff in the...
Results 1 to 50 of 53
Page 1 of 2 1 2