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
    1
    Views
    24

    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?
  2. Replies
    5
    Views
    93

    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
  3. Replies
    2
    Views
    38

    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
  4. 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.
  5. Replies
    34
    Views
    682

    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...
  6. 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...
  7. Replies
    34
    Views
    682

    You dont.... button part is in previous post. ...

    You dont.... button part is in previous post.

    Connect digital pins to ground via momentary switches..
  8. Replies
    34
    Views
    682

    My bad. For incrementally adding analog, you can...

    My bad. For incrementally adding analog, you can just change the value here to an explicit:

    for (int i=0;i<A_PINS;i++){

    Just replace A_PINS with 1 to 8.
  9. Replies
    34
    Views
    682

    Buttons can be active even if not connected as...

    Buttons can be active even if not connected as they work by pulling the signal low while an internal pullup resistor, activated in the setup, otherwise keeps the signal high; even if nothing is...
  10. Replies
    34
    Views
    682

    const int A_PINS = 1; // number of Analog PINS ...

    const int A_PINS = 1; // number of Analog PINS

    Set the number of Analog pins to 1 and connect to A0 to test with one pot. Add each pot to A1, A2 etc. and increment the A_PINS with each added pot.
  11. Replies
    34
    Views
    682

    So you left all the other pins floating and...

    So you left all the other pins floating and that's why you are getting garbage.

    Any PIN active in the code needs to be tied to a stable voltage. You can ground unused ones during testing or...
  12. Replies
    34
    Views
    682

    This data shows you STILL do not have the Teensy...

    This data shows you STILL do not have the Teensy connected to a stable voltage on multiple pins.
  13. Replies
    34
    Views
    682

    If the board is not connected than it is going to...

    If the board is not connected than it is going to generate garbage.

    Any pin being read must have a stable voltage. The digital pins are pulled up to VCC by the code but not the analog ones so the...
  14. Replies
    34
    Views
    682

    Those are what needed to be added to the example...

    Those are what needed to be added to the example code.

    You can change the pins you are using or the CC values the code sends in the array definitions at the top of the file.

    You should expect...
  15. Replies
    34
    Views
    682

    Either you have a bad connection on A0 and A2 or...

    Either you have a bad connection on A0 and A2 or there is something very noisy happening with your build (or both).

    The example code will work much better with noise.

    The CC numbers tell you...
  16. Replies
    34
    Views
    682

    Increasing threshold should fix it. You may...

    Increasing threshold should fix it.

    You may still want to switch to the example code.


    One thing, the example code sends note events and not CC values with the buttons. This can be changed...
  17. Replies
    34
    Views
    682

    Oops misread your reply... deleted

    Oops misread your reply... deleted
  18. Replies
    34
    Views
    682

    ...it's possible you have everything correct but...

    ...it's possible you have everything correct but the signals on A0 to A3 are noisier that those on A4 to A7.

    Increasing the threshold value can get rid of this but too high and it becomes hard to...
  19. Replies
    34
    Views
    682

    ...didn't notice your clip.... Looks like A0...

    ...didn't notice your clip....


    Looks like A0 to A3 are floating...

    This code only works by connecting starting from A0.
  20. Replies
    34
    Views
    682

    Almost certainly one or more analog pin read by...

    Almost certainly one or more analog pin read by the code is floating (i.e. not attached to a voltage source or ground).

    Floating pins generate noise that generates MIDI garbage.

    Do you have...
  21. Thread: Midi 2.0

    by oddson
    Replies
    20
    Views
    972

    There appear to be some 'new' details available...

    There appear to be some 'new' details available about 2.0 (despite "articles-old" in the URL some content appears to be very recent).

    While there is no full release, it gives some description of...
  22. Thread: Teensy 2.0 midi

    by oddson
    Replies
    2
    Views
    89

    That example is very basic and is set to only...

    That example is very basic and is set to only update every 20 milliseconds.

    The Many_Button_Knobs is more usable. It can be configured for one pot (or use it for one for each channel to answer...
  23. Replies
    57
    Views
    1,074

    Please tell us what instrument this is for. ...

    Please tell us what instrument this is for.

    You've said organ/keyboard, Yamaha, 14 note polyphony, analog with digital control and it's pre-MIDI so old. So curious it's killing me.
  24. Replies
    2
    Views
    83

    You're printing two values but only one comma...

    You're printing two values but only one comma with each loop.
  25. Software processing the analog readings with...

    Software processing the analog readings with something like ResponsiveAnalogRead library to smooth out signal noise may work better with the additional power. (A simple DIY deadband-hysteresis...
  26. Replies
    57
    Views
    1,074

    What model is this for?

    What model is this for?
  27. I once wrote an extension to Paul's single-piezo...

    I once wrote an extension to Paul's single-piezo example code for someone....

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

    I never tested it but others...
  28. I've rarely needed to press the button on a...

    I've rarely needed to press the button on a Teensy. It will normally accept a new sketch without it.

    Arduino and Teensyduino sketches use .ino

    It's already in an enclosure? What is connected to...
  29. You could do the mod wheel thing... A Teensy LC...

    You could do the mod wheel thing... A Teensy LC can support 10 continuous controllers without additional parts.

    But you should be able to program a button box to send whatever MIDI you need to at...
  30. Replies
    3
    Views
    174

    Why are you connecting to the Teensy if you have...

    Why are you connecting to the Teensy if you have an audio board?

    Use a line out and ground from the audio connector pins from the audio board.
  31. Replies
    7
    Views
    184

    1) Standard MIDI is three bytes. The status...

    1) Standard MIDI is three bytes.
    The status byte, which tells the type and channel, as well as two data bytes. For CC messages D1 is the CC number and D2 is the value.
    2) in general D1 is the...
  32. Replies
    3
    Views
    231

    Even thought the smoothing code isn't great in...

    Even thought the smoothing code isn't great in that old sketch it should be enough to eliminate chatter from pot noise if you build carefully and there are no long wire runs.

    (Make sure you don't...
  33. Replies
    3
    Views
    242

    16497 Here's an external switch box schematic...

    16497
    Here's an external switch box schematic that shows one way to switch audio with a contact latch switch.

    Teensy could pull the the BJT base low instead of the footswitch doing it directly;...
  34. Replies
    3
    Views
    242

    If the effects box's pedal outputs work with...

    If the effects box's pedal outputs work with conventional amps as a channel selector then why bother with a microcontroller?


    If you want to add MIDI functionality to the amp, Teensy can do that...
  35. Excuse if this is way off base... but if you're...

    Excuse if this is way off base... but if you're not processing the MIDI messages in any way that alters them; what about controlling a MUX with at Teensy to physically route signals?

    Does anyone...
  36. ...err...this is not quite right as that's the...

    ...err...this is not quite right as that's the quarter frame handler.... I'm getting rusty with MIDI.....

    From midi.h

    setHandleClock()

    Since it returns void it must be the one-byte,...
  37. I wasn't aware of this but real time MIDI...

    I wasn't aware of this but real time MIDI messages don't have separate handles in usbMIDI but do in regular MIDI library.

    Try setHandleTimeCodeQuarterFrame()
    ...
  38. Thread: Midi 2.0

    by oddson
    Replies
    20
    Views
    972

    Pretty 'on topic' for spam placeholders. Kudos.

    Pretty 'on topic' for spam placeholders. Kudos.
  39. Thread: Midi 2.0

    by oddson
    Replies
    20
    Views
    972

    Did I miss something? ....oh.... same ip......

    Did I miss something?

    ....oh.... same ip... does it belong to Midi.org?
  40. Thread: Midi 2.0

    by oddson
    Replies
    20
    Views
    972

    They just agreed on the polarity for Rx/Tx over...

    They just agreed on the polarity for Rx/Tx over TRS... unrelated to the protocol and applies to MIDI 1.0 as well. Was decided before 2.0 and is lumped in just as marketing.
    ...
  41. I'm happy to help if you need it... subject to...

    I'm happy to help if you need it... subject to limited availability ATM.

    The idea is there is a matrix of note values and they are looked up by the current value of the indicator variable 'i'...
  42. CCID and note arrays can be extended to two...

    CCID and note arrays can be extended to two dimensions with a dimension for the bank...

    https://forum.pjrc.com/threads/43263-How-to-change-midi-notes-using-buttons-(usb-midi)
  43. E.g. you can use the settling time to do any...

    E.g. you can use the settling time to do any required filtering before reading rather than just adding delay.

    Consider that nearly all the signals will be dormant and many would be infrequently...
  44. You need to solder the pins.

    You need to solder the pins.
  45. Nothing 'wrong' that I can see in how you're...

    Nothing 'wrong' that I can see in how you're going about it.

    Does moving the wiper make any difference in the 'random' output?

    Have you tried another pot?

    Pins 14 and 15, correct? Because...
  46. Self clearance sounds like too much trouble... if...

    Self clearance sounds like too much trouble... if your time is worth anything to you.

    https://borderbee.com/2014/01/13/how-to-self-clear-your-parcel-with-customs/
    Note the UPS document image.
    ...
  47. Replies
    50
    Views
    1,363

    ...sorry. missed this.

    ...sorry. missed this.
  48. Replies
    50
    Views
    1,363

    It's a DSP modelling amp that has a number of...

    It's a DSP modelling amp that has a number of parameters available via a Windows/MacOS app that turned out to use sysex to communicate with the device so third parties reverse engineered the messages...
  49. Thread: Midi 2.0

    by oddson
    Replies
    20
    Views
    972

    I can't find anything on the new protocol...

    I can't find anything on the new protocol details... just the capability inquiry sysex additions.

    Lots of promise but is it ready?
  50. I have a habit of missing key details.... after...

    I have a habit of missing key details.... after reading more carefully it sounds like it has nothing to do with the code or the build so I'll shut up now.
Results 1 to 50 of 500
Page 1 of 10 1 2 3 4