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

Search:

Type: Posts; User: PieterP

Search: Search took 0.00 seconds.

  1. For my purposes, and as a beginner-friendly...

    For my purposes, and as a beginner-friendly Arduino/Teensy sketch, using the same size for the state as for the input is a perfectly sensible default.
    You can still supply your own types as a...
  2. Agreed, I added a check and more comments on the...

    Agreed, I added a check and more comments on the page:...
  3. For truly random inputs, it probably doesn't...

    For truly random inputs, it probably doesn't matter, but the problem with truncation is that it makes it impossible to reach zero again (assuming non-negative inputs).

    Using a rectangular input...
  4. Ah, I see what you mean. The difference is of...

    Ah, I see what you mean.
    The difference is of course that both 'Decay' and 'Exponential' use floating point states and operations, whereas the C++ implementation uses only integer arithmetic, so...
  5. Indeed, @xenington where did you get that code...

    Indeed, @xenington where did you get that code from? The pages you linked to seem to list the correct code...
  6. Replies
    10
    Views
    329

    You're right, I didn't double-check my version, I...

    You're right, I didn't double-check my version, I meant 1.52, 1.53 does indeed seem to include the change.
  7. Replies
    10
    Views
    329

    The .ARM.exidx section was added just 25 days...

    The .ARM.exidx section was added just 25 days ago, it's not yet included in the latest official release of Teensyduino.

    I ran into the same problem a couple of weeks ago, trying to copy the...
  8. Replies
    19
    Views
    1,154

    I've used CMake extensively for cross-compiling...

    I've used CMake extensively for cross-compiling on Linux, but never tried it on Windows, so I might be wrong but here are at least some things I could think of:

    The default CMake generator for...
  9. Here's what I use:...

    Here's what I use: https://github.com/tttapa/Arduino-Helpers/blob/ea926d30f64916cbe9d9c5a14b2b0f23e6a6d40a/src/AH/Hardware/ButtonMatrix.ipp#L16-L49
    Should be simple enough to translate that to C, or...
  10. You can simply compile the necessary files as C++...

    You can simply compile the necessary files as C++ if you edit the makefile accordingly. I covered the process in this Stack Exchange answer. Since you're not using an ATmega16U2, you probably don't...
  11. Replies
    2
    Views
    196

    In most cases, you can just undefine these...

    In most cases, you can just undefine these annoying macros.
    Here's what I use in my Linear Algebra library: ArduinoMacroFix.hpp.
    You have to include it before including any Eigen headers (and...
  12. Alternatively, you could use the Control Surface...

    Alternatively, you could use the Control Surface library, it'll filter the analog input for you, and it supports MIDI routing as well.

    For example:

    #include <Control_Surface.h> // Include the...
  13. Replies
    6
    Views
    257

    /dev/ttyACM* only exists if you select a USB mode...

    /dev/ttyACM* only exists if you select a USB mode (in the Tools menu of the IDE) that includes "Serial".
  14. Replies
    68
    Views
    2,364

    I'm sorry, without more information, I cannot...

    I'm sorry, without more information, I cannot possibly help you.

    Does it not send the correct MIDI messages, or does it not send any messages at all?
  15. Replies
    68
    Views
    2,364

    The code I posted can be used with that setup. ...

    The code I posted can be used with that setup.

    If you want the exact code, try this:


    #include <MIDI_Controller.h>

    AnalogCC potentiometers[] = {
    {A0, MIDI_CC::Channel_Volume, 1}, //...
  16. Replies
    68
    Views
    2,364

    Thank you. I missed a semicolon right before...

    Thank you. I missed a semicolon right before "void setup () ..." (I posted this on mobile).

    If you add the semicolon after the bracket } before "void setup", does it compile?
  17. Replies
    68
    Views
    2,364

    Author of the MIDI Controller library here. ...

    Author of the MIDI Controller library here.

    Going back to the original post, to use multiple potentiometers and buttons, you would use something like this:


    #include <MIDI_Controller.h>
    ...
  18. Replies
    2
    Views
    893

    Great to hear! Thank you.

    Great to hear!
    Thank you.
  19. Replies
    2
    Views
    893

    Teensy Loader high CPU usage

    Hi,

    I noticed that the Teensy Loader application (the one that opens when you press 'verify' or 'upload') uses quite a lot of CPU, even when not in use.
    Please see attached image for annotated...
Results 1 to 19 of 22