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.02 seconds.

  1. You will always get that "plop" or "click" when...

    You will always get that "plop" or "click" when you turn a sound on or off very suddenly. You need to ramp the sound up and then down to avoid this.
    Try these settings, as a start:

    ...
  2. The syntax for the two-dimensional array is...

    The syntax for the two-dimensional array is wrong. It should be this:

    const int CCID[CC_SETS][A_PINS] = {{11,11,11,1,1,11},{11,11,1,11,1,11},{11,1,11,11,1...
  3. You need sgtl5000_1.unmuteLineout(); Pete

    You need

    sgtl5000_1.unmuteLineout();

    Pete
  4. Replies
    23
    Views
    2,121

    You're absolutely right. I misread it. Sorry. ...

    You're absolutely right. I misread it. Sorry.

    If you just want to see the spectrum of the guitar sample, There's a variable that is set to 0, 1 or 2 when you push the buttons. It is initially...
  5. Replies
    23
    Views
    2,121

    You need to install the three buttons to use the...

    You need to install the three buttons to use the complete example code. By default it uses SDTEST1.WAV as the audio input to the FFT. Each of the three buttons selects a different input.

    // Left...
  6. Just FYI: When I compile that code with Arduino...

    Just FYI: When I compile that code with Arduino 1.8.13 and TD 1.54-beta6, it spits out an error message early on in the compilation.

    Error while detecting libraries included by...
  7. Replies
    6
    Views
    192

    The adafruit BMP380 board has 10k pullups on the...

    The adafruit BMP380 board has 10k pullups on the two I2C pins which may not be sufficient. Try adding pullup resistors of about 4k7 ohms to both A4 and A5.

    Pete
  8. Replies
    6
    Views
    192

    Oh, I missed something. The bmp.begin() is before...

    Oh, I missed something. The bmp.begin() is before the Serial.begin(). It may be failing but unable to print anything.
    Try this:

    void setup() {
    Serial.begin(9600); //Begin serial communication...
  9. Excellent :) Pete

    Excellent :)

    Pete
  10. Replies
    6
    Views
    192

    Try changing bmp.begin(); to this: if...

    Try changing bmp.begin(); to this:

    if (!bmp.begin()) {
    Serial.println("Could not find a valid BMP280 sensor, check wiring!");
    while (1);
    }
    Just to make sure that the Teensy can...
  11. What kind of audio are you using for line input?...

    What kind of audio are you using for line input? If you're playing from a phone or a PC, have you turned up the audio enough?
    When I play audio from PC to line-in there's rarely any non-zero output...
  12. I don't think the buffer size has anything to do...

    I don't think the buffer size has anything to do with the 480Mbit/sec transfer rate.
    I may be wrong, but I think the larger buffer size just allows you to send larger SYSEX messages in one large...
  13. // TODO: start a timer, rather than sending the...

    // TODO: start a timer, rather than sending the buffer
    // before it's full, to make best use of bandwidth
    This means that, at the moment, it sends a message immediately in which case having a very...
  14. uint16_t can only store numbers in the range 0 to...

    uint16_t can only store numbers in the range 0 to 65535. The compiler is warning you that it can't cram a number like 4406636708352ll into 16 bits. That number requires 43 bits which is why it has...
  15. Replies
    88
    Views
    3,374

    Just installed TD 1.54_b6 over a fresh Arduino...

    Just installed TD 1.54_b6 over a fresh Arduino 1.8.13 with no problems. Windows 10 Pro X64

    Pete
  16. For cue points, maybe this thread...

    For cue points, maybe this thread is useful, especially my message #10.

    Pete
  17. The attached version compiles. I mangled the code...

    The attached version compiles. I mangled the code until it looked like the example in Files/Examples/Audio/Synthesis/WaveTable/Simpletable.
    23546

    Pete
  18. In your Churchorgan_samples.h change this line: ...

    In your Churchorgan_samples.h change this line:

    #include <AudioSynthWavetable.h>

    to this:

    #include <synth_wavetable.h>

    It still won't compile but it'll get further along.
  19. I missed another problem ...

    I missed another problem

    if((L_Queue.available() > 1) && (R_Queue.available() > 1)){

    Those should be >= otherwise you won't process anything until there's at least two buffers in each of the...
  20. The ADC values are signed 16-bit. This is why you...

    The ADC values are signed 16-bit. This is why you see the large values such as 65369, it is actually a small negative number.

    This piece of your code is wrong:

    uint16_t (*buff_pointer_L) =...
  21. Replies
    1
    Views
    87

    TimeLib.h in hardware\teensy\avr\libraries\Time...

    TimeLib.h in hardware\teensy\avr\libraries\Time declares them to be int

    Pete
  22. Which Teensy are you going to use? How long a...

    Which Teensy are you going to use? How long a recording do you want?

    Pete
  23. For example, in the read_all_data example, it...

    For example, in the read_all_data example, it uses this to instantiate the device:

    Adafruit_BNO055 bno = Adafruit_BNO055(55, 0x28);
    You would just change it to

    Adafruit_BNO055 bno =...
  24. I believe that all you have to do is change ...

    I believe that all you have to do is change

    *theWire = &Wire
    to

    *theWire = &Wire2

    Oh, hang on. You don't have to change the library. All you do is reference &Wire2 when you instantiate the...
  25. Replies
    12
    Views
    538

    It might work if it was counting audio cycles but...

    It might work if it was counting audio cycles but as far as I know there's no way to do that.

    Pete
  26. Replies
    4
    Views
    257

    I have two versions of a MIDI library on my...

    I have two versions of a MIDI library on my system. The one in the TeensyDuino distribution does not have BaudRate in the DefaultSettings struct (in midi_Settings.h) whereas the one I've installed in...
  27. Ooops. I appear to be using an older version of...

    Ooops. I appear to be using an older version of the display which was set up as a shield for Arduino UNO and used parallel data transfer rather than SPI.

    Pete
  28. Thread: teensy midi

    by el_supremo
    Replies
    9
    Views
    468

    If you compile that code for Teensy4, and...

    If you compile that code for Teensy4, and assuming that you add some appropriate code to call these functions, it will not generate any MIDI messages - it will only output debugging messages to the...
  29. Which Teensy are you using? Which code were you...

    Which Teensy are you using?
    Which code were you using and how was the display wired?
    I'm currently playing around with a 240x320 ILI9341-based display. First, I got it working on an Arduino...
  30. Replies
    12
    Views
    538

    I didn't say you were inventing anything, but I...

    I didn't say you were inventing anything, but I couldn't see how you were getting useful waveforms from Pins 9 and 11.


    Yeah, whatever. Now you're using the correct pin for the DAC on a Teensy...
  31. Replies
    12
    Views
    538

    You're going to have to explain this in detail....

    You're going to have to explain this in detail. Pin 9 is a digital pin which can also be used to generate PWM output. Pin 11 is a digital pin only.
    So, it's a mystery how you can be seeing "the...
  32. Replies
    141
    Views
    7,485

    On the 4.1 page...

    On the 4.1 page under Pixel Pipeline I presume that this:

    color spare transformation
    should be

    color space transformation

    Pete
  33. Having dug through the DallasTemperature library...

    Having dug through the DallasTemperature library again, I see that if getTempCByIndex returns -127, it is an error indication which means that the specified device did not respond. You should look...
  34. On the github site you say: To me, this is a...

    On the github site you say:

    To me, this is a classic indication that your code is writing over the end of an array or in some other way clobbering ram. Changing the order of the include files...
  35. float and double are the same on most Arduinos...

    float and double are the same on most Arduinos and Teensys before 4.0 because "double" arithmetic is very slow on processors which don't have the double precision hardware. It also saved precious ram...
  36. This "%1.9lf" might cause confusion too. If you...

    This "%1.9lf" might cause confusion too. If you want double it should be something like "%24.20lf".

    Pete
  37. You've declared them all as float. The addition...

    You've declared them all as float. The addition and division are done as float with the result having float precision which is only about 7 digits.
    Declare them as double or cast them.

    Pete
  38. Which Teensy are you compiling this for? The...

    Which Teensy are you compiling this for? The earlier ones don't have a builtin SD card.
    Or insert #include <SD.h> at the top of the file.

    Pete
  39. @jwestmoreland: Have you had any luck with my...

    @jwestmoreland: Have you had any luck with my code? I don't know anything about the Stormwise antenna but it looks like it isn't tuned specifically for 60kHz like the antenna I use.

    Pete
  40. Replies
    9
    Views
    360

    An even older-fashioned Merry Christmas to All....

    An even older-fashioned Merry Christmas to All. I'll be overdosing on turkey in about an hour.

    Pete
  41. If the audio is suitably bandwidth-limited, you...

    If the audio is suitably bandwidth-limited, you could lower the sampling rate, for example to 8kHz, and get much higher resolution from the FFT - a bit less than 8Hz per bin. The highest frequency...
  42. Those pins on their own won't be sufficient for...

    Those pins on their own won't be sufficient for SPI1.
    The four SPI1 pins on the T4.1 are:
    D0 CS1
    D1 MISO1
    D26 MOSI1
    D27 SCK1
    As shown here and on the card that came with your T4.1
    ...
  43. Ignore this

    Ignore this
  44. Replies
    3
    Views
    147

    They aren't dedicated like those on an Arduino....

    They aren't dedicated like those on an Arduino. The Serial interface goes directly through USB and does not use pins 0 and 1. Those pins can be treated just like other digital pins. They are also the...
  45. Does it crackle if you use the original waveform...

    Does it crackle if you use the original waveform object?

    Pete
  46. You're going to have to post some code which...

    You're going to have to post some code which demonstrates the problem, including the "modified versions of the Waveform object".

    Pete
  47. Replies
    4
    Views
    205

    I've just got one of that type of display working...

    I've just got one of that type of display working today. I think part of your problem might be that you use ST7789_t3 when you are using the T4?
    The only graphics includes I use are:

    #include...
  48. setI2SFreq fails on T4.x when sampling frequency is 8000Hz

    setI2SFreq fails on a T4.x when the required sampling frequency is 8kHz. The reason is that it calculates a value for n2 of 80 but this value must fit in a 6-bit field and therefore must not exceed...
  49. You can make the code handle any value of...

    You can make the code handle any value of setAccentPattern by changing this:

    if (accentPattern == 0)
    velocity = accentVelocity; // we want it on this step
    ...
  50. I installed Frank's library and compiled the code...

    I installed Frank's library and compiled the code in #1 for a T3.2. It compiles without error as does the original Mp3FilePlayer example.


    This suggests that you didn't compile it for the T3.2...
Results 1 to 50 of 500
Page 1 of 10 1 2 3 4