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.02 seconds.

  1. 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...
  2. 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...
  3. Replies
    18
    Views
    384

    @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...
  4. Replies
    18
    Views
    384

    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...
  5. 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...
  6. Replies
    5
    Views
    348

    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.


    //>>>...
  7. 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...
  8. 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) ({ \...
  9. 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
  10. 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
  11. Replies
    4
    Views
    535

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

    I concur with Paul - but I tried it on a T4.1....

    I concur with Paul - but I tried it on a T4.1.
    Is pin 14 (A0) on your T4.0 grounded?

    Pete
  13. What does this have to do with Teensy? Pete

    What does this have to do with Teensy?

    Pete
  14. In your original code, both sketches were only...

    In your original code, both sketches were only writing to their respective Serial Monitor.
    In your latest code, both sketches are writing only to the other Teensy. In the serial_slave, the last...
  15. Replies
    18
    Views
    632

    Whatever circuit you're using to drive the LEDs...

    Whatever circuit you're using to drive the LEDs works with the 5V output from an UNO. But a Teensy 3.2 outputs 3.3V which is probably insufficient. As @PaulS asks, post a circuit diagram and the...
  16. I'm just trying my version of the code with a...

    I'm just trying my version of the code with a timer interrupting at 200 or 400/sec and I see the same behaviour that you do.
    I suspect that it is something to do with USB buffering between the...
  17. If a variable is used both within an ISR and...

    If a variable is used both within an ISR and outside it, it must be declared volatile.
    Try this code, which incorporates @KrisKasprzak suggestions and a couple of my own.

    volatile uint32_t i = 0;...
  18. I don't think so, but I haven't used the ADCs...

    I don't think so, but I haven't used the ADCs much.

    Pete
  19. Change X to the number of the ADC you are using....

    Change X to the number of the ADC you are using. E.g.

    adc.adc0->setSamplingSpeed(ADC_SAMPLING_SPEED::LOW_SPEED); // change the sampling speed

    Pete
  20. If you have something else to do when a buffer is...

    If you have something else to do when a buffer is not available, you can call available() which will return false until a buffer is available during which time you can accomplish something else. Then...
  21. It does free blocks, but you immediately consume...

    It does free blocks, but you immediately consume them again and put them back in the buffer queue. The delay of 2-3ms once it reaches 32 buffers is because at 44100Hz it takes 2.9ms to play the...
  22. You must have an old version. TD 1.56 beta2 has ...

    You must have an old version. TD 1.56 beta2 has

    audio_block_t *block = receiveWritable();

    Pete
    P.S. It was found and fixed last year https://forum.pjrc.com/threads/64761
  23. Replies
    37
    Views
    1,557

    Please post your code as text in code tags. Copy...

    Please post your code as text in code tags. Copy the code as text, hit the # icon and then paste the text. The # icon generates the code tags for you.
    A screen capture of code is impossible to work...
  24. Replies
    24
    Views
    828

    We'll need a copy of FilenameFunctions.h to...

    We'll need a copy of FilenameFunctions.h to compile this code.

    Pete
  25. Replies
    24
    Views
    828

    The latest Arduino version is 1.8.16 You...

    The latest Arduino version is 1.8.16



    You have two versions of GifDecoder.h in separate Arduino/libraries - /GifDecoder and /AnimatedGIFs_SD-master
    The IDE is using /GifDecoder - is that the...
  26. Replies
    37
    Views
    1,557

    Oooops. In msg #17 I should have said Pin 1...

    Oooops. In msg #17 I should have said Pin 1 (Serial1 Tx) - not pin 2.

    Pete
  27. I tested your setupADC code. Before the...

    I tested your setupADC code. Before the resolution is set to 16, it will be 10. After that it is always 16.
    Are you sure that you call setupADC() before calling setupWAVHeader() ?

    Pete
  28. Replies
    37
    Views
    1,557

    Don't change the code. The code you showed in #8...

    Don't change the code. The code you showed in #8 is correct. It uses Serial1 for MIDI and the library will set the baud rate.
    All you have to do is change the connections as described by Paul in...
  29. The bit resolution (bits per sample) in the WAV...

    The bit resolution (bits per sample) in the WAV file is 10. This isn't valid for a WAV file. It must be 8,16, etc.
    This is why I asked what bit resolution you were using. In the code which...
  30. What ADC resolution are you using? Pete

    What ADC resolution are you using?

    Pete
  31. You would have to zip the file and attach that. ...

    You would have to zip the file and attach that.

    Pete
  32. Replies
    37
    Views
    1,557

    As @Paul says in #12, you have the pins wired the...

    As @Paul says in #12, you have the pins wired the wrong way round. The circuit I used when I tested your code has Teensy pin 2 (Serial1 Tx) connected through a series resistor to pin 5 of the MIDI...
  33. Replies
    37
    Views
    1,557

    There's nothing wrong with the code. It works, as...

    There's nothing wrong with the code. It works, as is, when connected to a SY77 keyboard using Serial1.
    There must be something wrong with the hardware connections.

    Pete
  34. Replies
    58
    Views
    4,959

    Thanks to all for info about the ExChar16_t...

    Thanks to all for info about the ExChar16_t problem in SD. I installed a fresh Arduino 1.8.16 and put TD 1.56.b2 on top and the example now compiles, as do a couple of my sketches which failed.
    ...
  35. When the file is closed in the example, it is...

    When the file is closed in the example, it is still 40MB long. You can reduce the file's length to whatever has been written so far by using the truncate() function.
    Changing this:

    ...
  36. Replies
    58
    Views
    4,959

    I installed b2 over b1 and have run into a...

    I installed b2 over b1 and have run into a problem. The example/SD/SdFat_Usage does not compile (but it does compile with 1.55).

    In file included from...
  37. Replies
    18
    Views
    1,066

    I've checked the two uSD cards, and their...

    I've checked the two uSD cards, and their contents are identical to the original Scenes directory.
    I'll try your newer version on just the T3.6 with the builtin uSD this time.

    Pete
  38. Replies
    18
    Views
    1,066

    Yes. Pete

    Yes.

    Pete
  39. Replies
    18
    Views
    1,066

    I have been running the original version of the...

    I have been running the original version of the code (with slight mods) on a Teensy 3.6 and a Teensy 3.2. I have a T3.5 but unfortunately it's busy right now.
    The T3.6 has been running non-stop for...
  40. digitalWrite(pin_number,pin_state); E.g. ...

    digitalWrite(pin_number,pin_state);

    E.g.

    digitalWrite(10,HIGH);

    They can be grouped in ports and accessed directly but unless you really need simultaneous access, it is easier to just...
  41. Replies
    14
    Views
    893

    It also fails for T3.2 with 1.8.16 and 1.56 beta...

    It also fails for T3.2 with 1.8.16 and 1.56 beta 1

    Pete
  42. The code below should use the queues to just pass...

    The code below should use the queues to just pass input from line-in to the output.
    You can then modify the loop which does the copying to implement the AGC. I may have a shot at it myself :)
    ...
  43. Excellent. Pete

    Excellent.

    Pete
  44. Replies
    4
    Views
    459

    The FFT will execute 43 times per second or once...

    The FFT will execute 43 times per second or once every 23 milliseconds. Which should be fast enough.
    However, you are redrawing every one of the 900 pixels each time. I haven't used led strips so I...
  45. digitalWrite(ADDR[6], ((j & 0x60) ? HIGH : LOW));...

    digitalWrite(ADDR[6], ((j & 0x60) ? HIGH : LOW));
    digitalWrite(ADDR[7], ((j & 0x40) ? HIGH : LOW));
    Presumably should be:

    digitalWrite(ADDR[6], ((j & 0x40) ? HIGH : LOW));
    ...
  46. I don't think Teensyduino 1.55 will work with...

    I don't think Teensyduino 1.55 will work with Arduino 1.8.13 (which is rather old anyway).
    Do a clean install of the latest version of Arduino 1.8.16 and then install Teensyduino 1.55 over that.
    ...
  47. I did get note repeats working but only after I...

    I did get note repeats working but only after I had modified the code quite a bit to use millis() as a "fudged" sort of clock source. My SY77 apparently will send a MIDI Clock signal but I haven't...
  48. Try initializing dm_channel_select to 1 (or...

    Try initializing dm_channel_select to 1 (or whatever channel your keyboard uses). If your MIDI device sends Active Sense, for example, dm_channel_received will be set to zero while the code is still...
  49. Replies
    4
    Views
    384

    Yes, soldering is essential. The pins aren't...

    Yes, soldering is essential. The pins aren't making a proper electrical contact.

    You will also need to solder the pins on the Teensy too.

    Pete
  50. Replies
    4
    Views
    384

    Are the Teensy pins soldered to the audio board?...

    Are the Teensy pins soldered to the audio board?
    Can you show a photo of the bottom of the audio board?

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