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
    145

    I tried your code on a T3.2 and used MIDI-OX on...

    I tried your code on a T3.2 and used MIDI-OX on the PC to monitor its output.
    When pushed Button 1 toggles between sending a MIDI Start and a MIDI Stop.
    The first push of Button 2 starts a timer....
  2. Replies
    12
    Views
    226

    Paul ported...

    Paul ported an Arduino watchdog library. The basic example works fine on a T3.2

    Pete
  3. Replies
    7
    Views
    205

    You're welcome. Pete

    You're welcome.

    Pete
  4. Replies
    1
    Views
    94

    I ran into that a while ago and I think the...

    I ran into that a while ago and I think the problem was something to do with there being a windows System Directory (I forget its name) OR there was a file with garbage characters in the name. The...
  5. Replies
    1
    Views
    124

    The audioShield.lineInLevel(level) function...

    The audioShield.lineInLevel(level) function controls line in.
    See the audio design tool for details of the level which can have values from zero to 15.

    Pete
  6. Replies
    7
    Views
    205

    FYI: I found that a PC program called Pocket MIDI...

    FYI: I found that a PC program called Pocket MIDI will send Clock messages. I modified the InputFunctionsComplete to print the identity of the cable for each Note On/Off and for Active Sensing and...
  7. Replies
    7
    Views
    205

    I modified a MIDI test program I wrote to also...

    I modified a MIDI test program I wrote to also read Note On messages and print which cable sent the message. I compiled it with USB type MIDIx4. Then I set up MIDI-OX on the PC to send notes to each...
  8. Replies
    7
    Views
    205

    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:
    ...
  9. Replies
    7
    Views
    205

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

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


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

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

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

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

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

    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...
  14. Replies
    6
    Views
    208

    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...
  15. 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
  16. Replies
    14
    Views
    383

    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...
  17. Replies
    14
    Views
    383

    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:

    ...
  18. Replies
    14
    Views
    383

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

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

    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) {
    ...
  21. Replies
    14
    Views
    383

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

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

    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
  24. Replies
    6
    Views
    252

    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...
  25. 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.
    ...
  26. Replies
    3
    Views
    239

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

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

    Pete
  27. 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...
  28. 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...
  29. Replies
    13
    Views
    647

    Paul has a soldering guide here...

    Paul has a soldering guide here

    Pete
  30. 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...
  31. Replies
    5
    Views
    331

    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.
    ...
  32. 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
  33. You are recording the Line Input. Try:...

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

    Pete
  34. 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...
  35. 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
  36. 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
  37. Replies
    5
    Views
    331

    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...
  38. Replies
    5
    Views
    331

    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,...
  39. 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...
  40. 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
  41. Excellent :) Pete

    Excellent :)

    Pete
  42. 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...
  43. Which versions of Arduino IDE and Teensyduino are...

    Which versions of Arduino IDE and Teensyduino are you using?

    Pete
  44. 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...
  45. 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...
  46. Replies
    2
    Views
    218

    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...
  47. 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...
  48. 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...
  49. Replies
    18
    Views
    980

    @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...
  50. Replies
    18
    Views
    980

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