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.01 seconds.

  1. Replies
    11
    Views
    281

    I guess the DAC object in the audio library needs...

    I guess the DAC object in the audio library needs to be updated.

    I didn't follow the 4k of posts so I'll shut up now.

    Edit... might have been ADCs I'm remembering...
  2. Replies
    11
    Views
    281

    I believe it can be used, but maybe not yet? ...

    I believe it can be used, but maybe not yet?

    But acording to Paul somewhere the DAC is only good for about 10 bits above its noise floor.
  3. Replies
    6
    Views
    165

    Ccrma/~jos is pretty clear and concise. But not...

    Ccrma/~jos is pretty clear and concise. But not too much hand holding.

    Know your analog theory too.

    Nice list Andrew, thanks for that.
  4. Replies
    13
    Views
    147

    I disagree. If a thread goes too far off course...

    I disagree. If a thread goes too far off course from the initial enquiry the work you do on it becomes too specific to be useful to anyone but the OP.

    Here, someone might reasonably stumble upon...
  5. Replies
    13
    Views
    147

    #include // the MIDI channel number...

    #include <Bounce.h>

    // the MIDI channel number to send messages
    const int channel = 1;

    Bounce button0 = Bounce(0, 5);
    Bounce button1 = Bounce(1, 5);
    Bounce button2 = Bounce(2, 5);

    byte...
  6. Replies
    13
    Views
    147

    Didn't you copy and paste? Maybe that's good....

    Didn't you copy and paste?

    Maybe that's good. But you missed altering these:

    current_value_1

    in the .sendControlChange message calls.
  7. Replies
    13
    Views
    147

    #include // the MIDI channel number...

    #include <Bounce.h>

    // the MIDI channel number to send messages
    const int channel = 1;

    Bounce button0 = Bounce(0, 5);
    Bounce button1 = Bounce(1, 5);
    Bounce button2 = Bounce(2, 5);

    byte...
  8. Replies
    2
    Views
    102

    It does sound like too much midi being sent is...

    It does sound like too much midi being sent is overflowing the event buffer. Is there nothing in your code to limit the density of adjustment messages?

    I'm not clear on the 'window debugger'...
  9. You don't need MIDI, but a piezo to midi sketch...

    You don't need MIDI, but a piezo to midi sketch is a good place to start.

    Paul gives example code for a single piezo trigger....
  10. Thread: midi controller

    by oddson
    Replies
    68
    Views
    1,074

    If I add pots to that code it will do what my...

    If I add pots to that code it will do what my original example code already does.

    My code at post 55 should work when configured. Unless I still don't understand chains and controlling with CC...
  11. Thread: midi controller

    by oddson
    Replies
    68
    Views
    1,074

    //************LOOP************** void loop() { ...

    //************LOOP**************
    void loop() {
    // getAnalogData(); // commented out to avoid garbage MIDI until you are ready with the analog voltage dividers
    getDigitalData();
    while...
  12. Thread: midi controller

    by oddson
    Replies
    68
    Views
    1,074

    You have to configure it... and you're going to...

    You have to configure it... and you're going to have to start trying to read the code.

    Forget the lights for now.

    My code should let you configure any number of pins to send any arbitrary CC...
  13. Thread: midi controller

    by oddson
    Replies
    68
    Views
    1,074

    /* bespoke code example By Leif Oddson ...

    /* bespoke code example

    By Leif Oddson
    https://forum.pjrc.com/threads/56935-midi-controller


    */


    //************LIBRARIES USED**************
  14. Thread: midi controller

    by oddson
    Replies
    68
    Views
    1,074

    So each and every button sends a CC number and...

    So each and every button sends a CC number and value, always the same and only on press and not on release?

    So not latching and not ON when pressed and OFF when released. All buttons. Correct?
  15. Thread: midi controller

    by oddson
    Replies
    68
    Views
    1,074

    I finally get what the chain selector is after a...

    I finally get what the chain selector is after a quick search.

    What you need is another array that holds what value is sent with the CC message instead of just off and on.

    Then you can...
  16. Thread: midi controller

    by oddson
    Replies
    68
    Views
    1,074

    Try replacing both sendNoteOn and sendNoteOff...

    Try replacing both sendNoteOn and sendNoteOff with sendControlChange
  17. Thread: midi controller

    by oddson
    Replies
    68
    Views
    1,074

    Is it a radio button...

    Is it a radio button effect?

    What are you trying to show with the ableton screenies?
  18. Thread: midi controller

    by oddson
    Replies
    68
    Views
    1,074

    I'm on a tablet and no compiler available ATM. ...

    I'm on a tablet and no compiler available ATM.

    I'll have a look next time I am but no promises as to when.
  19. Thread: midi controller

    by oddson
    Replies
    68
    Views
    1,074

    For latching code. The main addition is an...

    For latching code.

    The main addition is an array to track the state of the button so you can send the oposite message on the next push.

    Then you just listen for the falling edge only as you are...
  20. Thread: midi controller

    by oddson
    Replies
    68
    Views
    1,074

    Do you want latching (first press is ON next is...

    Do you want latching (first press is ON next is OFF)?

    It's a bit of a complication but changing to control change is otherwise just swapping note on and off calls with CC call like those in the...
  21. Thread: midi controller

    by oddson
    Replies
    68
    Views
    1,074

    If you could write a concise description of the...

    If you could write a concise description of the type of controls and the desired behavior, I'm sure I can point you in the right direction. It's too difficult to extract your goal from scattered...
  22. Thread: midi controller

    by oddson
    Replies
    68
    Views
    1,074

    Er... what I mean is; just tie any pins not set...

    Er... what I mean is; just tie any pins not set to a functioning wiper to ground.

    Any tied to ground should stay quite for MIDI out.
  23. Thread: midi controller

    by oddson
    Replies
    68
    Views
    1,074

    A quick look shows nothing but I'm terrible at...

    A quick look shows nothing but I'm terrible at seeing error. A [ /code] would help for readability

    The compiler will almost certainly have objection to the syntax (unless you have been very...
  24. Could Thru be on and its repeating the input. ...

    Could Thru be on and its repeating the input.

    Line 667 of file MIDI.hpp. shows thru is called at read. Maybe it's resetting the pin's state even when a Thru is off??

    If you comment that out you...
  25. Thread: midi controller

    by oddson
    Replies
    68
    Views
    1,074

    Floating means not electrically connected to the...

    Floating means not electrically connected to the circuit via any low impedance path (wire, solder, copper trace).

    Configured Pins are those you set up as inputs when your program first loads.
    The...
  26. Thread: midi controller

    by oddson
    Replies
    68
    Views
    1,074

    If you run Many_button_knobs with floating...

    If you run Many_button_knobs with floating configured pins it will send enough garbage midi to crash your DAW.
  27. Thread: midi controller

    by oddson
    Replies
    68
    Views
    1,074

    Go ask on GitHub? He does reply but not right...

    Go ask on GitHub?

    He does reply but not right away.
  28. Thread: midi controller

    by oddson
    Replies
    68
    Views
    1,074

    Author supports the product on GitHub. I wouldn't...

    Author supports the product on GitHub. I wouldn't say it's not recommended but I'm not sure what it brings you can't do without it just as easily.
    ...
  29. Yeah but you can buy quite a few Teensy LC for...

    Yeah but you can buy quite a few Teensy LC for what a few hours of salary cost.

    What about a MUX based thing that switches data lines to different physical USB A connectors. If when not active...
  30. Then use separate power. I finally read the...

    Then use separate power.

    I finally read the diode thread... they are there because of the pull-up voltages.*

    With voltage dividers the issue is the hot rail*

    If you power the voltage...
  31. ...also... my PC maintains power to USB when...

    ...also... my PC maintains power to USB when frozen and even when off.
  32. Then you need to have a redundant power supply...

    Then you need to have a redundant power supply that powers both teensy if either has 5v.

    Otherwise I can't see how you power the voltage dividers.

    You can't use regular MIDI? Seems to me you...
  33. Consider connecting inputs only to one Teensy and...

    Consider connecting inputs only to one Teensy and using Tx on it to send MIDI as send data to the Rx of the other as a MIDI THRU port.

    They'd have to share common ground so I think you'd want to...
  34. How have you established it will not respond to...

    How have you established it will not respond to valid sysex commands?

    I don't know about you but I NEVER send good sysex on the first try. And this thing has four model# bytes and a bunch of...
  35. Replies
    11
    Views
    298

    ....I should mention that, years ago, Teensy was...

    ....I should mention that, years ago, Teensy was the only way to do USB MIDI without fairly onerous kludges needed to get around how the device appears to the host for programing vs in operation....
  36. Does this mean you're sorted?

    Does this mean you're sorted?
  37. Apparently Boss pedals are not usb midi compliant...

    Apparently Boss pedals are not usb midi compliant but Paul is open to addressing incompatibilities.

    https://forum.pjrc.com/threads/55635-One-Midi-Device-not-working-with-the-USBHost_t36-library
  38. Replies
    11
    Views
    298

    it works, and doesn't need a flush or prepacked...

    it works, and doesn't need a flush or prepacked variables.

    Separete bank selectors would be slightly easier but you should be able to use the pad if you want.
  39. Replies
    11
    Views
    298

    You can retain the single loop structure if you...

    You can retain the single loop structure if you have two paths within the loop, one if 'i' represents an event button and another if it is a modifier.

    Then set modifier variables when not an...
  40. Replies
    11
    Views
    298

    Do you mean an option selector that is only...

    Do you mean an option selector that is only active while held... like a shift key?

    Search MIDI and BANK together for examples. Thay mostly use a variable to store the selected bank states but...
  41. Edit.... nevermind....I think I'm off track... ...

    Edit.... nevermind....I think I'm off track...

    Topmost row of page 4 indicates minimum supply is 3 volts.

    But the performance may be poor given the data provided about higher voltages.
  42. https://www.pjrc.com/teensy/td_libs_Bounce.html...

    https://www.pjrc.com/teensy/td_libs_Bounce.html
    https://www.pjrc.com/teensy/td_keyboard.html

    ...and if you need to handle timing issues.......
  43. Replies
    5
    Views
    191

    I believe CLOCK is upper case. Edit.... not...

    I believe CLOCK is upper case.

    Edit.... not sure if it us in MIDI? I see examples on Ardunio forum with lowercase.

    Edit 2... on my tablet so I can't check, but the library defs seem to say it's...
  44. Replies
    11
    Views
    298

    That's actually the same fatal error plus some...

    That's actually the same fatal error plus some new warnings.

    You don't need an external MIDI controller library (and you won't really find support for them here as none of the regulars use them). ...
  45. Replies
    2
    Views
    125

    The Rule is full code for a reason.... But if...

    The Rule is full code for a reason....

    But if the debug is firing I can't see that the send CC wouldn't also. So how are you confirming no CC is being sent?
  46. Replies
    5
    Views
    310

    This has come up before. Here is a post with some...

    This has come up before. Here is a post with some partially tested code.

    https://forum.pjrc.com/threads/49815-piezo-velocity?p=169389&viewfull=1#post169389
  47. Replies
    2
    Views
    112

    Instructions are at the bottom of the USB MIDI...

    Instructions are at the bottom of the USB MIDI page

    https://www.pjrc.com/teensy/td_midi.html
  48. Yes... the analog needs it too; even more so as...

    Yes... the analog needs it too; even more so as it needs an accurate reading and not just to cross a threshold.
  49. Replies
    34
    Views
    964

    Switches do not have power connected. They...

    Switches do not have power connected.


    They are connected to ground on one side and the data pin on the other.

    https://www.pjrc.com/teensy/td_digital.html

    If your red wire is ground and the...
  50. It might not be you. It's possible Teensy is...

    It might not be you.

    It's possible Teensy is running the code too fast for signals to stabilize after the mux is set.

    You could try a 5 microseconds delay between lines 7 and 8 of the analog...
Results 1 to 50 of 500
Page 1 of 10 1 2 3 4