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. You are trying to fire off two MIDI messages on...

    You are trying to fire off two MIDI messages on every loop and you will eventually crash the event que on the receiving machine (at least if its Windows and I believe Mac too).

    The serial calls...
  2. Btw... This is an ancient thread and you don't...

    Btw... This is an ancient thread and you don't seem to be asking about CV for modular synths which I take to be the original topic.

    But six buttons should be fairly simple.

    A DIN output is...
  3. That post covers how to initialize the bounce and...

    That post covers how to initialize the bounce and ResponsiveAnalogRead object. It's multiplex code uses a delay immediately after setting the mux controls to give the signal time to stabilize after...
  4. You need separate bounce items because you will...

    You need separate bounce items because you will get different readings between each switch and you would mistake those for a bouncing switch....

    So you need multiple objects with the same pin...
  5. My engineer's hat is blue and white striped and...

    My engineer's hat is blue and white striped and has a brim and a puffy top.. choo woooo…

    But even I know the ground belongs on the sleeve (even if I don't know how to spell it).

    ...Re: on one...
  6. I could not find a semantic for it online and...

    I could not find a semantic for it online and mine is elsewhere but I recall the ground is the sleave in both.

    An ohm reading across the tip and sleave while you move the pedal will tell you if ts...
  7. Sundry observations... not an EE and prone to...

    Sundry observations... not an EE and prone to blunders so I may have any number of things wrong here.

    The m audio issue is likely due to the wiring not being a simple cross of Vcc and GND. I...
  8. Until someone that understands the arcane details...

    Until someone that understands the arcane details posts the full answer; i believe it relates to the device name string, the vender ID and product ID settings.

    See "Customizing the MIDI Name" near...
  9. Replies
    31
    Views
    9,901

    Analog portamento is typically a lowpass filter...

    Analog portamento is typically a lowpass filter (with a very low cutoff) or slew limiter to retard the voltage shift on note changes.

    It can be done fairly easly in either digital or analog...
  10. just scanned this.... don't know why the...

    just scanned this.... don't know why the arithmetic didn't jump out.

    Edit.... was going to ask where F_BUS rates are listed but I get what Paul is saying now.
  11. Umm... if it's four times faster, why divide by...

    Umm... if it's four times faster, why divide by three?
  12. https://www.pjrc.com/teensy/td_libs_FreqMeasure.ht...

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

    The raw value is the number of cpu clock cycles per signal period that must be converted to Hz.

    FreqMeasure.countToFrequency(count);
  13. The analog section of my original midi project ...

    The analog section of my original midi project uses a mostly usable moving deadband hysteresis system

    //************ANALOG SECTION**************
    void getAnalogData(){
    v0 = analogRead(0);
    ...
  14. If you leave the pot near a threshold between two...

    If you leave the pot near a threshold between two rounding points in the 12 bit data then even modest noise will cause alternation between two midi values.

    A better approach is to write the raw...
  15. Your variable names puzzle me, is it on A10 or...

    Your variable names puzzle me, is it on A10 or A1? Do you care in the code?

    Other than that it's passable MIDI code well written by my amature standards. You may occasionally find your code still...
  16. I'm not sure it's a bad idea;. I'm not qualified...

    I'm not sure it's a bad idea;. I'm not qualified to say either way.

    With a serial-register based IC I think you track the state of your leds with bit logic and write the full register at some...
  17. The HC version works at 3.3v I used this...

    The HC version works at 3.3v

    I used this breakout board https://www.sparkfun.com/products/9056

    I donít know if using the mux to control LEDs is the best solution... I think you could use an...
  18. I think that mux works fine at 3.3v but you can...

    I think that mux works fine at 3.3v but you can have a mux at 5v as long as you source your voltage dividers and switches with 3.3v.

    An analog mux treats the signals the same. So reading the...
  19. As the midi page notes: don't add capacitance as...

    As the midi page notes: don't add capacitance as it increases the time it takes to read a stable voltage. The same method shown on the midi page works with that mux by adding a forth select signal....
  20. ...Bury the headline?... this was news to me.

    ...Bury the headline?... this was news to me.
  21. Try the recieve using the example code from the...

    Try the recieve using the example code from the usb midi documentation page.https://www.pjrc.com/teensy/td_midi.html

    People with MIDI experience on Ardunio often try to use serial based code...
  22. I don't think you're going to get help on this...

    I don't think you're going to get help on this issue with this code at the tail end of a thread on DIN MIDI out problems.

    This code seems a bit unusual in how the octave feature works and how it...
  23. Replies
    7
    Views
    162

    Well the T3.5 is 5 volt tolerant (if you do have...

    Well the T3.5 is 5 volt tolerant (if you do have to use 5v sensors etc. this can be a big advantage).

    It has a lot of inputs (something like) 40 readily available from a breadboard through single...
  24. Replies
    7
    Views
    162

    Teensy is not just another Arduino especially if...

    Teensy is not just another Arduino especially if you are making a USB MIDI compliant device but it's good to know you're not a noob to coding.

    I'm always a bit skeptical when there is talk about...
  25. Replies
    7
    Views
    162

    1) Voltage - there is no pressing need for 5 volt...

    1) Voltage - there is no pressing need for 5 volt for MIDI. The old Teensy 2.0 are more than adequate for MIDI controllers and they work at 5 volt but the LC is cheaper and is the obvious choice...
  26. I think OP has all that sorted and wants to know...

    I think OP has all that sorted and wants to know how to animate the needle and draw a background image to the display... (I can't help with this)

    I did find this...
  27. Replies
    13
    Views
    255

    ...either an external ADC that accepts your range...

    ...either an external ADC that accepts your range or use an op amp gain and offset circuit and regular analog read....

    http://www.ti.com/lit/pdf/sloa097
  28. Replies
    19
    Views
    709

    Other than getting the index for the terminating...

    Other than getting the index for the terminating character wrong the code from post 11 worked and I got the ACK back from a Teensy 2.0.


    void onSysEx(byte *sysExBytes, unsigned int length){
    if...
  29. Replies
    19
    Views
    709

    I was playing with HTML today... didn't have a...

    I was playing with HTML today... didn't have a MIDI capable browser so I focused on building the string to paste into a MIDI utility... just leaving the WIP code here for further development.

    ...
  30. Replies
    87
    Views
    1,095

    You need a voice management system to steal the...

    You need a voice management system to steal the least objectionable running voice or the first available free one. (I don't know of any examples.)

    If you want to keep the built-in buttons and...
  31. Sorry... I can offer code for pots but not for...

    Sorry... I can offer code for pots but not for encoders.

    The voltage coming off a pot as a voltage divider is dead simple to use as proxy for the physical position of a pot.

    Encoders have lots...
  32. The code in this post could be merged with the...

    The code in this post could be merged with the standard features of my Many buttons and knobs example to provide the feature set you indicated you want.
    ...
  33. Replies
    3
    Views
    133

    100 kOhm is very high especially for mux'd pots....

    100 kOhm is very high especially for mux'd pots.

    It could also be insufficient settling time between setting and reading the mux.

    A cap on a mux'd pot is bad as it slows settling time.
    ...
  34. Good to know, but isn't either fast enough to...

    Good to know, but isn't either fast enough to record mono audio provided you are buffering enough data?

    For a data logging project is that fussy soldering or breakout boards really necessary? And...
  35. Replies
    19
    Views
    709

    I could build you a Flowstone based editor .exe...

    I could build you a Flowstone based editor .exe file that will work on any Windows machine like I made for my Footsy controller.... it's really easy especially as I can use mine as a template so I...
  36. Perhaps powering the second Teensy without...

    Perhaps powering the second Teensy without connecting it to the USB of the PC might get rid of it as it seems likely (to me anyway) that the compiler is finding the wrong Teensy connected after the...
  37. Do you need the audio library at all? Since...

    Do you need the audio library at all? Since you've started with the audio library, we can assume the frequency you're interested in is not too high. You could just take raw analog readings every...
  38. Replies
    19
    Views
    709

    It should be dead simple as a JavaScript goes....

    It should be dead simple as a JavaScript goes. You just need to assemble the editable bytes from object.value properties into a sequence and send it on the press of a button or other object that can...
  39. Apologies... yet again not reading carefully ...

    Apologies... yet again not reading carefully

    The controller should be fine and the library doesn't look difficult to use.

    Gibbedy's comments appear correct except the colour values are 12 bit...
  40. D'oh… didn't notice the colour comments... kinda...

    D'oh… didn't notice the colour comments... kinda undermines my comments on direct control.

    Unless you really just want to alternate, in which case you can use the same signal and source one and...
  41. You have a choice... you can figure out how to...

    You have a choice... you can figure out how to program that part for SPI control or you can figure out how to control LED load currents via transistor switches.

    No offence, but your programming...
  42. Replies
    19
    Views
    709

    //************LIBRARIES USED************** //...

    //************LIBRARIES USED**************
    // include the Bounce library for 'de-bouncing' switches -- removing electrical chatter as contacts settle
    #include <Bounce.h>
    #include <EEPROM.h>
    //...
  43. Replies
    19
    Views
    709

    I was adding comments to your code and thought...

    I was adding comments to your code and thought I'd try to graft on SysEx preset config.

    I don't recommend you even trying to compile this yet but I think it's only a few typos and brain-farts...
  44. Replies
    50
    Views
    805

    //************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...
  45. Replies
    50
    Views
    805

    if (flashcount>= -1*waitClocks){ // counts into...

    if (flashcount>= -1*waitClocks){ // counts into negative values to supress tempo flash longer
    if (flashcount> 0){ //
    if (flashTimer>(flashOnTime+flashOffTime)){
    //was here??
    ...
  46. Replies
    50
    Views
    805

    //************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...
  47. Welcome You're not the first to miss this...

    Welcome
    You're not the first to miss this little nugget.

    You need to read incoming midi even if you are not using them. It stops an event queue on the computer from getting bogged down with...
  48. Replies
    50
    Views
    805

    I'm rethinking what's needed in flashing...

    I'm rethinking what's needed in flashing behaviour when Tap/Bank button is used and posting this to confirm whether my intuition on the user interface agrees with yours -- and of anyone else with...
  49. Replies
    50
    Views
    805

    I've been downright dangerous lately. I'd like...

    I've been downright dangerous lately.

    I'd like to blame cut and paste programming but that's just admitting laziness.

    And the increment thing is stupid... even if it works it's unnecessarily...
  50. Replies
    50
    Views
    805

    //************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...
Results 1 to 50 of 500
Page 1 of 10 1 2 3 4