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. The setup function does not contain a...

    The setup function does not contain a Serial.begin(9600) statement.

    Pete
  2. Replies
    4
    Views
    68

    I know that feeling :) Glad to be of help. ...

    I know that feeling :)

    Glad to be of help.

    Pete
  3. Replies
    4
    Views
    68

    Here's a simple use of the play and record queue...

    Here's a simple use of the play and record queue objects. By default it plays stereo audio from line input to output (headphones). If a button is pushed, it simply swaps the left and right channels....
  4. Replies
    4
    Views
    68

    Have a look at the play and record "queue"...

    Have a look at the play and record "queue" objects in the audio library.

    Pete
  5. 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
  6. 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)
    ...
  7. 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...
  8. 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...
  9. @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
  10. 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...
  11. The audio library is there but USB Audio isn't...

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

    Pete
  12. 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...
  13. 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...
  14. Replies
    11
    Views
    305

    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,...
  15. 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...
  16. 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...
  17. 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...
  18. Replies
    14
    Views
    207

    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...
  19. Replies
    14
    Views
    207

    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...
  20. Replies
    14
    Views
    207

    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...
  21. Replies
    14
    Views
    207

    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...
  22. @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
  23. Replies
    30
    Views
    1,694

    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...
  24. Replies
    11
    Views
    205

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

    Almost certainly. Change them and see.

    Pete
  26. Replies
    5
    Views
    167

    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...
  27. 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...
  28. Replies
    7
    Views
    220

    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
  29. 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
  30. Replies
    6
    Views
    279

    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...
  31. Replies
    4
    Views
    165

    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...
  32. 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"
    ...
  33. //***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);...
  34. 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
  35. 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...
  36. Replies
    24
    Views
    912

    Ooopps. Yup, copy and paste error. Pete

    Ooopps. Yup, copy and paste error.

    Pete
  37. Replies
    24
    Views
    912

    Yeah, that one looked wrong to me too. Pete

    Yeah, that one looked wrong to me too.

    Pete
  38. Replies
    24
    Views
    912

    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...
  39. 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
  40. Replies
    7
    Views
    220

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

    When the switch is closed you should get a solid 0

    Pete
  41. 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
  42. Replies
    5
    Views
    177

    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?...
  43. 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
  44. 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
  45. 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
  46. @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...
  47. Thread: Underscore?

    by el_supremo
    Replies
    4
    Views
    126

    No problemo :D Pete

    No problemo :D

    Pete
  48. 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...
  49. Replies
    10
    Views
    246

    Does it toggle the LED every two seconds? Pete

    Does it toggle the LED every two seconds?

    Pete
  50. Replies
    10
    Views
    246

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