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
    14
    Views
    128

    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...
  2. Replies
    14
    Views
    128

    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...
  3. Replies
    14
    Views
    128

    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...
  4. Replies
    14
    Views
    128

    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...
  5. @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
  6. Replies
    30
    Views
    1,034

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

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

    Almost certainly. Change them and see.

    Pete
  9. Replies
    5
    Views
    114

    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...
  10. 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...
  11. Replies
    7
    Views
    171

    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
  12. 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
  13. Replies
    6
    Views
    215

    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...
  14. Replies
    4
    Views
    126

    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...
  15. 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"
    ...
  16. //***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);...
  17. 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
  18. 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...
  19. Replies
    24
    Views
    704

    Ooopps. Yup, copy and paste error. Pete

    Ooopps. Yup, copy and paste error.

    Pete
  20. Replies
    24
    Views
    704

    Yeah, that one looked wrong to me too. Pete

    Yeah, that one looked wrong to me too.

    Pete
  21. Replies
    24
    Views
    704

    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...
  22. 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
  23. Replies
    6
    Views
    162

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

    When the switch is closed you should get a solid 0

    Pete
  24. 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
  25. Replies
    5
    Views
    154

    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?...
  26. 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
  27. 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
  28. 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
  29. @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...
  30. Thread: Underscore?

    by el_supremo
    Replies
    4
    Views
    115

    No problemo :D Pete

    No problemo :D

    Pete
  31. Thread: Underscore?

    by el_supremo
    Replies
    4
    Views
    115

    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...
  32. Replies
    10
    Views
    214

    Does it toggle the LED every two seconds? Pete

    Does it toggle the LED every two seconds?

    Pete
  33. Replies
    10
    Views
    214

    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
  34. 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...
  35. 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...
  36. Replies
    4,361
    Views
    483,488

    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...
  37. Replies
    4,361
    Views
    483,488

    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...
  38. Replies
    4,361
    Views
    483,488

    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%...
  39. Replies
    4
    Views
    406

    Frank B says it works...

    Frank B says it works

    Pete
  40. Replies
    24
    Views
    13,387

    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
  41. Yes, frequency is in Hz. Pete

    Yes, frequency is in Hz.

    Pete
  42. 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...
  43. Replies
    161
    Views
    12,084

    Install the new Teensyduino release 1.47...

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

    Pete
  44. Replies
    2
    Views
    182

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

    From the 1.47 release notice, Paul wrote:


    Pete
  45. 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...
  46. Replies
    4,361
    Views
    483,488

    Yes, it needs verbose to be selected. Pete

    Yes, it needs verbose to be selected.

    Pete
  47. Replies
    4,361
    Views
    483,488

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

    I compiled and installed your code. Works here.

    Pete
  48. Replies
    4,361
    Views
    483,488

    @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...
  49. Replies
    161
    Views
    12,084

    Yep, CR2032. Pete

    Yep, CR2032.

    Pete
  50. Replies
    161
    Views
    12,084

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