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. yes. But if you don't have a circuit diagram,...

    yes. But if you don't have a circuit diagram, it's unlikely that the serial output will tell you much.

    Do you at least know what the thing was supposed to do?

    Pete
  2. That does seem to be "contact" bounce. Try the...

    That does seem to be "contact" bounce. Try the bounce library to handle the pin with a debounce time of 1 ms and increase if necessary.
    See the Examples|Bounce|change code (or the one in Bounce2)
    ...
  3. Ah, thanks Paul, you're right. I have a vague...

    Ah, thanks Paul, you're right. I have a vague memory of installing something from Frank @DD4WH to do with fast convolution filtering.

    Take the rest of the year off - you've earned it :)

    Happy...
  4. TD 1.47_b4 problem compiling audio library

    Arduino 1.8.10 TD 1.49_b4
    I've run into a problem compiling the audio library. I used this same code on Nov 3rd (to record WWVB during the change of DST from on to off) but I don't remember which...
  5. @vjmuzik: your code is not going to work because...

    @vjmuzik: your code is not going to work because it reads from Serial1 several times in a row without checking to make sure that there's anything in the buffer to read.

    Pete
  6. Your example output is parts of two separate...

    Your example output is parts of two separate messages and you didn't read all of the data. The fourth byte indicates 7 data bytes but you stopped printing after the 6th byte.

    Try incorporating...
  7. The audio library is there but USB Audio isn't...

    The audio library is there but USB Audio isn't done yet.

    Pete
  8. The pdf has a description of the protocol you are...

    The pdf has a description of the protocol you are trying to read. The first byte that the motor sends is always the "head byte" which is 0x3E. You'll see that your example has one of these in it. The...
  9. Each byte, or each response? Which motor is it...

    Each byte, or each response?
    Which motor is it and can you give examples of the response?

    If it sends each response with a CR and/or LF at the end, you can just store the response until the CR/LF...
  10. Replies
    11
    Views
    301

    Adding this code at the top of CWModem.ino will...

    Adding this code at the top of CWModem.ino will remove the error messages. I don't know if it will produce working code though - there may be other problems with memory spaces still to be resolved,...
  11. Glad the envelope worked out. I haven't used...

    Glad the envelope worked out.
    I haven't used releaseNoteOn. I did a quick scan through the code and couldn't figure out how/what it really does. I'll try to have a more detailed look and maybe play...
  12. The click is caused when the sound level is...

    The click is caused when the sound level is abruptly dropped to zero. Instead of a mixer, try using an AudioEffectEnvelope with delay,attack,hold and decay all set to zero milliseconds. Set the...
  13. I'm using Arduino 1.8.10 and Teensyduino 1.49b2....

    I'm using Arduino 1.8.10 and Teensyduino 1.49b2. I can compile the PropShield example in the Mahony library and MahonyAHRS.h (installed with Teensyduino) does contain begin().

    Which version of...
  14. Replies
    14
    Views
    206

    I've realized that what is needed using this...

    I've realized that what is needed using this method is an amplifier and a mixer - not two mixers. A mixer always outputs an audio buffer even when all inputs are zero gain.
    18398
    When the amplifier...
  15. Replies
    14
    Views
    206

    Ah. Good question. Not the way I've shown it. I...

    Ah. Good question. Not the way I've shown it.
    I think another mixer between i2s1 and reverb1, which is turned on or off at the same time as switch1, should do the trick. The mixer won't output...
  16. Replies
    14
    Views
    206

    Ah. Good question. Not the way I've shown it. I...

    Ah. Good question. Not the way I've shown it.
    I think another mixer between i2s1 and reverb1, which is turned on or off as well as switch1, should do the trick. The mixer won't output anything and...
  17. Replies
    14
    Views
    206

    Add a mixer to bypass each effect. 18393 Set...

    Add a mixer to bypass each effect.
    18393
    Set the gain of one input to one and the other input to zero.
    Naming each one "switch", as I've done, instead of "mixer" will help to keep track of which...
  18. @Brian: I downloaded your library just to have a...

    @Brian:
    I downloaded your library just to have a look. It doesn't compile because BUFFER_SIZE is not defined. Looking through previous messages here, I assume that it should be 128.

    Pete
  19. Replies
    30
    Views
    1,679

    The code in 1.49 B1 of effect_delay.h is: #if...

    The code in 1.49 B1 of effect_delay.h is:

    #if defined(__IMXRT1062__)
    // 2.41 second maximum on Teensy 4.0
    #define DELAY_QUEUE_SIZE (106496 / AUDIO_BLOCK_SAMPLES)
    #elif...
  20. Replies
    11
    Views
    199

    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,...
  21. Almost certainly. Change them and see. Pete

    Almost certainly. Change them and see.

    Pete
  22. Replies
    5
    Views
    166

    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...
  23. 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...
  24. Replies
    7
    Views
    217

    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
  25. 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
  26. Replies
    6
    Views
    278

    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...
  27. Replies
    4
    Views
    164

    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...
  28. 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"
    ...
  29. //***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);...
  30. 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
  31. 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...
  32. Replies
    24
    Views
    888

    Ooopps. Yup, copy and paste error. Pete

    Ooopps. Yup, copy and paste error.

    Pete
  33. Replies
    24
    Views
    888

    Yeah, that one looked wrong to me too. Pete

    Yeah, that one looked wrong to me too.

    Pete
  34. Replies
    24
    Views
    888

    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...
  35. 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
  36. Replies
    7
    Views
    218

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

    When the switch is closed you should get a solid 0

    Pete
  37. 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
  38. Replies
    5
    Views
    176

    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?...
  39. 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
  40. 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
  41. 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
  42. @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...
  43. Thread: Underscore?

    by el_supremo
    Replies
    4
    Views
    126

    No problemo :D Pete

    No problemo :D

    Pete
  44. Thread: Underscore?

    by el_supremo
    Replies
    4
    Views
    126

    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...
  45. Replies
    10
    Views
    245

    Does it toggle the LED every two seconds? Pete

    Does it toggle the LED every two seconds?

    Pete
  46. Replies
    10
    Views
    245

    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
  47. 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...
  48. 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...
  49. Replies
    4,361
    Views
    496,547

    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...
  50. Replies
    4,361
    Views
    496,547

    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...
Results 1 to 50 of 500
Page 1 of 10 1 2 3 4