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
    19
    Views
    70

    No. All you do is comment the one statement in...

    No. All you do is comment the one statement in the loop statement that I showed.

    // getAnalogData();
    Here's the whole thing:

    /* Use arrays to manage lists of knobs/pots and pushbuttons.

    By...
  2. Replies
    19
    Views
    70

    Let's get the digital pins working first. Modify...

    Let's get the digital pins working first. Modify the code in the loop function and just comment out the analog part:

    // getAnalogData();
    That will stop it flooding the receiving end with...
  3. Replies
    19
    Views
    70

    I haven't a clue what you have tried with that...

    I haven't a clue what you have tried with that sketch but obviously everything you've done is wrong.
    Post a version of the sketch, explain what it is doing wrong and perhaps we can figure it out so...
  4. Replies
    19
    Views
    70

    Have you modified the Many_Buttons_Knobs code to...

    Have you modified the Many_Buttons_Knobs code to use your specific analog and digital pins. If so, which ones are you using? Post the code.

    Pete
  5. Replies
    19
    Views
    70

    That's because it configures each digital pin...

    That's because it configures each digital pin with an internal pullup resistor:

    pinMode(DIGITAL_PINS[i], INPUT_PULLUP);
    which means you don't need to add external resistors.

    Which Teensy...
  6. Replies
    3,744
    Views
    387,823

    @mjs513: I used the minray code which is at...

    @mjs513: I used the minray code which is at various places on the internet. I've attached a zip of the code and an image.

    Pete
  7. Replies
    10
    Views
    105

    The code is set up to read a button on pin 2....

    The code is set up to read a button on pin 2. Even if you just have a piece of wire connected to pin 2, the sound should be played whenever you touch the wire to ground and then release it again.
    ...
  8. Replies
    10
    Views
    105

    The first problem is that you've got two...

    The first problem is that you've got two definitions of setup()

    void setup() {
    // put your setup code here, to run once:

    //six more lines from magazine
    void setup() {
    You've also got two...
  9. Replies
    10
    Views
    105

    #include “AudioSampleKick.h” Those are the wrong...

    #include “AudioSampleKick.h”
    Those are the wrong kind of quotes. Use this:

    #include "AudioSampleKick.h"

    Pete
  10. Replies
    11
    Views
    112

    Your code is incomplete and incorrect. Try this...

    Your code is incomplete and incorrect. Try this code - it compiles for a Teensy 2 but I can't test it.

    Pete


    #include <Bounce.h>
    Bounce button3 = Bounce(3,5);
    Bounce button4 = Bounce(4,5);...
  11. Try increasing the AudioMemory. Maybe...

    Try increasing the AudioMemory. Maybe AudioMemory(160);

    Pete
  12. Replies
    3,744
    Views
    387,823

    In order to compare Teensy processor speeds I...

    In order to compare Teensy processor speeds I ported a couple of CPU-intensive programs to T4b2.
    The first is a ray-tracing program which does a *lot* of single precision floating point calculations...
  13. Thread: Bad Board?

    by el_supremo
    Replies
    16
    Views
    154

    Specifically which vendor did you get the T3.5...

    Specifically which vendor did you get the T3.5 from? It may not be a genuine PJRC board, in which case there's no guarantee that it'll work at all.

    Your image attachment didn't work.

    Pete
  14. Replies
    3,744
    Views
    387,823

    @Frank B: I tricked play_sd_wav.cpp into playing...

    @Frank B:
    I tricked play_sd_wav.cpp into playing 8kHz and 12kHz. However, on closer listening to the audio, the 12kHz signal is noisy on playback. I'm still trying to figure out what's going on.
    ...
  15. Replies
    3,744
    Views
    387,823

    @Frank B: I have a test WAV file that is sampled...

    @Frank B:
    I have a test WAV file that is sampled at 12kHz. I've modified the example WavFilePlayer to add setI2SFreq and then play the wav files like this:

    setI2SFreq(12000);
    ...
  16. Replies
    3,744
    Views
    387,823

    Thanks Frank. That works with the demo...

    Thanks Frank. That works with the demo wavfileplayer but not with my code so I have some digging to do.

    Pete
  17. Replies
    3,744
    Views
    387,823

    @Frank B I just received the T4 beta today so...

    @Frank B
    I just received the T4 beta today so I'm playing catch up.
    Is there a new version of your setI2SFreq function - I can't find any mention of it in this thread? I need to set the audio...
  18. cmd+=SerialRead(); You are calling the...

    cmd+=SerialRead();
    You are calling the SerialRead function from within itself. That's called recursion and is totally inappropriate here because it will fill up the stack and crash the processor,...
  19. Replies
    36
    Views
    897

    I've been trying to get FastCrc to handle the...

    I've been trying to get FastCrc to handle the 14-bit FT4 CRC with no luck so far. I've added this to FastCRChw.cpp:

    uint16_t FastCRC14::ft4(const uint8_t *data,const uint16_t datalen)
    {
    return...
  20. Replies
    36
    Views
    897

    I'm in Canada and about 650 miles from the...

    I'm in Canada and about 650 miles from the nearest coastline.

    Pete
  21. Replies
    36
    Views
    897

    Hold off for now, I haven't been able to get ft4...

    Hold off for now, I haven't been able to get ft4 to work with FastCRC (yet).

    Pete
  22. Replies
    36
    Views
    897

    The data does not require adjustment. I added...

    The data does not require adjustment.

    I added code to FastCRC to do the FT4 CRC. In FastCRChw.cpp:

    uint16_t FastCRC14::ft4(const uint8_t *data,const uint16_t datalen)
    {
    return...
  23. Replies
    36
    Views
    897

    @ TelephoneBill: I had forgotten that I made...

    @ TelephoneBill: I had forgotten that I made that CRC routine very specific to the CRC used in the FT4 protocol. I did a quick test last night and it doesn't handle messages of any length other than...
  24. Replies
    36
    Views
    897

    @ TelephoneBill: I haven't tested that crc code...

    @ TelephoneBill: I haven't tested that crc code with anything other than the 77 bit messages in the FT4 protocol. I'll try to verify that it works for 56 bit messages in the next day or so.

    Pete
  25. Replies
    36
    Views
    897

    @Frank B: Here's 6 more test strings and their...

    @Frank B: Here's 6 more test strings and their CRC


    0x4F, 0x76, 0x4C, 0xA4, 0xE2, 0x61, 0x2F, 0xF2, 0x65, 0xB0, 0x00, 0x00,
    crc14 = 0x2F7A

    0x4A, 0x5E, 0xD7, 0xD4, 0xE3, 0x33, 0x6E, 0xDD,...
  26. Replies
    36
    Views
    897

    I'll try to dig up some more but here's one test...

    I'll try to dig up some more but here's one test string:

    #include "my_crc14.h"
    uint8_t test[] = {0x29,0x66,0x1A,0xBE,0x74,0x6D,0x2A,0x31,0x48,0x28,0x00,0x00};

    void setup(void)
    {
    ...
  27. Replies
    36
    Views
    897

    Hmmmm. I wonder what you're up to :) I vaguely...

    Hmmmm. I wonder what you're up to :)

    I vaguely remember looking at the hardware to see if it could do CRC14 and concluding that it couldn't so I wrote a routine to do the CRC14 used by the FT8 and...
  28. After .begin() add this: while(!Serial);...

    After .begin() add this:

    while(!Serial);
    This gives the Serial device time to show up.

    Pete
  29. Replies
    9
    Views
    370

    I was able to test your code with a T3.6 and...

    I was able to test your code with a T3.6 and audio board with SGTL5000. I used the MIDI-Ox keyboard on Windows to send MIDI notes to the Teensy via USB. It works, even with the mixer at its default...
  30. Replies
    2
    Views
    206

    You've left out the important bits. What is the...

    You've left out the important bits. What is the code doing when it gets Note on/off or Control Change? Post ALL the code.
    But why not handle the 0xF8 in the switch statement? You're handling a...
  31. Works fine for me with a Chronodot and Teensy 3.6...

    Works fine for me with a Chronodot and Teensy 3.6
    Have you got 4.7k pullups on SDA and SCL?

    Pete
  32. The code (that you didn't post) to read the RTC...

    The code (that you didn't post) to read the RTC is resetting the clock to when the code was last compiled. You need to upload that code once more and then comment out the code that changes the clock....
  33. Replies
    6
    Views
    308

    and it also works with this: I = 0; Y =...

    and it also works with this:

    I = 0;
    Y = map(I,0,127,R,P);

    Pete
  34. Replies
    6
    Views
    308

    Works for me on a T3.6 void setup(void) {...

    Works for me on a T3.6

    void setup(void)
    {
    byte R=3; // for example
    byte P=0; // for example
    byte I;
    byte Y;
  35. Try adding these three statements at the...

    Try adding these three statements at the beginning of the setup function.

    Serial.begin(9600);
    while(!Serial);
    delay(1000);

    Pete
  36. These handlers appear to be defined in MIDI 4.3.1...

    These handlers appear to be defined in MIDI 4.3.1
    setHandleClock
    setHandleStart
    setHandleContinue
    setHandleStop

    Pete
  37. Replies
    9
    Views
    370

    You haven't set any gains for the mixer but for...

    You haven't set any gains for the mixer but for that test you don't need a mixer. Try this (or add gain for the mixer)

    AudioSynthWaveform waveform1; //xy=398,195
    AudioEffectEnvelope ...
  38. Replies
    9
    Views
    370

    When he plays a MIDI note, does he see the output...

    When he plays a MIDI note, does he see the output from this?

    Serial.print("note on:");
    Serial.print("frequency = ");
    Serial.println(freq);
    If so, does it report the correct frequency?
    ...
  39. Can you post a diagram of how you have it wired,...

    Can you post a diagram of how you have it wired, including the power? And/or post a photo.

    Pete
  40. As I mentioned in #6, you don't need to define...

    As I mentioned in #6, you don't need to define the right channel in the AudioConnections (it would have helped if you had posted ALL your code in #5).

    Pete
  41. Search for setI2SFreq Pete

    Search for setI2SFreq

    Pete
  42. blockR = receiveWritable(1); // right Since the...

    blockR = receiveWritable(1); // right
    Since the input signal is mono in the left channel, you don't need to receive a buffer from the right channel. Just allocate one and copy the data from the left...
  43. It would help immensely if you posted all your...

    It would help immensely if you posted all your code (in code tags).


    transmit(blockL,0); // does this trans only Left?
    transmit(blockR,1); // does this trans only Right?
    Yes, to both.
    ...
  44. Replies
    0
    Views
    168

    Adding 12kHz sample rate to setI2SFreq

    I've been working on a program which plays audio at a sampling rate of 12kHz and I just couldn't get it to work. Then I had a look at the code for setI2SFreq and (finally) realized that it doesn't...
  45. In the OnNoteOn and OnNoteOff functions you just...

    In the OnNoteOn and OnNoteOff functions you just need to examine the value of note and use that to determine which LED to use.
    A simplistic version might be:

    void OnNoteOn(byte channel, byte...
  46. In C++ you can't count on the alignment of the...

    In C++ you can't count on the alignment of the elements of a struct. It is more efficient for "uint16_t network_addr_le;" to be aligned on a 16-bit word boundary, so that's what the compiler does....
  47. Replies
    4
    Views
    473

    Try this which inputs from channel 0 of adc2: ...

    Try this which inputs from channel 0 of adc2:

    AudioConnection patchCord1(adc2, 0, multiply1, 1);

    Pete
  48. Replies
    11
    Views
    393

    The Ethernet board is probably interfering with...

    The Ethernet board is probably interfering with the led pin. Pin 13 is the LED pin but it is also the SCK pin for SPI which is used by the Ethernet board.
    Try connecting a LED to a free pin (with a...
  49. The code you posted isn't a function, it's a...

    The code you posted isn't a function, it's a snippet and there are some variables such as knob_A3 which aren't declared so there's no way to be sure what's happening. Post complete code.
    Meanwhile,...
  50. Replies
    2
    Views
    310

    If you need the code for Arduino, why are you...

    If you need the code for Arduino, why are you asking about it on the Teensy forum? Again.

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