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. The terms 'host' and 'device' modify USB and not...

    The terms 'host' and 'device' modify USB and not really MIDI.

    Unless you're trying to host a MIDI-controller via USB you don't need to worry about the 'host'.

    (And if you are maybe start with...
  2. While not qualified to say, what I read is the...

    While not qualified to say, what I read is the 137 can tolerate a much higher impedance pullup and so the using the internal one makes sense to me.

    I believe lower value pullups would still work...
  3. This suggests to me you might be overflowing the...

    This suggests to me you might be overflowing the MIDI buffer on your PC and the USB linkage is what is crashing.

    EDIT - looks like you are sending messages on every loop. You need to send only if...
  4. Replies
    7
    Views
    665

    Certainly 'quantizing' doesn't really capture the...

    Certainly 'quantizing' doesn't really capture the issue either.

    Trying to put together the above reply I noticed how unclear the answer was musically too. It depends on what the 'signal' you are...
  5. Replies
    7
    Views
    665

    Get the modulo of the MIDI by 12 and use the...

    Get the modulo of the MIDI by 12 and use the result as an offset to map each scale.

    Each scale is just a 12 value array saying how to shift to allowed notes from each non-allowed offset from the...
  6. There are many examples available. Decide what...

    There are many examples available.

    Decide what you want it to do EXACTLY and spell it out in full detail.

    Will the same message on ever press work or do you need it to toggle states?

    Many...
  7. If all you want is to power the light when...

    If all you want is to power the light when connected to USB power you can just run the LED in series with a resistor from the power (5v / Vcc) to the ground. (You need to get the LED connected in the...
  8. yes. If you were buying then you'd want a Teensy...

    yes. If you were buying then you'd want a Teensy LC as the cheapest available but if you already have one any Teensy can do this


    no... it's 8-bit but that doesn't matter for OS support which is...
  9. Replies
    9
    Views
    827

    You mean like an expression, wah, or volume pedal...

    You mean like an expression, wah, or volume pedal used with musical instruments?

    Search 'wah wah enclosure' but they are pricey and hard to find.

    M-Audio EXP1 expression pedal can often be...
  10. If it's not your code what would it be? ...

    If it's not your code what would it be?

    Teensy run many, many, many times faster than a Nano and so buttons need to be debounced more carefully.

    Another possibility is not clearing the MIDI...
  11. As someone reminded me recently the default...

    As someone reminded me recently the default behaviour of serial MIDI is to merge any output with any incoming messages, so each should be able to connect via Tx to Rx whether you do the MIDI...
  12. Replies
    7
    Views
    851

    Yes, merge must be done in software but 'thru'...

    Yes, merge must be done in software but 'thru' ports can just buffer the input signal. It's to allow a master controller daisy chain sound moduals.

    I was responding to the idea you could drive the...
  13. Replies
    7
    Views
    851

    I think you need to add some buffer (e.g. feed...

    I think you need to add some buffer (e.g. feed both sides of an AND gate or back-to-back NOT gates).
    24262
    A merge out should be feasible but I don't do serial MIDI much and can't recall how easy...
  14. Replies
    3
    Views
    523

    +1 It's a bit too much guesswork about your...

    +1

    It's a bit too much guesswork about your scale and octave system with code fragments (the rule is to post complete code) but I would expect it better to do the octave shift on a variable that...
  15. Then this should work... // initialize the...

    Then this should work...
    // initialize the bounce objects
    Bounce digital[] = {
    Bounce(DIGITAL_PINS[0], BOUNCE_TIME),
    Bounce(DIGITAL_PINS[1], BOUNCE_TIME),
    Bounce(DIGITAL_PINS[2],...
  16. If you're actually using pins 14 and 15 you need...

    If you're actually using pins 14 and 15 you need to fix this too:

    const int DIGITAL_PINS[D_PINS] = {0,1,2,3,4,5,6,7,8,9,10,11,12,13,16,17,18,19,20,21};

    and D_PINS = 22


    And if you're really...
  17. I see now... DIGITAL_PINS[16] is going to...

    I see now... DIGITAL_PINS[16] is going to reference pin 18 as '16' is the position in the array and not the pin number inside the array.

    Your pin and array index values start the same but they...
  18. Somewhere in here perhaps ;) I was...

    Somewhere in here perhaps ;)

    I was disappointed when I couldn't figure out how to make this part of the code responsive to changes in the number of inputs. Since then someone posted how it's done...
  19. Looks right to me. And LC is the obvious choice...

    Looks right to me. And LC is the obvious choice for MIDI out of the current line-up because it's the lowest cost.

    MIDI is not very demanding of resources and human interactions with controls are...
  20. Replies
    23
    Views
    4,168

    So what are you saying about values other than...

    So what are you saying about values other than 1023... it sounds like you have hardware problems.
  21. Replies
    23
    Views
    4,168

    int velocity = map(piezo[i], thresholdMin, 1023,...

    int velocity = map(piezo[i], thresholdMin, 1023, 80, 127);
    You want peak[i] not piezo[i] here.

    You're taking the last reading instead of the maximum reading... as it's likely below the threshold...
  22. Replies
    23
    Views
    4,168

    int velocity = map(peak[i], thresholdMin, 1023,...

    int velocity = map(peak[i], thresholdMin, 1023, 1, 127);
    Serial.println (velocity);
    usbMIDI.sendNoteOn(note[i], velocity, channel);
    Yeah, how can you be getting those values at...
  23. I've not been following the form closely of...

    I've not been following the form closely of late... but I recall seeing something where the host wasn't packaging MIDI efficiently and a fix is in the works??? (looking to see if I've imagined...
  24. Replies
    19
    Views
    1,486

    It works, sounds ok and doesn't seem to damage...

    It works, sounds ok and doesn't seem to damage anything but you should never ever use the phone jack as a line out because... er, it's wrong? ;)
  25. Yeah... a search suggests I have it wrong on fast...

    Yeah... a search suggests I have it wrong on fast write.... good luck.
  26. I was hoping someone qualified would reply. I...

    I was hoping someone qualified would reply. I think you should not use digitalWriteFast as I believe it's meant for compatibility only in Teensyduino.

    I think you need not worry too much about the...
  27. I get why Pete's code it preferable but it looks...

    I get why Pete's code it preferable but it looks functionally equivalent to me... looked to me like your modulo math should do the same thing in resetting on reaching the inter-accent count (ie --...
  28. My bad... lots wrong with the theory beside being...

    My bad... lots wrong with the theory beside being incorrect. It would not compile, and it would not explain the result....

    doesn't this really imply it's resetting because it's getting a start...
  29. I think you are missing the setHandleStart() in...

    I think you are missing the setHandleStart() in setup so that handleStart is called when an start message is recieved....
  30. Not sure I understand the problem... you want the...

    Not sure I understand the problem... you want the accent on the third pulse?


    if (accentPattern == 0)
    velocity = accentVelocity; // we want it on this step
    ...
  31. Using filtering to pass all but the three-byte...

    Using filtering to pass all but the three-byte stuff appears to pass everything else so you'd only need to handle the basic messages from the controller and in the process alter the the note values...
  32. https://github.com/FortySevenEffects/arduino_midi_...

    https://github.com/FortySevenEffects/arduino_midi_library

    I think you call turnThruOff() during setup.

    But then you have to pass all the other stuff manually if you want the other MIDI to pass...
  33. Replies
    5
    Views
    1,092

    ...er… how can an optocoupler work if reversed?...

    ...er… how can an optocoupler work if reversed? Is that possible?
  34. Replies
    5
    Views
    1,092

    Those two messages are only different from what...

    Those two messages are only different from what you're expecting by the note values... are you sure it pulses middle-C (note=60)?

    edit... I didn't notice they both say 'off'
  35. Untested code changes... not even compiled so...

    Untested code changes... not even compiled so there may well be an error or two!



    /************LIBRARIES USED**************
    // include the ResponsiveAnalogRead library for analog smoothing...
  36. I'm writing a more detailed reply but in the...

    I'm writing a more detailed reply but in the meantime… you are assuming some things that are just names have meaning to the compiler.

    CCID is just the name of an array of data... so is notes…

    ...
  37. // initialize the ReponsiveAnalogRead objects...

    // initialize the ReponsiveAnalogRead objects
    ResponsiveAnalogRead analog[]{
    {A14,true}
    };This also should work and is likely what you were attempting. With this the defined constants are not...
  38. ok.... since that's my code you're starting with...

    ok.... since that's my code you're starting with and the project is certainly worthy so I guess I should step up.

    Not sure why you're using Many Knobs... for one knob and one button.

    But...
  39. Replies
    14
    Views
    1,718

    I think that's supposed to be from the greater...

    I think that's supposed to be from the greater high-frequency content -- which entails greater power levels. It's only going to be a factor at levels already near the physical limits of the speaker...
  40. Yeah sorry... like I said I didn't compile. I...

    Yeah sorry... like I said I didn't compile.

    I used a different name for the ON value being sent.

    usbMIDI.sendControlChange(note[i], ON_VELOCITY, channel);

    Change this line by replacing...
  41. You have three switches and two wires to your...

    You have three switches and two wires to your Teensy?

    Assuming you know what you're doing with the wiring here's the above code with the digital section altered to CC messages and the analog stuff...
  42. What this guy was doing is pretty specific... ...

    What this guy was doing is pretty specific...

    ...maybe spell out what YOU are trying to do and I'll see if I can help :)
  43. My post had some additional stuff in it that was...

    My post had some additional stuff in it that was somewhat confused because I forgot you were making a synth and not a controller.

    Are you short of memory? I would think keeping it all in an array...
  44. If these are always in sequence, why do you need...

    If these are always in sequence, why do you need them in an array? Why not just add one or two to the first parameter's address for the second and third parameters when you dereference them?
  45. It does stereo in and out but only one MIC level...

    It does stereo in and out but only one MIC level input. With a two-channel preamp you could address the gain issue and use both line-level inputs... but listen to experts on how and not me. ;)
    ...
  46. I think it's tricky to use two audio boards......

    I think it's tricky to use two audio boards... why two?
  47. Replies
    2
    Views
    840

    Any chance your code is pointing at a floating...

    Any chance your code is pointing at a floating pin on the other boards? Get one pin number wrong and you will read garbage on every pass.

    The nature of the MIDI you consider 'wrong' should tell...
  48. ...yeah... I should have stayed quite.

    ...yeah... I should have stayed quite.
  49. what they said

    what they said
  50. Do you know about the audio board? ...

    Do you know about the audio board?

    https://www.pjrc.com/store/teensy3_audio.html
Results 1 to 50 of 500
Page 1 of 10 1 2 3 4