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. For some reason I thought MIDI libraries are zero...

    For some reason I thought MIDI libraries are zero indexed for channel even though I must have known better as some point in the past. :confused:
  2. if (n5 != previousA4) { ...

    if (n5 != previousA4) {
    usbMIDI.sendControlChange(controllerA4, n5, 0);
    usbMIDI.sendControlChange(controllerA4, n5, 1);
    usbMIDI.sendControlChange(controllerA4, n5,...
  3. You are a bit light with symptoms of the problem....

    You are a bit light with symptoms of the problem. (From what I see the values should almost always be the same.)

    From the code the two values are not necessarily the same because you are reading...
  4. Replies
    15
    Views
    196

    I think the OMB might be using electrical...

    I think the OMB might be using electrical reflection timing looking for the earliest electrical reflection on each string but I can not see the a how-it-works section.

    Not sure how the per-string...
  5. Replies
    15
    Views
    196

    Yes... that's my point.. could you even play...

    Yes... that's my point.. could you even play mono-phonically in any usable way or would you need to adopt a very clean 'zero-barre' playing that would be very limiting?
  6. Replies
    15
    Views
    196

    Doesn't this require the player to avoid contacts...

    Doesn't this require the player to avoid contacts other than the one they are intending to make with one fret and one string?

    And if they do make a second contact won't the read voltage be...
  7. Replies
    6
    Views
    94

    You need a VERY low cutoff as you're effectively...

    You need a VERY low cutoff as you're effectively trying to get below any fundamental so the corner frequency needs to be 50Hz or lower (and maybe much lower) and that makes the attack pretty...
  8. Replies
    6
    Views
    94

    I haven't used the audio library much... so...

    I haven't used the audio library much... so hopefully I get this correct.

    Envelope effect is a generator not a detector/follower.

    The RMS or peak objects could be used or you can filter the...
  9. Replies
    11
    Views
    233

    All my usual 'not an EE' caveats; but as I...

    All my usual 'not an EE' caveats; but as I understand it the internal reference is optional way to measure when you are interested in the absolute voltage of a signal ...when you use it the range is...
  10. Replies
    11
    Views
    233

    I realized 'fixing in software' is was wrong...

    I realized 'fixing in software' is was wrong right after posting - if it's clipped it's gone and you have a dead zone on your pot you cannot map to anything.

    That said I'm still a bit sceptical. ...
  11. Replies
    11
    Views
    233

    What's wrong with powering a mux at 5v for a...

    What's wrong with powering a mux at 5v for a voltage divided signal. Where is the overvoltage risk coming from?

    I've had very little experience with mux but I didn't find a need to pad the...
  12. Replies
    4
    Views
    164

    You don't need it if you never need it. ...

    You don't need it if you never need it.

    Getting that wiring wrong on an out or thru circuit is really easy as it's not immediately clear which direction the wiring diagram is meant to show; face...
  13. Replies
    4
    Views
    164

    First, there is only one as the second is inside...

    First, there is only one as the second is inside the PC900. The inside one is a current switch on the internal buffer

    Second, that's schematic is specifically for T2.0 and are you really using...
  14. I'm not expert but I think 3.2 never quite got to...

    I'm not expert but I think 3.2 never quite got to a working host solution and I think 3.6 or 4 are the only viable options for hosting (without a shield).

    Hosting is not properly documented on the...
  15. Decidedly 'yes' in that both your Teensy and the...

    Decidedly 'yes' in that both your Teensy and the keyboard are likely set up as USB devices rather than hosts and with there needs to be one of each.

    Some Teensy can play USB host and in particular...
  16. Replies
    12
    Views
    311

    But in the Harp as controller you only need to...

    But in the Harp as controller you only need to detect sudden attack as a note event. Sympathetic resonance should have an onset too slow to mimic a pluck. The signal should have transient qualities...
  17. Replies
    12
    Views
    311

    For 'professional' version I'd think the piezo...

    For 'professional' version I'd think the piezo would be integrated into the eyelets on the soundboard. If the pedals are mostly 'digital' info (barring anything fancy like note-bending... is that a...
  18. If the first 1000 in the OP was meant to be 100...

    If the first 1000 in the OP was meant to be 100 that's a lot of load (33 mA by my oft faulty calculations) - I've heard 25 is the limit.

    So 500 Ohm or greater I think to be safe.
  19. I think that might work... you could just try...

    I think that might work... you could just try it...

    .... is it to turn off the current when you're not going to be reading it?
  20. Replies
    12
    Views
    311

    yeah... from audio you are unlikely to get the...

    yeah... from audio you are unlikely to get the results you are after. Polyphony would be somewhere between very tricky and nearly impossible.

    A MIDI harp with detectors on each string wouldn't be...
  21. Replies
    4
    Views
    173

    19299 A buffer from an op amp would make sense...

    19299
    A buffer from an op amp would make sense to me before the AD pin or the line in input.
  22. Replies
    34
    Views
    10,847

    I'm nearly certain the T2.0 would handle three...

    I'm nearly certain the T2.0 would handle three more outs.

    The challenge in extending this application isn't only from the coding but also from the analog circuit.

    This is fairly advanced...
  23. Replies
    14
    Views
    545

    By convention in Arduino (and Teensyduino) A6 is...

    By convention in Arduino (and Teensyduino) A6 is understood when '6' is called for analogRead... handy in control loops where a incremented variable can be used directly in the read.
  24. You can share a switch on two Teensies but it...

    You can share a switch on two Teensies but it might need an external pullup as I'm not sure how using one or both Teensies' internal pullups would work.

    A single Teensy could send regular (series...
  25. What do you mean by 'redundancy' in having two...

    What do you mean by 'redundancy' in having two USB ports?

    Any Teensy will work as a controller without needing a breakout board. Get one with soldered headers if you are new to electronics...
  26. Replies
    29
    Views
    1,008

    Arrays make multi channel things much easier. ...

    Arrays make multi channel things much easier.

    Your code does check-for-change after rounding 3 bits so it's likely stable unless the voltage is very near a rounding threshold at 7 bits.

    It...
  27. Replies
    29
    Views
    1,008

    Nice answer.... I suspect the midi code is a...

    Nice answer....

    I suspect the midi code is a problem too.

    Have you checked how much midi noise it's generating?

    I suspect there will be a lot of alternating and adjacent CC messages.
    ...
  28. Replies
    36
    Views
    981

    void peakDetect(int voltage) { static int...

    void peakDetect(int voltage) {
    static int state; // 0=idle, 1=looking for peak, 2=ignore aftershocks
    static int peak; // remember the highest reading
    static elapsedMillis msec; // timer...
  29. Replies
    36
    Views
    981

    Then it really should not be added to an existing...

    Then it really should not be added to an existing and crucial test.

    You should spit it off as I believe it will interfere with functionality when the counter is at max.


    pgcNum++
    if (pgcNum...
  30. Replies
    36
    Views
    981

    Well at some point there's bound to be a bit of...

    Well at some point there's bound to be a bit of debugging and some error is likely to be in my code too... (usually my code doesn't compile without a bunch tweaks and add-semi-colons).

    I could...
  31. Replies
    36
    Views
    981

    STOP! -- this is just wrong... the Mod0 and Mod1...

    STOP! -- this is just wrong... the Mod0 and Mod1 code will test every time the averaging section of the code is run...

    You really only want to fire stuff from exactly where it was in Paul's...
  32. Replies
    36
    Views
    981

    I've only picked up something like the default...

    I've only picked up something like the default style for C code and the object.model stuff from context... But as long as the eye can see what you mean it's ok.

    While the code I've posted should...
  33. Replies
    36
    Views
    981

    I haven't looked at the details yet but will...

    I haven't looked at the details yet but will mention it's hard to read without the indenting being done carefully to match the braces.

    Also, you shouldn't repeat code unnecessarily. The stuff...
  34. Replies
    36
    Views
    981

    You're in the default case ...where you would...

    You're in the default case ...where you would send note off if you are also sending note values under case 1.

    Case 1 is where the note event in Paul's method is sent. It's where you have...
  35. Replies
    36
    Views
    981

    I didn't notice your reply between mine... it...

    I didn't notice your reply between mine... it will be a while before I can have a look... I don't laugh at code... unless it's meant to be funny.
  36. Replies
    36
    Views
    981

    I'd say you switch inside his case instead as...

    I'd say you switch inside his case instead as there is only one spot where it matters.

    You don't wait to check the footswitches as they are always available whether you read them on every pass or...
  37. Replies
    36
    Views
    981

    Ignore the second message... that's for later....

    Ignore the second message... that's for later. Macros are good to understand when you read code but you don't need to use them.

    Do it in steps and use serial print to check on the state of...
  38. Replies
    36
    Views
    981

    Given this test is very infreqently run; you...

    Given this test is very infreqently run; you would do better to test the pin directly here.

    if (!digitalRead(0) && pgcNum < 127) ..,

    I think this is where a pro would define a macro to make the...
  39. Replies
    36
    Views
    981

    You're getting warmer. I think you are...

    You're getting warmer.

    I think you are generally very close.

    First, the falling edges return True or False on there own, you don't need to test them.

    Second, we don't want to test them as...
  40. Replies
    36
    Views
    981

    The line pgcNum < 127; reads True or False but...

    The line pgcNum < 127; reads True or False but does nothing... or if it does it's news to me.

    I assumed you were attempting to deal with incrementing beyond 127.
  41. Replies
    36
    Views
    981

    pgcNum < 127; pgcNum++; I don't think...

    pgcNum < 127;
    pgcNum++;
    I don't think this does what you want...
    https://www.cprogramming.com/tips/tip/increment-and-decrement-counters-with-rollover.

    I'm still not sure what you're up...
  42. Replies
    36
    Views
    981

    I'll need some time to decipher your code. Do...

    I'll need some time to decipher your code.

    Do you have proper signal protection on your Teensy input from the piezo?
  43. Replies
    36
    Views
    981

    RE:PM If the modifier switches are to be only...

    RE:PM

    If the modifier switches are to be only active while held then you don't need to debounce the signal for the modifier action.

    Within each loop set variables for the modifiers

    Mod1 =...
  44. Replies
    36
    Views
    981

    I meant to reply sooner. Do debounce anytime...

    I meant to reply sooner.

    Do debounce anytime you are taking action based on a change, that's what it's for.

    But if you are only testing the state of a pin in a conditional statement then you...
  45. Replies
    36
    Views
    981

    My bad... as usual I didn't read the original...

    My bad... as usual I didn't read the original post carefully and I thought you were looking for latching with momentarily switches.

    In my defence your original code does not scan for rising edges...
  46. Replies
    3
    Views
    140

    3.3v Even if fault tolerant you need the...

    3.3v

    Even if fault tolerant you need the voltage divider to have the same range as the pin.
  47. Replies
    36
    Views
    981

    I have examples on the forum... try 'toggle' and...

    I have examples on the forum... try 'toggle' and 'midi'



    You're really close now...

    One thing, I think you want to declare these outside the main loop

    int ledPin = 13;
    int btn0State =...
  48. Replies
    36
    Views
    981

    You need to store the 'state' and toggle it in...

    You need to store the 'state' and toggle it in your code...
  49. Doesn't appear to be a code problem (I did not...

    Doesn't appear to be a code problem (I did not compile).


    Try much higher bounce times and see if it's better.

    If that fixes it try slightly higher than 5 until it's stable.

    If it doesn't...
  50. Replies
    6
    Views
    316

    So the bug is the set command is not setting...

    So the bug is the set command is not setting Teensy3Clock?
Results 1 to 50 of 500
Page 1 of 10 1 2 3 4