Forum Rule: Always post complete source code & details to reproduce any issue!

Search:

Type: Posts; User: lokki

Page 1 of 3 1 2 3

Search: Search took 0.00 seconds.

  1. to be fair, the code is rather longish, and the...

    to be fair, the code is rather longish, and the problem manifested itself in a section with float calculations, but it could be something else preventing this calculations to work properly, i haven't...
  2. well qsort not working was probably me being...

    well qsort not working was probably me being stupid. i will try to come up with an example as time permits. i will also look into my code for potential overflows. i agree that it sounds like a bug in...
  3. so even if i don't use the std::sort function (i...

    so even if i don't use the std::sort function (i commented it out for test purposes) and hence the include is not necessary for the compile to work it still affects the memory locations? shows me how...
  4. ok, cool will look into this. so a simple move...

    ok, cool will look into this. so a simple move around of the #include <algorithm> can fix an out of bound array or buffer overflow? (or make the problem go away)? the code is exactly the same both...
  5. well, even if i comment out my std::sort code (i...

    well, even if i comment out my std::sort code (i was using it like this already) and only have the <algorithm> include in the wrong spot it messes up floats..

    i don't think posting my approx....
  6. ok replying to myself to clarify for others. ...

    ok replying to myself to clarify for others.

    moving the #include <alrogrithm> to the top of my includes, before <Arduino.h> fixes things. so it seems it is overriding some internal functions. i...
  7. #include messes up float calculations (i guess)

    hi there,

    because i was in need of a sort function and couldn't get qsort to work as i wanted in a teensy 3.6 project, i stumbled across std::sort.
    for that to work i had to include algorithm...
  8. Replies
    3
    Views
    664

    true, i switch back and forth between mouser and...

    true, i switch back and forth between mouser and digikey, depending on the product i need.



    ah nice, thanks! still strange, that the support team did not mention this and ask for an exchange on...
  9. Replies
    3
    Views
    664

    order teensies from mouser...

    hi there, just to let you know.

    it is currently not possible to order teensy boards from mouser, if they have to send it outside the US (europe in my case). this used to be possible, since it has...
  10. Replies
    1
    Views
    403

    for now i found a different (and better) solution...

    for now i found a different (and better) solution for this project:...
  11. Axis 49 (C-Thru Music) remap and aftertouch mod with a teensy LC

    hi there,

    so i played on an axis-49 midi controller for the last few years, mostly with my laptop. this now discontinued product is very compact and has 98 keys!!...
  12. Replies
    1
    Views
    403

    teensy 4 usb midi and axoloti, NO GO

    hi there,

    i would like to connect a teensy 4 (in usb-midi mode) to an axoloti: http://www.axoloti.com
    the axoloti has an usb-host port and should recognise usb-midi devices.

    from the logs on...
  13. Replies
    2
    Views
    445

    eeprom questions teensy 3.6

    hi,

    i am porting some code from arduino micro to teensy 3.6 and i use the eeprom library to store/recall some configuration and calibration data.

    my understanding is that the teensy 3.6 has an...
  14. thanks for your answer! let me explain: -i...

    thanks for your answer!

    let me explain:

    -i need to worry about serial speed, because USB-Midi is much faster than serial midi, that is the whole point of the project :-)
    i am connecting two...
  15. teensy LC MIDI usb to serial and serial to usb... freeze.

    hi there,

    i have two teensy LC boards connected TX to RX pin and GND. one teensy receives MIDI from usb and sends it out the serial port and the other receives from serial and sends back out to...
  16. Replies
    6
    Views
    739

    ok, bought two teensy lc boards, set up a simple...

    ok, bought two teensy lc boards, set up a simple usb midi to serial midi sketch on one, and the opposite on the other, boosted MIDI (Serial) Baudrate to 1000000 and it works nice and fast! so cool...
  17. Replies
    6
    Views
    739

    Hmm, I just had another thought. What about...

    Hmm, I just had another thought. What about inter-connecting two teensies via serial and send USB midi from one to the other via serial and back out the other teensies usb? The teensy serial midi...
  18. Replies
    6
    Views
    739

    Nice! I am fine with a teensy 3.6... is there any...

    Nice! I am fine with a teensy 3.6... is there any chance you (or somebody else) would add usb midi on the second port? Would that be much work? I think this is over my head, but might give it a try...
  19. Replies
    6
    Views
    739

    Two usb client ports

    Is there any Version of a teensy that allows to have two usb client connectors? I am trying to send midi from a host to a host.
  20. usb midi host to mac/linux laptop (also host)

    i was wondering if there is a way to configure a teensy board to act as a double usb client, so that i can connect two hosts. i guess it is not possible, but maybe i am wrong :) my application:

    i...
  21. Replies
    11
    Views
    1,941

    i was able to find the teensy4 on the hub, i had...

    i was able to find the teensy4 on the hub, i had to use the USBSerial_BigBuffer userial() statement, which is part of the newest USBHost library (but not jet included in 1.53). just in case anyone...
  22. yes! i can confirm my teensy4 is now found with...

    yes! i can confirm my teensy4 is now found with the BigBuffer in place. i just replaced the USBHost library in my 1.53 install with the GitHub version. I can also confirm that serial communication...
  23. i may have found the problem... teensy4 needs the...

    i may have found the problem... teensy4 needs the
    USBSerial_BigBuffer userial(myusb); for serial communication as well, at least that is indicated on Github in the usbhost examples. my version of...
  24. no problem! any other insights? should the above...

    no problem! any other insights? should the above code be working i.e. should a serialnr. be printed to the teensy 3.6 console? do i need to set anything special on the teensy4 side?
  25. thanks, i am aware of that. i have the hub...

    thanks, i am aware of that.
    i have the hub nicely working on the teensy 3.6, all my synths and the teensy4 are connected to it. look at the code snippets above, they contain the hub portion and the...
  26. serial communication between two teensies via usb

    i have the following setup:

    -a teensy 3.6 with a 7 port usb hub
    -a teensy 4 (configured as midi + serial) connected to said hub
    -several usb-midi devices connected to said hub

    i have it...
  27. Replies
    11
    Views
    1,941

    ok, since i will need this to be working rather...

    ok, since i will need this to be working rather soonish... i thought about using serial communication instead of midi to send data from teensy 3.6 to teensy 4. could this be a workaround for now? at...
  28. Replies
    11
    Views
    1,941

    well, this was much simpler then i thought it...

    well, this was much simpler then i thought it would be.
    here are two simple programs that show the problem quite well. an ascending set of notes sent out to all ports on a hub and a teensy 4 with...
  29. Replies
    11
    Views
    1,941

    yes, it happened on unmodified USB code, which is...

    yes, it happened on unmodified USB code, which is why i started to modify it :-)

    for starters i can just upload the whole code of the two boards, and as time permits i will work on smaller...
  30. Replies
    3
    Views
    1,139

    i have no problems sending note on and other...

    i have no problems sending note on and other messages to connected midi devices. i am using teensyduino 1.53 and the usbhost library on a teensy 3.6
  31. Replies
    11
    Views
    1,941

    actually setting the tx and rx buffer in...

    actually setting the tx and rx buffer in usb_desc.h is not a good idea :-) usb-midi communication is also messed up when connected to a macbook air, messages come in as wrong types or simply don't...
  32. Replies
    11
    Views
    1,941

    sorry to resurrect this. so i got a strange...

    sorry to resurrect this.

    so i got a strange problem where my midi controller (a teensy 3.6 sending out via usb-host) becomes very sluggish as soon as i send midi to a connected teensy 4.0...
  33. actually i used a teensy 3.6 as host, and had a...

    actually i used a teensy 3.6 as host, and had a teensy 4.0 connected to one of the hubs ports. but a teensy 4 as host should also work. the library is really quite easy to use, my 2 small problems...
  34. Replies
    1
    Views
    1,918

    Midi Bass Controller

    hi, this is a project i have been working on for a long time...
    it mimics an electric bass appearance but is actually a midi controller, very playable and so much fun!
    yes, i am lefty...

    this...
  35. Replies
    11
    Views
    1,941

    hi paul, hi KurtE thanks for your answer. i...

    hi paul, hi KurtE

    thanks for your answer.

    i have up to 7 usb-midi devices attached to my usb2 hub, only the teensy4 reports at usb2 speed and needs the bigger buffer. so it seemed like a waste...
  36. Replies
    11
    Views
    1,941

    force small rx/tx buffer for usbmidi teensy 4

    is there a way to force a teensy 4 (declared as usb-midi device) to use the small buffer instead of the big (512) buffer? i read the data in on a teensy 3.6 (via usb-host port) and i have to use the ...
  37. looking at this from another angle, is there any...

    looking at this from another angle, is there any possibility at all to force the teensy 4 to use the small usb midi buffer even if a usb 2 port is available?
  38. Replies
    2
    Views
    1,301

    disregard my stupidity :-) it works flawlessly....

    disregard my stupidity :-) it works flawlessly. of course usb-midi (non host) has the same order, but since i tested with PureData i never noticed (the polytouch) object just has outputs and i...
  39. Replies
    2
    Views
    1,301

    a look at usb-host GitHub suggests the message...

    a look at usb-host GitHub suggests the message has swapped variable input...


    void sendPolyPressure(uint8_t note, uint8_t pressure, uint8_t channel, uint8_t cable=0) {
    send(0xA0, note,...
  40. Replies
    2
    Views
    1,301

    midi poly pressure usb host issue

    hi there,

    when sending poly pressure out of a teensy 3.6 via usb-host port, it does not work properly.

    when i send the same data via usb-midi it works fine.

    sending poly pressure via...
  41. and it works... amazing and thanks for chiming in...

    and it works... amazing and thanks for chiming in @KurtE

    if somebody can shed some light on latency issues that would be very welcome. i guess the bigger buffer should not introduce more latency...
  42. this is what i get with debug enabled, which...

    this is what i get with debug enabled, which seems to indicate you are on the right track :-) (sorry for the strange device names, it was an attempt to get it working)


    sizeof Device = 36
    sizeof...
  43. ok, the cores file of the "slave midi" teensy 4.0...

    ok, the cores file of the "slave midi" teensy 4.0 or the teensy 3.6 that is the host? sorry i am new to this :-)
  44. hmm, yes it definitely works from PC, i also...

    hmm, yes it definitely works from PC, i also tried with:

    an arduino uno setup as usb-midi controller. this also does not spit out a serial number but with:

    ...
  45. any other way to search for the teensy4 at...

    any other way to search for the teensy4 at startup?
  46. ok, got another problem. i have a teensy 4...

    ok, got another problem.

    i have a teensy 4 midi foot controller that works fine connected to a pc. i want to connect this to the teensy 3.6. host/hub i wrote about above. unfortunately my setup...
  47. perfect, that works! hmm, did not know that...

    perfect, that works! hmm, did not know that function :-)

    here is the working code for reference:


    for (int i=0; i<7; i++) {
    if (midilist[i]->manufacturer() != NULL &&...
  48. thanks, using: ...

    thanks,

    using:


    Serial.println((char*)midilist[i]->serialNumber());

    i now get consistent serial-numbers even if i plug in more devices etc. so it was really about storing to an int, which...
  49. ah i see... so midilist[i]->serialNumber();...

    ah i see... so
    midilist[i]->serialNumber(); returns a string, and that probably gets corrupted when saved to an int...

    is the serial nr string fixed length? or how can i check against known...
  50. usb host on teensy 3.6 midi devices serial Numbers inconsistent.

    hi,
    i have several usb-midi devices connected via a hub to a teensy 3.6 host port. all is working great communication wise, i can send messages to all devices.
    to distinguish devices i used the...
Results 1 to 50 of 108
Page 1 of 3 1 2 3