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

Search:

Type: Posts; User: MatrixRat

Page 1 of 3 1 2 3

Search: Search took 0.00 seconds.

  1. Replies
    4
    Views
    130

    Teensyduino's MIDI library is the...

    Teensyduino's MIDI library is the FortySevenEffects MIDI library with some enhancements. An Arduino UNO only has one serial port called TX RX so when using the MIDI library you instantiate it with:-...
  2. Replies
    4
    Views
    130

    Try:- MIDI_CREATE_INSTANCE(HardwareSerial,...

    Try:-
    MIDI_CREATE_INSTANCE(HardwareSerial, Serial1, MIDI);
    Works here on a T3.2.

    void setup() and void() loop show that we are listening to usbMidi not MIDI.

    Hope this helps.
  3. Replies
    8
    Views
    165

    Just been looking at this with the CRO so here's...

    Just been looking at this with the CRO so here's some pix.
    Upper trace is TX pin. Lower trace is Pin 6 of 6N139 and we're looking at an actual Midi message.

    No resistor is attached to pin 7. ...
  4. Replies
    12
    Views
    1,603

    Curiously, it seems FifteenSteps thinks of 0-15...

    Curiously, it seems FifteenSteps thinks of 0-15 for Midi channel number. Teensy usbMidi spits out on Ch 16 if told to send on channel=0 whereas the Din midi lib spits nothing.

    Needed to resort...
  5. Replies
    12
    Views
    1,603

    Curiosity bit. Uploaded to a T3.6 with Din midi...

    Curiosity bit. Uploaded to a T3.6 with Din midi out and no button or pullup on pin 4.
    Midiox sees Timing Clock 248 followed by a NoteOff for C-1.

    As for the button, treating it like a touch...
  6. Replies
    12
    Views
    1,603

    Uploaded it to a Teensy LC with a button on pin 4...

    Uploaded it to a Teensy LC with a button on pin 4 (needed a pullup) looking at TX pin with a CRO which shows what looks like the same midi message repeated fairly rapidly and a different message is...
  7. Replies
    12
    Views
    1,603

    What hardware is needed to get it up and running?...

    What hardware is needed to get it up and running? Would like to play with it in the light of a new day.

    Suggest fiddling with the function :-


    void midi(byte channel, byte command, byte arg1,...
  8. Replies
    12
    Views
    1,603

    Thanks for bumping this old thread, not...

    Thanks for bumping this old thread, not previously seen Fifteensteps. Looks interesting, neopixels? neotrellis? What?

    Got me curious. Have not dug into what gives with the hardware yet but after a...
  9. Perhaps a dodgy optocoupler on the receiving end...

    Perhaps a dodgy optocoupler on the receiving end or unsuitable resistor values associated with the sending end.

    You might post some schematic of how both pieces of kit do it.
  10. Replies
    6
    Views
    211

    Yes that makes sense. Think of some low value...

    Yes that makes sense.

    Think of some low value R(say 47R) between +3.3v and Ring to act as current limit in case something shorts while plugging in.

    Some R (say 4k7) between tip and Analog pin...
  11. First you need to add Midi IO circuitry to...

    First you need to add Midi IO circuitry to Teensy's TX/RX2 then in code add:-


    MIDI_CREATE_INSTANCE(HardwareSerial, Serial2, MIDI2);

    Then to send to it:-


    ...
  12. Replies
    52
    Views
    12,779

    Interestingly, regarding the usb host port of the...

    Interestingly, regarding the usb host port of the MIO-10 and it's ability to handle multiple identical class compliant usbMidi devices. In one setup I had several Teensy (3.2 - 4.0) usbMidi devices...
  13. Replies
    52
    Views
    12,779

    I'm running Win 7, Reaper,PreSonus, a MIO-10 and...

    I'm running Win 7, Reaper,PreSonus, a MIO-10 and Midisport 8X8 interfaces and an assortment of other usbMidi gear and ran into similar headaches when adding Teensy usbMidi devices to the mix.

    When...
  14. Can be done with Midi. This link:- ...

    Can be done with Midi. This link:-

    http://www.midibox.org/dokuwiki/doku.php?id=midi_specification

    Discusses 14 - bit Midi messages and hopefully provides some insight.

    Another useful...
  15. Replies
    19
    Views
    585

    Should have added ground bounce and overshoot as ...

    Should have added ground bounce and overshoot as search terms. My oversight.

    IMXRT1060CEC_rev0_1.pdf, page 36 Table 25 indicates that Output Pad Transition Times, rise/fall could be anywhere...
  16. Replies
    19
    Views
    585

    A thought perhaps, can't see anything resembling...

    A thought perhaps, can't see anything resembling sharp edge decoupling on any T4.1 pins on the layout.
  17. Wow, that's a big list. Similar here. Started...

    Wow, that's a big list.

    Similar here. Started building a Midi controller using a Mega 2560 and filled it up and yes, you can do all of those things with Teensy and I suggest looking at the T3.5,...
  18. Thank you for those tips. I get it that the...

    Thank you for those tips. I get it that the polling rate needs to be slowed to let bigger values through theoretically giving some range of values related to rotation speed.

    Realized some time...
  19. Knob encoder velocity multiplier qestion

    Working an a usbMidi master clock project which currently provides eight separate Midi clock sources and is controllable via the usual transport commands and some device-specific CC messages and it's...
  20. Tried running the HX711 from +3.3v?

    Tried running the HX711 from +3.3v?
  21. It looks like the lower SW1 wiring mod routes...

    It looks like the lower SW1 wiring mod routes either incoming Midi In or RRC to Thru.

    Upper SW1 pulls P16 of the CPU low for whatever reasons which are unclear. We are dealing with that magic...
  22. Not sure if the 6 - pin connector in the...

    Not sure if the 6 - pin connector in the schematic Post #38 and the 6-pin of the schematic in Post # 52 are on the same page.

    Would you zoom out and repeat post #52?
  23. Replies
    5
    Views
    124

    Just had another thought:- If the RX pin is...

    Just had another thought:-

    If the RX pin is not used and left floating it may pick up garbage and depending on what the code is doing, said garbage may be sent to the output.

    Maybe turning on...
  24. Replies
    5
    Views
    124

    Been playing with din Midi circuitry on a...

    Been playing with din Midi circuitry on a breadboard with a T2, pots, buttons and a noisy display - a bit of a jungle of wires, and have not encountered any need to use shielded cables for the Din...
  25. Oops, sorry, it is a 470R which happened to be on...

    Oops, sorry, it is a 470R which happened to be on the bench when I assembled it.

    I think it wise to use a bigger R like 1k5 to minimise current draw. The Leds will still be bright enough to see.
    ...
  26. ...ideas. Let's forget about Midi for the...

    ...ideas.

    Let's forget about Midi for the moment and think diagnostics like an ElCheapo logic probe.

    20412
    The two Leds are wired back to back so regardless of which way it's connected, one of...
  27. My favorite pick and place tool for SMD passives...

    My favorite pick and place tool for SMD passives is a small haemostat with an elastic band close to the pivot.

    For SOICs and similar I always tin the PCB pads with rosin core, remove excess with...
  28. Ok thanks. As I expected there some small...

    Ok thanks. As I expected there some small differences in the opto input from what you usually see but nothing leaps out as something to play with. Will investigate more deeply in daylight as have...
  29. Basically, Q8 and Q6 in the above schematic and...

    Basically, Q8 and Q6 in the above schematic and the 74LS05 in the earlier one are doing the same job as a buffer between the MCU TX pin and the outside world. Good engineering practice.

    The...
  30. Ok, It's bedtime here and this code compiles so...

    Ok, It's bedtime here and this code compiles so am looking forward to good news.


    ///************LIBRARIES USED**************
    #include <MIDI.h>
    MIDI_CREATE_INSTANCE(HardwareSerial, Serial1,...
  31. Dude, so close. I'm trying not to do all the hard...

    Dude, so close. I'm trying not to do all the hard work here. What happened is that when you pasted the void doActiveSensing() function into the sketch, it got inserted in between some curly braces...
  32. Great news! Thanks for starting this thread coz ...

    Great news! Thanks for starting this thread coz I've learned something too.
    Absolutely right that open collector needs a pullup.

    A note about the 420R. My dodgy handwriting, I meant 470R...
  33. Hi Carlos11. The Midi library sets up the...

    Hi Carlos11.

    The Midi library sets up the baudrate.

    Been playing with direct hookup eg. Midi keyboard > Mega2560 (as an Arpeggiator) TX pin to Teensy2 RX, then Teensy2 TX to Din midi out...
  34. Many Crankshaft Angle sensors used in engine...

    Many Crankshaft Angle sensors used in engine management have 3 wires, power, ground and signal so the signal processing is already done.
    Some sense the ring gear, some sense the belt pulley and you...
  35. Hi Carlos. I'm working on a merger -...

    Hi Carlos.

    I'm working on a merger - controller for a Sequencer that runs on a Mega and it's pretty easy for me to setup a direct TX RX connect with a T2 to play with the idea.

    Currently, Midi...
  36. Hi Carlos. Sorted the merge code and added...

    Hi Carlos. Sorted the merge code and added ProgramChange filter. Works much better than previous attempt.


    ///************LIBRARIES USED**************
    #include <MIDI.h>...
  37. Ok. Try dropping the pullup to 220R, then insert...

    Ok. Try dropping the pullup to 220R, then insert 150R from 74LS05 pin 8 to Teensy RX pin at the Teensy end.

    It's past my bedtime and I've been writing code all day so will hook up the hardware...
  38. Have just been investigating Midi input and...

    Have just been investigating Midi input and output circuitry on the testbench looking at current, voltage, optocouplers etc. and I must say that it's a bad idea to increase the pullup on the 74LS05...
  39. Replies
    4
    Views
    228

    The MIDI circuits for DIN (along with the library...

    The MIDI circuits for DIN (along with the library reference) are here: https://www.pjrc.com/teensy/td_libs_MIDI.html
  40. Cool. I had another look at that code and I gotta...

    Cool. I had another look at that code and I gotta do a keyboard faceplant coz I'm darned if it works like I thought it did. Sorry for my bad.

    Couple of thoughts:-

    I've replaced many more 74LS05...
  41. I just tested it and you're totally right that...

    I just tested it and you're totally right that Thru gets blocked when when I move the pot however all incoming Midi messages are passed thru correctly so perhaps the T2's RX is not getting a clean...
  42. Try this. #include ...

    Try this.


    #include <ResponsiveAnalogRead.h>
    #include <MIDI.h>

    MIDI_CREATE_INSTANCE(HardwareSerial, Serial1, MIDI);

    const int channel = 1; // MIDI channel
    const int A_PINS = 1; //...
  43. And that code is pretty much what I was doing but...

    And that code is pretty much what I was doing but will keep my mouth shut before I try it.

    Good thing I saved all my stuff before reboot because every darn sketch I'd worked at for the last week...
  44. Sorry, I've got some computer - IDE problem and...

    Sorry, I've got some computer - IDE problem and simply cannot get Oddson's sketch to work.

    I'm definitely not blaming Oddson as I've had the same computer issue several times recently on my...
  45. You also need to add in void setup() ...

    You also need to add in void setup()

    MIDI.begin(MIDI_CHANNEL_OMNI);

    Which wakes up the library so that Din IN is passed thru to Din OUT.
  46. In File>Examples>Teensy>USB_MIDI you will find...

    In File>Examples>Teensy>USB_MIDI you will find AnalogControlChange and Many_Buttons_Knobs.

    Ok, It's for USB Midi and both examples have more than one pot but are good to play with.
    ...
  47. I think you might need to start here:...

    I think you might need to start here: https://www.pjrc.com/teensy/teensyduino.html
  48. Simple. Thru is enabled by default when the Midi...

    Simple. Thru is enabled by default when the Midi library is instantiated. All incoming Din Midi messages are passed to Din Midi out so you just have to add code to send what you need.
  49. Replies
    6
    Views
    230

    Thank you. I did not have the IDE running at the...

    Thank you. I did not have the IDE running at the time I tried it. Have installed Wireshark.

    Have also upgraded Win7 to Win10 and discovered (to my surprise) that my odd mix of old and new Midi...
  50. Replies
    6
    Views
    230

    Tapping in aconnect -i with Terminal lets me see...

    Tapping in aconnect -i with Terminal lets me see the range of Usb-Midi I'm using either off-the-shelf or various TeensyMidi and Midix4 devices I've built.

    However, watch 'ls -al /dev/ttyAC*'...
Results 1 to 50 of 123
Page 1 of 3 1 2 3