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

Search:

Type: Posts; User: oddson

Page 1 of 10 1 2 3 4

Search: Search took 0.02 seconds.

  1. So what did you want with the clock? -- you'll...

    So what did you want with the clock? -- you'll need an override on the clock flash from the first TAP fallingEdge until after the second TAP is sent and for some delay time if the bank threshold is...
  2. for (int i = 0; i < D_PINS ; i++){ ...

    for (int i = 0; i < D_PINS ; i++){
    digitalWrite(GREEN_LED_PINS[i], !state[bank][i]);
    digitalWrite(RED_LED_PINS[i], state[bank][i]);
    }

    Add this before flashcount = bank + 1;

    The negation...
  3. ok .. I'll need to think of to update states on...

    ok
    .. I'll need to think of to update states on bank change
  4. oops. broke D2 on the other pins... ...

    oops. broke D2 on the other pins...



    //************DIGITAL SECTION**************
    void getDigitalData(){
    for (int i=0;i<D_PINS;i++){
    digital[i].update();
    if...
  5. Try this code buy check the pin and CC values...

    Try this code buy check the pin and CC values first.

    //************LIBRARIES USED**************
    // 'include the Bounce library for 'de-bouncing' switches -- removing electrical chatter as...
  6. Ummm... I think I just forgot to make the arrays...

    Ummm... I think I just forgot to make the arrays two-dimensional. The same logic that works for which button states is which should work for banks too.


    That is how it was working for me. Does...
  7. I likely haven't thought it through... but I...

    I likely haven't thought it through... but I thought you connect a sink or source to the common side and switch the mux connections when needed.

    ...don't bother to explain if this is nonsense. I...
  8. If you are looking to stay with a mux here's a...

    If you are looking to stay with a mux here's a latching example. http://www.ti.com/product/CD74HC4351
  9. I did have the PINs configured for my test rig...

    I did have the PINs configured for my test rig but it looks like I put them back to how I thought yours are working but I don't know where you put the mode switch or it's LED.

    Can you share the...
  10. //************LIBRARIES USED************** //...

    //************LIBRARIES USED**************
    // 'include the Bounce library for 'de-bouncing' switches -- removing electrical chatter as contacts settle'
    #include <Bounce.h>
    //'usbMIDI.h library is...
  11. Replies
    13
    Views
    154

    That's fairly slick... I haven't been using...

    That's fairly slick...

    I haven't been using structures with Teensyduino but seeing how easy it looks I think I might start.



    @OP
    The delay(5); is likely keeping this code fairly stable in...
  12. Yeah well I think I'd have been more surprised if...

    Yeah well I think I'd have been more surprised if it had worked. The switch logic is really all that can be wrong. Once we can set bank value then the rest will work as before... The taps we'll sort...
  13. Got a chance to compile the code changes I wrote...

    Got a chance to compile the code changes I wrote -- yikes I really need to compile as I go.

    There's two major mistakes just in the matrix declaration I quoted above...

    You can try this if you...
  14. If the TAP CC message can be sent on every...

    If the TAP CC message can be sent on every downstroke and it can be the same D2 value (doesn't need off and on values) then the code should be fairly simple.
    Here's an untested bit of code I'll be...
  15. Replies
    6
    Views
    142

    Any chance you have connectors 4 and 5 switched...

    Any chance you have connectors 4 and 5 switched at the DIN connector?

    There is always some ambiguity in sorting out if the connector is shown from the face or connection side.
  16. Replies
    7
    Views
    130

    This would be ideal. Reading a few bytes of sysex...

    This would be ideal. Reading a few bytes of sysex and storing it in eeprom is not difficult.

    I did it years ago......
  17. Here's a thing.... send no CC at tap 1 and send...

    Here's a thing.... send no CC at tap 1 and send cc at implied location of tap three based on the interval between one and two.....

    But, as you've alluded, what to do if there is a third tap as...
  18. If you want a CC sent exactly when you detect the...

    If you want a CC sent exactly when you detect the first fallingEdge you have to be OK with it being sent when it turns out your user is just trying to scroll through banks.

    So when you're changing...
  19. Ah... well that's outside this thread topic isn't...

    Ah... well that's outside this thread topic isn't it ;)

    The logic isn't all that hard. If there is a risingEdge within x milliseconds after the fallingEdge change the mode (recall with...
  20. This sound's like I have the HIGH/LOW backwards...

    This sound's like I have the HIGH/LOW backwards as I thought I might. Try this:

    digitalWrite(RED_LED_PINS[i], state[i]);
    digitalWrite(GREEN_LED_PINS[i], !state[i]);

    The...
  21. Forgot to switch the LEDs with the toggle... ...

    Forgot to switch the LEDs with the toggle...

    Something like this



    //************DIGITAL SECTION**************
    void getDigitalData(){
    for (int i=0;i<D_PINS;i++){
    ...
  22. I don't imagine the LED thing is a problem but is...

    I don't imagine the LED thing is a problem but is worth a note in the code so anyone working on the code down the road understands why.

    Have you tried the code with state[i] = !state[i] ; active...
  23. To have it read changes from software but not be...

    To have it read changes from software but not be dependant on feedback otherwise we just need to leave the toggle code active but still allow the state to be set in the onControlChange().


    I...
  24. I assumed you have MIDI feedback available and...

    I assumed you have MIDI feedback available and active in your software.

    But I think I see how it should work if feedback is not running... but I have to work now...
  25. Well its all based on the assumption that the daw...

    Well its all based on the assumption that the daw sends back confirmation... the whole point of not just letting the switch state determine off and on.

    But it could be I've messed up the logic on...
  26. Tested with a ground wire on pins 0 to 3 and the...

    Tested with a ground wire on pins 0 to 3 and the toggle worked with the negated assignment uncommented (and missing semicolon added and single equal sign changed to assignment double).

    Don't have...
  27. The LEDs are at least in part from failing to put...

    The LEDs are at least in part from failing to put the pins in output mode.

    It was optimistic to think it would be close but it was in part to make it easier to get at from a machine I can get...
  28. Replies
    29
    Views
    413

    If it's only a problem when the output from the...

    If it's only a problem when the output from the guitar is "quiet" and the noise source is from the ADC then one could use an envelop follower from the input level and gate the signal when quiet.
    ...
  29. Here's the bit you need to comment out if the DAW...

    Here's the bit you need to comment out if the DAW thing doesn't work to set the toggle state.


    // usbMIDI.setHandleControlChange(OnControlChange)

    Alternately you can leave the handler run...
  30. //************LIBRARIES USED************** //...

    //************LIBRARIES USED**************
    // 'include the Bounce library for 'de-bouncing' switches -- removing electrical chatter as contacts settle'
    #include <Bounce.h>
    //'usbMIDI.h library...
  31. Some latching footswitches don't sit as high when...

    Some latching footswitches don't sit as high when latched and releasing it feels different from setting it.

    Personally I would make the DAW listen to the switch instead. If the switch is on, set...
  32. Let's not talk about any of your code as I...

    Let's not talk about any of your code as I believe you have made a fundamental error in understanding what it's doing.

    It is clear to me you have not understood how it works and have muddled a...
  33. I don't think there is any point in me trying to...

    I don't think there is any point in me trying to understand your code as I'm pretty sure you don't. I think you're not getting how his timing system is meant to work.

    Did you have something...
  34. That FSR code is using the main loop speed as a...

    That FSR code is using the main loop speed as a timing feature.

    Polling for elapsed time is preferred.

    Also I think some of your changes may be obscuring how this is supposed to work.

    Can...
  35. That modified code was to implement toggle...

    That modified code was to implement toggle behaviour with momentary switches.

    If you have toggle switches the stock many-button-and-knobs sketch should work by just replacing the note on/off...
  36. So are you committed to the latching switches? ...

    So are you committed to the latching switches?

    Regardless the LED/DAW feedback feature (assuming your DAW is echoing back the received CC messages??) should be easy to convert to arrays and to...
  37. Has anyone done this? How much damage?

    Has anyone done this?

    How much damage?
  38. You might want to ignore the LEDs at first and...

    You might want to ignore the LEDs at first and when you go to add them perhaps you will want to use arrays since you have them for other elements of your sketch.

    Usually one would use momentary...
  39. Replies
    14
    Views
    148

    Begs the question as to why Windows can't support...

    Begs the question as to why Windows can't support this with its 'universal' diver. Doesn't it??
  40. Replies
    14
    Views
    148

    A registered trademark for a 'universal' driver...

    A registered trademark for a 'universal' driver for only their stuff?
  41. Replies
    14
    Views
    148

    Yeah, so I am hoping for an example to look into...

    Yeah, so I am hoping for an example to look into it a bit more.
  42. Replies
    14
    Views
    148

    @OP - do you know of a controller that does work...

    @OP - do you know of a controller that does work as a 'multi-client' device?
  43. Replies
    14
    Views
    148

    Have I missed something? What is a multi-client?...

    Have I missed something? What is a multi-client?

    edit - answer appears to be 'yes'
    https://users.cognitone.com/wiki/list-multi-client-audio-midi-drivers-windows...
  44. Some/most of the circuits have an op amp post...

    Some/most of the circuits have an op amp post divider as the impedance is very high when little or no pressure is applied.

    Given that you can use 3.3 volt as VCC on a rail-to-rail op amp and it...
  45. https://www.sparkfun.com/datasheets/Sensors/Pressu...

    https://www.sparkfun.com/datasheets/Sensors/Pressure/fsrguide.pdf

    Final pages show interface circuits.

    If you go with a higher upper voltage make sure you limit the output or use a 5v tolerant...
  46. Looks like the pulldown resistor is usually...

    Looks like the pulldown resistor is usually omitted and a 1 kOhm limits the signal current. Lots of examples with BJT transistors on 12 volt rails.

    The pulldown isn't required if you use the...
  47. You don't need 5v as you do need to power the...

    You don't need 5v as you do need to power the solenoid with a much higher voltage anyway and at a very high current as it starts to move so you need to sink the curent though a FET transister as a...
  48. Replies
    14
    Views
    1,092

    They have to be packed and tagged with a...

    They have to be packed and tagged with a timecode.... don't they?
  49. Replies
    14
    Views
    1,092

    I believe it's the same as BLE MIDI. The specs...

    I believe it's the same as BLE MIDI. The specs are off line ATM.

    https://www.midi.org/specifications-old/category/transport-specifications-and-info
  50. That's not really a Teensy question. Logic seems...

    That's not really a Teensy question. Logic seems to have automated control surface mapping features etc. that work by recognizing the ID values of the USB controller. A Teensy running as a MIDI...
Results 1 to 50 of 500
Page 1 of 10 1 2 3 4