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

Search:

Type: Posts; User: el_supremo

Page 1 of 10 1 2 3 4

Search: Search took 0.01 seconds.

  1. Replies
    11
    Views
    59

    Get rid of StateOne, StateTwo and toggleState. ...

    Get rid of StateOne, StateTwo and toggleState.


    if(button0.fallingEdge()) {
    usbMIDI.sendNoteOn(60, 99, channel);
    }

    if(button0.risingEdge()) {
    usbMIDI.sendNoteOn(61, 99,...
  2. Almost certainly. Change them and see. Pete

    Almost certainly. Change them and see.

    Pete
  3. In C/C++, the remainder % operator is only...

    In C/C++, the remainder % operator is only defined for use when both operands are integers. You could calculate it yourself for floating point operands and I presume you could even define an overload...
  4. Which pin are you using as the MIDI output? The...

    Which pin are you using as the MIDI output? The MIDI library defaults to using the Serial1 Tx pin (pin 1). But also, that basic example will only send a midi note if it receives one.
    Try this code...
  5. Replies
    7
    Views
    128

    Your code isn't printing the two digit year...

    Your code isn't printing the two digit year correctly. Try this:

    Serial.print((tmtm.Year + 1970)%100),Serial.print("(");

    Pete
  6. The LC is quite a bit slower than a T3.2 and it...

    The LC is quite a bit slower than a T3.2 and it has much less flash and ram memory. Either or both of these could conspire against you but I can't tell just from your snippet.

    Pete
  7. Replies
    6
    Views
    176

    Your code works for me with the same circuit...

    Your code works for me with the same circuit wired to the connector "face".
    If you have a multimeter with continuity tester, check that the continuity from the T3.2 ground pin to the breadboard...
  8. Replies
    4
    Views
    100

    That's because attachinterrupt can't set multiple...

    That's because attachinterrupt can't set multiple tests for the state of one pin. Each call to attachInterrupt for a particular pin replaces whatever was previously set. Your last call was to test...
  9. See if this gets rid of the errors with BUTTONS...

    See if this gets rid of the errors with BUTTONS and POTS. I've just commented out the code that uses them.


    #include <MIDI.h>
    #include "Controller.h"
    ...
  10. //***DEFINE DIRECTLY CONNECTED...

    //***DEFINE DIRECTLY CONNECTED POTENTIOMETERS************************
    //Pot (Pin Number, Command, CC Control, Channel Number)
    //**Command parameter is for future use**

    //Pot PO1(A0, 0, 1, 1);...
  11. Copy the text of your code into a new message...

    Copy the text of your code into a new message (preferably between code tags - generated with the # menu icon).
    If waveform1 is undeclared, you can't have put it into the audio design tool.

    Pete
  12. I've installed PocketMIDI and tested it with an...

    I've installed PocketMIDI and tested it with an M-Audio 61-es keyboard connected to the T3.6 USB Host port which then sends the data over USB midi to the PC (Windows 10 Pro).
    Both Midi-Ox and...
  13. Replies
    24
    Views
    504

    Ooopps. Yup, copy and paste error. Pete

    Ooopps. Yup, copy and paste error.

    Pete
  14. Replies
    24
    Views
    504

    Yeah, that one looked wrong to me too. Pete

    Yeah, that one looked wrong to me too.

    Pete
  15. Replies
    24
    Views
    504

    The format of the data are explained in Appendix...

    The format of the data are explained in Appendix A of the manual on page 77.
    Data type T5 - Unsigned Measurement (32 bit):
    bits # 31...24 Decade Exponent (Signed 8 bit)
    bits # 23...00 Binary...
  16. shape expects a (float *) as its first argument....

    shape expects a (float *) as its first argument. Just cast it and the warning will go away.

    waveshape1.shape((float *)wave_shape_flat, 2);
    and similarly for the other two.

    Pete
  17. Replies
    6
    Views
    143

    When the switch is closed you should get a solid...

    When the switch is closed you should get a solid 0

    Pete
  18. How long is the system going to be underwater?...

    How long is the system going to be underwater?
    Is the oscillator only counted down to keep track of seconds or are you using it for stamping events with a much higher precision than seconds?

    Pete
  19. Replies
    5
    Views
    139

    There should not be a problem with any of the...

    There should not be a problem with any of the names you've mentioned, but you've used single quotes here. Could it be something as simple as using single quotes instead of double quotes in the code?...
  20. Try setting the gain of all the mixer inputs at...

    Try setting the gain of all the mixer inputs at every stage to 0.25

    Pete
  21. Hmm. I'll have to ponder that. BTW what is...

    Hmm. I'll have to ponder that.
    BTW what is readline? It looks like you are reading a line from Serial and a line from Serial2 into the same buffer. If so, that'll be quite messy.

    Pete
  22. Don't redeclare MySerial. Just assign a new value...

    Don't redeclare MySerial. Just assign a new value to it.

    MySerial = Serial2;
    .
    .
    .
    MySerial = Serial;

    Pete
  23. @icecold: I can't get your code to compile. I...

    @icecold: I can't get your code to compile. I haven't got Control_Surface.h so I just commented that out.
    Although there is an Encoder.h in Teensyduino, the compiler doesn't know what...
  24. Thread: Underscore?

    by el_supremo
    Replies
    4
    Views
    113

    No problemo :D Pete

    No problemo :D

    Pete
  25. Thread: Underscore?

    by el_supremo
    Replies
    4
    Views
    113

    The underscore is a valid character anywhere in a...

    The underscore is a valid character anywhere in a C/C++ variable name. It doesn't mean anything special in the language (i.e. to the compiler) but can be used to make a variable name easier to read...
  26. Replies
    10
    Views
    197

    Does it toggle the LED every two seconds? Pete

    Does it toggle the LED every two seconds?

    Pete
  27. Replies
    10
    Views
    197

    When I added this statement to your code: ...

    When I added this statement to your code:

    const uint8_t out = LED_BUILTIN;
    it works. Teensy 4(beta 2) with current Arduino and Teensyduino on Windows 10.

    Pete
  28. Why do you have three delay buffers? You store...

    Why do you have three delay buffers? You store the same sample in each one and otherwise never change their content. Therefore all three always have the same content.
    I think you can use just one...
  29. const PROGMEM int LFO_TABLE[]= I think the...

    const PROGMEM int LFO_TABLE[]=
    I think the PROGMEM has to go at the end of the declaration, like this:

    const int LFO_TABLE[] PROGMEM =
    because it is defined as a storage attribute:

    #define...
  30. Replies
    4,349
    Views
    473,512

    I started the 3rd attempt running this morning...

    I started the 3rd attempt running this morning and left it for a couple of hours. No errors at all, even when dragging/resizing the monitor window.
    But then I wanted to run a different sketch on a...
  31. Replies
    4,349
    Views
    473,512

    Just tried the 3rd attempt. Looks like a winner....

    Just tried the 3rd attempt. Looks like a winner. Even if I pull the plug or hold the button for 20 seconds, it still recovers without an error message.
    Speed seems to be the same - varies from...
  32. Replies
    4,349
    Views
    473,512

    I've tried the 2nd attempt on Windows 10 Pro x64...

    I've tried the 2nd attempt on Windows 10 Pro x64 on a 6 cpu (12 hyperthreads) i7-6800K @3.4GHz and 64GB of ram with arduino 1.8.9 + TD1.47
    If I just leave it running, the Java process uses about 5%...
  33. Replies
    4
    Views
    384

    Frank B says it works...

    Frank B says it works

    Pete
  34. Replies
    24
    Views
    13,279

    SPI.setSCK(14); and there's also SPI.setMOSI(7)...

    SPI.setSCK(14);
    and there's also SPI.setMOSI(7) if you need it.

    Pete
  35. Yes, frequency is in Hz. Pete

    Yes, frequency is in Hz.

    Pete
  36. This works for me on T4B2. It's a newer version...

    This works for me on T4B2. It's a newer version from Frank B.

    Pete
    P.S. I've only used it for 12000Hz but it should be good for other rates.



    #include <Audio.h>
    #include...
  37. Replies
    161
    Views
    11,584

    Install the new Teensyduino release 1.47...

    Install the new Teensyduino release 1.47 https://forum.pjrc.com/threads/57216

    Pete
  38. Replies
    2
    Views
    170

    From the 1.47 release notice, Paul wrote: ...

    From the 1.47 release notice, Paul wrote:


    Pete
  39. while (recQueue.available() >= 2) { ...

    while (recQueue.available() >= 2) {
    file.write((byte*)recQueue.readBuffer(), 256);
    recQueue.freeBuffer();
    }
    This will leave one record buffer in the queue. Wouldn't it be better to use...
  40. Replies
    4,349
    Views
    473,512

    Yes, it needs verbose to be selected. Pete

    Yes, it needs verbose to be selected.

    Pete
  41. Replies
    4,349
    Views
    473,512

    I compiled and installed your code. Works here. ...

    I compiled and installed your code. Works here.

    Pete
  42. Replies
    4,349
    Views
    473,512

    @mjs513: Post your imxrt-size.c and I'll give it...

    @mjs513: Post your imxrt-size.c and I'll give it a try.

    Pete
    P.S. I've just realized that it doesn't appear to have done anything since I updated to b7. I'll look at it.
    P.P.S. I had forgotten...
  43. Replies
    161
    Views
    11,584

    Yep, CR2032. Pete

    Yep, CR2032.

    Pete
  44. Replies
    161
    Views
    11,584

    In this message...

    In this message Paul said that "Teensy Loader and the new bootloader also now automatically initialize the RTC to your PC's time."
    I wrote a sketch to synchronize the T4B2 RTC to a GPS. When I...
  45. Replies
    10
    Views
    146

    Are you using the Windows installer version of...

    Are you using the Windows installer version of the IDE? If so, try using the ZIP file instead.
    - Download the Windows ZIP IDE
    - Unzip it into C:\ (Not Program Files)
    - install Teensyduino on top...
  46. At line 45 you have: for (int y = 0; y...

    At line 45 you have:

    for (int y = 0; y < rows; y++)
    {
    for (int x = 0; x < cols; x++)
    {
    if (duty_cycle[x*cols + y] <...
  47. Replies
    27
    Views
    1,243

    I've just got your code partially working on a...

    I've just got your code partially working on a Teensy 3.2
    That noise is definitely caused by the lfo table. I'll have a closer look at it tomorrow.

    Pete
  48. Replies
    27
    Views
    1,243

    Try declaring this lot as volatile: volatile...

    Try declaring this lot as volatile:

    volatile int16_t in_ADC0, in_ADC1, out_DAC0, out_DAC1; //variables for 2 ADCs values (ADC0, ADC1)
    volatile int16_t POT0, POT1, POT2; //variables for 3 pots...
  49. Thread: Teensy GPS

    by el_supremo
    Replies
    7
    Views
    168

    Just copy and paste the text into your message...

    Just copy and paste the text into your message (between code tags). So much easier to read.

    Pete
  50. Thread: Teensy GPS

    by el_supremo
    Replies
    7
    Views
    168

    The default baud rate for the Adafruit Ultimate...

    The default baud rate for the Adafruit Ultimate GPS is 9600 baud. The TinyGPS++ code works for me with the Adafruit GPS (at 9600) even with the software serial.

    Pete
Results 1 to 50 of 500
Page 1 of 10 1 2 3 4