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
    3
    Views
    43

    There's an example in...

    There's an example in Examples|Teensy|USB_MIDI|InputFunctionsComplete which might help. There is this comment in the myNoteOn handler which refers to the getCable function that @oddson mentioned:
    ...
  2. Replies
    3
    Views
    43

    EDIT: On second thought, I'm not sure how to...

    EDIT: On second thought, I'm not sure how to handle that.


    Pete
  3. I think we're going to need to see the code. ...

    I think we're going to need to see the code.

    Pete
  4. Have you tied defining the sysex buffer to...

    Have you tied defining the sysex buffer to be,say, 200 bytes?

    Pete
  5. Change the second line to: int32_t...

    Change the second line to:

    int32_t *TestChunkAdress=&TestChunkMemory;
    This declares TestChunkAddress to be a pointer to (address of) an int32_t.

    Pete
  6. Replies
    6
    Views
    195

    I think the problem may be that the T4.0 is much...

    I think the problem may be that the T4.0 is much faster than the UNO and can, for example, set the DC pin high or low and send the first byte of command or data much faster than the epaper controller...
  7. Replies
    6
    Views
    195

    This webpage...

    This webpage mentions a newer version of the display (V2) which requires an update to the driver. Do you have a V2 board (with V2 sticker on the back)?

    Also, can you provide a photo of the back of...
  8. Whatever is generating the notes is presumably...

    Whatever is generating the notes is presumably sending the timing message. This may be an optional setting in the MIDI device you're using and can be switched off.

    Pete
  9. Replies
    14
    Views
    283

    if (q1a == 1 && q2a == 1) { It would be safer to...

    if (q1a == 1 && q2a == 1) {
    It would be safer to do this:

    if (q1a > 0 && q2a > 0) {

    What is the value of "getsize"? You have some inconsistent declarations involving getsize which don't make...
  10. Replies
    14
    Views
    283

    This has nothing to do with I2C. AHA! When you...

    This has nothing to do with I2C.
    AHA! When you enable the queue, not only must you free the buffer, but first you MUST read it even if you do nothing with the data.

    Try this in loop:

    ...
  11. Replies
    14
    Views
    283

    Try this: #include #include...

    Try this:

    #include <Bounce2.h>
    #include <Audio.h>
    #include <Wire.h>
    #include <SPI.h>
    #include <SD.h>
    #include <SerialFlash.h>

    AudioInputI2S line_in; //xy=156,246
  12. Replies
    14
    Views
    283

    I can't debug what I can't see, but at a guess...

    I can't debug what I can't see, but at a guess I'd say you are doing the same kind of thing as in this example code. You aren't handling the display efficiently and ensuring that audio buffers are...
  13. Replies
    14
    Views
    283

    At the very least, you need to free the buffers....

    At the very least, you need to free the buffers. Add this in the loop function:

    if(queue_left.available() > 0) {
    queue_left.freeBuffer();
    }
    if(queue_right.available() > 0) {
    ...
  14. Replies
    14
    Views
    283

    You aren't doing anything with the queued buffers...

    You aren't doing anything with the queued buffers when you press the button. You need to at least check if a buffer is available and, if so, read it (if you're going to process that data) and then...
  15. Replies
    6
    Views
    230

    The error messages suggest that you aren't using...

    The error messages suggest that you aren't using Windows. Download the latest version of Arduino IDE for your OS and the latest Teensyduino and then install them.

    Pete
  16. Replies
    6
    Views
    230

    You're using a very old version of the IDE and,...

    You're using a very old version of the IDE and, presumably, TeensyDuino.
    Windows IDE is version 1.8.19 and TeensyDuino is 1.56

    Pete
  17. Replies
    6
    Views
    230

    That code compiles for me. Make sure that you...

    That code compiles for me. Make sure that you have selected the Teensy 3.6. If you're using the Arduino IDE it is selected in Tools|Boards and when you have a board selected, the very bottom line in...
  18. Yes, the saturation bit position and the optional...

    Yes, the saturation bit position and the optional number of bits to shift in a USAT instruction are hard-coded within the instruction itself. I don't see any way that you can make it a variable.
    ...
  19. Replies
    3
    Views
    212

    Can you post photos of a shield attached to a...

    Can you post photos of a shield attached to a T3.2?

    Pete
  20. An array would be the most convenient way to...

    An array would be the most convenient way to handle it. If you don't know how to use arrays, you've got some reading and learning ahead of you :)
    You code the major array like this:


    int...
  21. I'm not familiar with music theory but I think...

    I'm not familiar with music theory but I think you can represent the four chords as offsets from the root note, like this:
    1st- 0, 4, 1
    2nd- 5, 9, 0 (Does the order actually matter when sending a...
  22. Replies
    13
    Views
    617

    Paul has a soldering guide here...

    Paul has a soldering guide here

    Pete
  23. Did you mean CSV? The three compression methods...

    Did you mean CSV?
    The three compression methods in msg #1 all require that you provide the whole file. You could do it line by line (i.e. each line is a "file") but it would not provide very good...
  24. Replies
    5
    Views
    311

    I think there may be an issue with the sample...

    I think there may be an issue with the sample rate of the USB and of the Teensy audio being slightly different. I can't remember whether that was specifically when using the audio board though.
    ...
  25. BTW. How are you connecting that microphone to...

    BTW. How are you connecting that microphone to the audio shield?
    Can you attach a circuit diagram and/or a photo?

    Pete
  26. You are recording the Line Input. Try:...

    You are recording the Line Input. Try:
    sgtl5000_1.inputSelect(AUDIO_INPUT_MIC);

    Pete
  27. Are you running the same sketch in both Teensys?...

    Are you running the same sketch in both Teensys? If so, try separating the sketches so that the recording teensy only records from AudioInputUSB and writes to Serial1. The receiving teensy only...
  28. Remove the delay at the end of the loop function....

    Remove the delay at the end of the loop function. It is slowing down the processor's response to incoming audio and serial data.

    Pete
  29. You're going to have to post an example sketch...

    You're going to have to post an example sketch which demonstrates the problem.

    Pete
  30. Replies
    5
    Views
    311

    Can you post an example RECORD.RAW file? You'll...

    Can you post an example RECORD.RAW file? You'll need to zip it to attach it here.

    I'm wondering if the recorder sketch is dropping packets because of the SD speed. On playback it would sound like...
  31. Replies
    5
    Views
    311

    It works for me when playing back the file with...

    It works for me when playing back the file with the recorder sketch (but on a T4.0). The audio board records and plays back at 44.1kHz. If you are playing the record.raw file with a separate program,...
  32. I can't get liblzf to compile (yet). I have...

    I can't get liblzf to compile (yet).

    I have fastlz installed as a library and added an example which does the same test as in minilzo - compress 128kB of zero and then decompress it. The example...
  33. Which Teensy? Here's the test sketch for...

    Which Teensy?

    Here's the test sketch for minilzo converted (easily) to run on a T4.0 and T4.1. The test compresses and decompresses a 128kB array of zero.
    26936

    Pete
  34. Excellent :) Pete

    Excellent :)

    Pete
  35. You're using pin 10 for the SDcard Chip Select...

    You're using pin 10 for the SDcard Chip Select and for an LED. Try an unused pin for the LED - but one which also has PWM capability.
    But when you're mapping the peak value to zero or one, you might...
  36. Which versions of Arduino IDE and Teensyduino are...

    Which versions of Arduino IDE and Teensyduino are you using?

    Pete
  37. The SPI pins are only used for the SD card (and...

    The SPI pins are only used for the SD card (and memory chip, if present) so you can use the SD card while running audio. (The audio board is controlled using the I2C pins 18 and 19)

    The T3.2 only...
  38. Wire the RFM69 module like this: 7 (MOSI), 12...

    Wire the RFM69 module like this: 7 (MOSI), 12 (MISO), 14 (SCK) and then use a different pin for SS (CS) - try pin 4. When pin 10 is asserted, the audio board's SD card will use pins 7, 12 14. When...
  39. Replies
    2
    Views
    208

    SPI pins on a Teensy LC: LC pin 11 (MOSI0):...

    SPI pins on a Teensy LC:

    LC pin 11 (MOSI0): DAT -> Arduino Pin 11 // SPI Data pin

    LC Pin 13 (SCK0): CLK -> Arduino Pin 13 // SPI Clock pin
    - yes, this is also the LED pin.

    LC pin 10...
  40. Three observations after a brief perusal of the...

    Three observations after a brief perusal of the code.
    In the OnNoteOn function you have:

    if (mapStatus>0) { //Executes if button is pressed...
  41. I meddled with the FRACMUL_SHL inline function in...

    I meddled with the FRACMUL_SHL inline function in dspinst.h and changed smull to umull and removed the extraneous instructions and parameter list.
    I think this is correct.

    static inline int32_t...
  42. Replies
    18
    Views
    930

    @soky157 Can you try again to send photos of your...

    @soky157 Can you try again to send photos of your T4.1 and audio board? Easiest thing is to use JPG format and make sure they're under the size limit.

    What I usually do is use long-pin female...
  43. Replies
    18
    Views
    930

    If you don't want to desolder the sockets on the...

    If you don't want to desolder the sockets on the audio board (I would hate to have to do that!), I think I would put the T4.1 on the breadboard and wire the audio board to the breadboard. You would...
  44. Two problems. The connections from the jack to...

    Two problems. The connections from the jack to the line-in pins seem to be just touching rather than being soldered. They will not be making good electrical contact.
    Many of the solder joints on the...
  45. Replies
    5
    Views
    605

    This is a quick and dirty way to write the text...

    This is a quick and dirty way to write the text to the screen. It would need to be modified if the text file contains more lines than will fit on the screen, or if the lines are too long.


    //>>>...
  46. In my view, the problem lies within the library...

    In my view, the problem lies within the library itself. The only reason that the example code doesn't compile is because the private receiveResponse function requires a "size_t length" argument which...
  47. AudioMemory(x) just allocates a block of x...

    AudioMemory(x) just allocates a block of x buffers to the audio system and then initializes them. It is just a macro which is defined like this (in AudioStream.h):

    #define AudioMemory(num) ({ \...
  48. When you initialize audio in setup(); ...

    When you initialize audio in setup();

    sgtl5000_1.enable();
    sgtl5000_1.volume(volume / 1023.);
    // I want output on the line out too
    sgtl5000_1.unmuteLineout();

    Pete
  49. I tried the code in #3 on a T3.6. It works (LED...

    I tried the code in #3 on a T3.6. It works (LED flashes) with the analogReadAveraging commented and uncommented.

    Pete
  50. Replies
    4
    Views
    693

    You are missing at least two things. You need to...

    You are missing at least two things. You need to define an output object for I2S, otherwise processing audio packets doesn't occur. Add this at the end of the audio connections:

    AudioOutputI2S ...
Results 1 to 50 of 500
Page 1 of 10 1 2 3 4