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
    34
    Views
    457

    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...
  2. Replies
    34
    Views
    457

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

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

    Pete
  3. Replies
    34
    Views
    457

    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
  4. Replies
    34
    Views
    457

    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...
  5. Replies
    34
    Views
    457

    @ 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...
  6. Replies
    34
    Views
    457

    @ 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
  7. Replies
    34
    Views
    457

    @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,...
  8. Replies
    34
    Views
    457

    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)
    {
    ...
  9. Replies
    34
    Views
    457

    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...
  10. After .begin() add this: while(!Serial);...

    After .begin() add this:

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

    Pete
  11. Replies
    8
    Views
    251

    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...
  12. Replies
    2
    Views
    150

    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...
  13. 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
  14. 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....
  15. Replies
    6
    Views
    237

    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
  16. Replies
    6
    Views
    237

    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;
  17. 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
  18. 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
  19. Replies
    8
    Views
    251

    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 ...
  20. Replies
    8
    Views
    251

    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?
    ...
  21. 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
  22. 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
  23. Search for setI2SFreq Pete

    Search for setI2SFreq

    Pete
  24. 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...
  25. 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.
    ...
  26. Replies
    0
    Views
    114

    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...
  27. 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...
  28. 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....
  29. Replies
    4
    Views
    279

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

    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...
  31. 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,...
  32. Replies
    2
    Views
    182

    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
  33. Before compiling, use the Tools menu and select...

    Before compiling, use the Tools menu and select "USB Type". From the dropdown menu select "Serial + Keyboard + Mouse+ Joystick". Then compile.

    Pete
  34. Replies
    4
    Views
    168

    That message is just a summary at the end. The...

    That message is just a summary at the end. The real error message occurred somewhere before that.
    The real error was probably complaining about this typo:

    flex_siganl3 = constrain(buf[4], F3MIN,...
  35. I haven't tried it but I suspect that it won't...

    I haven't tried it but I suspect that it won't work. Give it a shot though - see what happens.

    Pete
  36. Are you sure that the sketch really did upload...

    Are you sure that the sketch really did upload correctly? If you are uploading the same sketch as was in there before, maybe the upload fails and the T3.2 is running what was already loaded.
    Try...
  37. Replies
    3
    Views
    124

    BTW. The gains for the inputs to mixer2 haven't...

    BTW. The gains for the inputs to mixer2 haven't been set.

    Pete
  38. Replies
    3
    Views
    124

    I think you are overdriving the audio in mixer1....

    I think you are overdriving the audio in mixer1. The sum of the gains in a mixer should be 1. But if the pot is at its maximum value, your code will set each of the gains to 1 making a total of 3....
  39. Replies
    2
    Views
    140

    The WAVESHAPE_EXAMPLE array is short enough that...

    The WAVESHAPE_EXAMPLE array is short enough that it only has a significant effect on the high frequency content of the audio.
    Try using a larger array with more changes in the amplitude. This one is...
  40. Can you post example code which demonstrates it?...

    Can you post example code which demonstrates it?

    Pete
  41. You also need a connection from the right channel...

    You also need a connection from the right channel input to queue2

    AudioConnection patchCord1a(i2s2, 1, queue2, 0);

    Pete
  42. I forgot to ask you this before: why do you use...

    I forgot to ask you this before: why do you use 64-bits? The longest standard MIDI message is 3 bytes which easily fits into 32 bits even with the added start and stop bits. System Exclusive...
  43. Replies
    8
    Views
    172

    How big a matrix are you using? Pete

    How big a matrix are you using?

    Pete
  44. You have two versions of the UTFT library. The...

    You have two versions of the UTFT library. The IDE is using the one for Arduino and ignoring the one for Teensy. Temporarily move the Arduino UTFT library out of the libraries directory and try...
  45. n is the number of bytes actually read by...

    n is the number of bytes actually read by rawfile.read. Normally it will be AUDIO_BLOCK_SAMPLES*2, in which case the for loop won't do anything. But if it returns less than a full block (presumably...
  46. byte convertBinToDec() { byte result = 0; ...

    byte convertBinToDec() {
    byte result = 0;
    for(int i = 0; i < numBits; i++) {
    result |= masterBinCountIn[(11-i)] << i;
    }
    return result;
    }

    numBits is defined to be 12. A byte can...
  47. The connections are only using the left channel...

    The connections are only using the left channel (0).
    Use this connection to route the right channel from the line-in to the right channel output:

    AudioConnection patchCord4(playRaw1, 1,...
  48. I can't count. Note E4 is 0x40, not 0x41. Pete

    I can't count. Note E4 is 0x40, not 0x41.

    Pete
  49. Yup, it compiles with the most recent...

    Yup, it compiles with the most recent Teensyduino.

    Pete
  50. This is the sort of thing I was suggesting. It...

    This is the sort of thing I was suggesting. It only needs a normal MIDI byte string and its length. The interrupt routine takes care of the start and stop bits and sending the data bits low-order bit...
Results 1 to 50 of 500
Page 1 of 10 1 2 3 4