Search results

  1. M

    Help Needed with DIN MIDI "Drone" mode sketch

    Hi Everyone, I am trying to code a modified version of the drone keys sketch by Retrokits. The sketch does the following: * You play one or multiple keys on a keyboard, these played keys will stay active, even after release of all the keys. * Only when you press one or more keys again after...
  2. M

    MIDI note repeat code not working and could use some guidance

    Thanks so much for the feedback Pete. My apologies as I've had some other projects going on - but I am definitely still working on this one. Will share the updated code as soon as I can =D
  3. M

    MIDI note repeat code not working and could use some guidance

    Hi Pete, Many thanks for taking a look at the code here. To clarify: were you able to get the note repeats to work on your end? Also I realized in the above code, in the setup MIDI.begin(); will not pass any messages as a channel needs to be specified here (e.g MIDI_CHANNEL_OMNI, 1, 2,3...
  4. M

    MIDI note repeat code not working and could use some guidance

    Hi Everyone, I am trying to write a MIDI note repeat sketch and I am a bit stuck and trying to figure out why it isn't working and how to move forward. Here is a short demo of the idea using Logic Pro X MIDI note repeat effect for reference: https://youtu.be/kAuJ-MEJQCQ?t=135 I am using a...
  5. M

    Control Surface with Teensy for Beginners

    Thank you for the clarification @Pieter , very much appreciated!
  6. M

    Control Surface with Teensy for Beginners

    @Pieter I have a MIDI controller project that I am working on that uses the Teensy MIDI library (forty seven effects). Do I understand correctly that your control surface library has a wrapper for this library? My project is hardware serial-based and does not use usbMIDI. I also want to...
  7. M

    placement of zener diode for voltage protection for harware MIDI circuit?

    Couldn't have done it without your great help and patience. Thank you! I just tested on the breadboard and it is working great =) Now, moving on to a push button encoder for the next challenge :eek:
  8. M

    placement of zener diode for voltage protection for harware MIDI circuit?

    Hey @MatrixRat, apologies for the delayed reply. Thank you again for your patience with my learning process and sharing the additional detail on the buffer circuit. No worries - the headache was self generated and not from your expertise =) Here's my schematic at this point incorporating the...
  9. M

    placement of zener diode for voltage protection for harware MIDI circuit?

    hey @matrixrat - I have a follow up on this buffer circuit if you dont mind? the sketch of the buffer circuit you shared here, I overlayed pin 4 of the MIDI OUT going to the Tx line on it and you confirmed this was correct? I am using the schematic for the teensy LC and 3.x from the MIDI lib...
  10. M

    placement of zener diode for voltage protection for harware MIDI circuit?

    Many thanks again @matrixrat super super helpful. I am just getting started with MIDI hardware and software implementation so these details are really important to me and hopefully for others to follow. cheers
  11. M

    placement of zener diode for voltage protection for harware MIDI circuit?

    Wonderful thank you. One more point of clarification: in your diagram it shows the rear view of the MIDI OUT DIN so the pin out should be as follows?
  12. M

    placement of zener diode for voltage protection for harware MIDI circuit?

    No worries @matrixrat , I appreciate the help and explanation! i believe I have a BC557 on hand... To clarify: those are 1 kΩ resistors in series there at the base of the transistor? thank you for sharing this example. super helpful and much appreciated.
  13. M

    placement of zener diode for voltage protection for harware MIDI circuit?

    Thanks for the advice on the tranistor. this is new territory for me here. can you elaborate a little more on using a NPN, i.e which NPN and its placement in the schematic? thank you...
  14. M

    placement of zener diode for voltage protection for harware MIDI circuit?

    Ahhhh, yep - thanks for the eye on that pic on the MIDI lib page in regards to the zener placement - I was trying to figure that out just from the photo too... As for the 3.6 zener, I hear you on the current range - 5.6V zener seems a safer bet but given what your saying about the potential for...
  15. M

    placement of zener diode for voltage protection for harware MIDI circuit?

    Thanks for the reply @MatrixRat - ahh yep - that differentiation of 5.6v vs 3.6V is not made on the MIDI lib page depending on the board. Thank you for pointing that out. As for the placement of the zener, that was my original question... would the zener diode then be placed in parallel to the...
  16. M

    placement of zener diode for voltage protection for harware MIDI circuit?

    Hi Everyone, I want to move my MIDI circuit off the breadboard and following the schematic below found on the PJRC MIDI Library page. I am trying to determine where to place the protection diode in the MIDI out circuit. Where it says: Would the 5.6V zener diode be placed in parallel to...
  17. M

    Transpose / Offset incoming MIDI notes down an octave?

    No worries - I really appreciate the help! I barely understand what I am doing here as I go along and I have the physical hardware in front of me so you are totally fine! I'm not sure why the modulo version won't work either. I just tried it again and still same output as shown in MIDI monitor...
  18. M

    Transpose / Offset incoming MIDI notes down an octave?

    Ok here's what I came up with using @el_supremo code that looks to be working (resets the accent pattern with a start message): #include <Arduino.h> #include <MIDI.h> MIDI_CREATE_INSTANCE(HardwareSerial, Serial1, MIDI); byte velocityAdjust = 100; // increases velocity level: min (0), default...
  19. M

    Transpose / Offset incoming MIDI notes down an octave?

    Thank you Pete, that resolved the issue I was having! Very much appreciated. I erroneously thought I would need to have a MIDI start message to handle the setAccentPattern value. Unless you or anyone here can see where I'd run into problems, start message or not, the accent pattern is only...
  20. M

    Transpose / Offset incoming MIDI notes down an octave?

    No worries @oddson, I appreciate you supporting my mis-steps in trying to understand what is going on here. When I print message, it does appear to be firing but I dont think I need to have the setAccentPattern value attached to a start message as @el_supremo has offered the solution in #16
  21. M

    Transpose / Offset incoming MIDI notes down an octave?

    Are you referring to the note transposition? If so I've got that sorted in #7 Thanks! Moved on to another issue related to creating an accent pattern, also in #7 above.
  22. M

    Transpose / Offset incoming MIDI notes down an octave?

    Hmmmn... ok, I was thinking I wasn't using the proper call back and handler but unless I am mistaken, the correct start handler is there in set up? #include <Arduino.h> #include <MIDI.h> MIDI_CREATE_INSTANCE(HardwareSerial, Serial1, MIDI); byte velocityAdjust = 100; // min (0), default...
  23. M

    Transpose / Offset incoming MIDI notes down an octave?

    Hey and thanks for the reply @oddson and no you're not missing anything - absolutely correct on that portion. However, my goal is to have the byte setAccentPattern = 3; // add an accent step every x step (there are a total of 16 steps we're working with). be what determines the step so I can...
  24. M

    Transpose / Offset incoming MIDI notes down an octave?

    Ok @oddson, I have a working example now where the transpose offset now works as expected. thank you! In the process, I was experimenting and trying to add an accent pattern to the noteOn messages, where every X step gets a different velocity. I am not getting the expected results in the...
  25. M

    Transpose / Offset incoming MIDI notes down an octave?

    @kd5rxt-mark thanks for the tip - I hadn't thought about that method. I've got plenty to chew on and will report back when I have had a chance to muck around here. Thanks!
  26. M

    Transpose / Offset incoming MIDI notes down an octave?

    Ah yes! I forgot that thru is enabled by default - thank you! It appears that this may actually be in the works for the lib at some point? https://github.com/FortySevenEffects/arduino_midi_library/issues/40 Thanks again for the pointers in the direction I need to head. Will have a go here and...
  27. M

    Transpose / Offset incoming MIDI notes down an octave?

    Hi, I am using the following example to experiment with transposing incoming MIDI notes with a Teensy LC, using a hardware MIDI circuit: //Arduino for Musicians //Listing 5.8: MIDI Library input callback #include <MIDI.h> MIDI_CREATE_INSTANCE(HardwareSerial, Serial1, MIDI); const byte...
  28. M

    MIDI benchmark sketch compatible with Teensy LC?

    #if defined(ARDUINO_SAM_DUE) || defined(USBCON) || (__MKL26Z64__) || (__MK20DX256__)|| (__MK64FX512__) || (__MK66FX1M0__) Excellent - thank you! I just tested it and it worked with no issue.
  29. M

    MIDI benchmark sketch compatible with Teensy LC?

    Is it possible to use this MIDI benchmark sketch below with a Teensy LC? It does not currently include definitions for ARM boards but I do see this issue here where it looks like there needs to be a modification of the conditions: #if defined(SERIAL_PORT_USBVIRTUAL) || defined(ARDUINO_SAM_DUE)...
  30. M

    What USB and Port settings for Hardware MIDI on LC?

    Wonderful - I've got that sorted now - thank you! Again thank you for pointing me here - will take a look and report back when I have made some progress.
  31. M

    What USB and Port settings for Hardware MIDI on LC?

    I am not entirely sure but I re-did the breadboard several times. All the components (resistors, diode, opto) were all ok but I think it was something to have to do with ground. I forgot that the DIN connectors have two front metal pins that were also on the ground line. Perhaps that was the...
  32. M

    What USB and Port settings for Hardware MIDI on LC?

    I wanted to report back that the sparkfun MIDI sniffer sketch works flawlessly using both methods that Paul outlined above. Thanks to everyone who lent a helping hand! Now on to converting those MIDI clock ticks to BPM values and note #s to note name =)
  33. M

    What USB and Port settings for Hardware MIDI on LC?

    That is great to know that all 3 hardware serials could potentially be monitored with the caveats you mention on the LC. For now, I plan to use one hardware serial port with minimal message formatting so I should be good to go.
  34. M

    What USB and Port settings for Hardware MIDI on LC?

    Ok, fantastic, Paul! This is super helpful and thanks for all the clarification on the USB and port settings and pointers on how to utilize the sparkfun sketch I referenced with the Teensy LC. I will give it a try with and without the SoftwareSerial library to see how it performs.
  35. M

    What USB and Port settings for Hardware MIDI on LC?

    Thanks so much for looking over the breadboard. I took everything down and double checked the connections (reverse polarity, resistor values, wire continuity) so I think I am all set there now. The extra sets of eyes are always a help! Thanks for confirming the USB type as "serial". To...
  36. M

    What USB and Port settings for Hardware MIDI on LC?

    Is there anyone that can provide some insight here? Any help would be greatly appreciated.
  37. M

    What USB and Port settings for Hardware MIDI on LC?

    Hi forum admins - is there any way you can move my post to the audio forums? Perhaps I could receive some guidance there? Apologies if I posted in the wrong place...
  38. M

    What USB and Port settings for Hardware MIDI on LC?

    Using tutorial provided here (https://www.pjrc.com/teensy/td_libs_MIDI.html), I'm unable to receive hardware MIDI input from a hardware sequencer. Any guidance is greatly appreciated! I am a new coder and new to Teensy. Was successful with a MIDI monitor sketch using UNO and a different sketch...
Back
Top