Forum Rule: Always post complete source code & details to reproduce any issue!

Search:

Type: Posts; User: h4yn0nnym0u5e

Page 1 of 9 1 2 3 4

Search: Search took 0.01 seconds.

  1. Replies
    161
    Views
    84,851

    CS42448 magic bit

    I was looking at this, and scanned the CS42448 data sheet to see if there might be a clue in there ... and maybe there is (DS648F5 page 28, Figure 12):
    29462
    I read this as saying that the internal...
  2. Replies
    54
    Views
    12,307

    I put the git clone into the libraries folder of...

    I put the git clone into the libraries folder of my Arduino sketches folder (i.e. as if I'd installed a third-party library). All being well, the Arduino magic should then use it in preference to the...
  3. Replies
    17
    Views
    313

    I've tended to use the audio adaptor for almost...

    I've tended to use the audio adaptor for almost all my playing, as it's so convenient. I have got a PT8211 DAC, which is certainly a lot cheaper and smaller, and seems to get good reviews (I got it...
  4. Replies
    17
    Views
    313

    Sounds like a fun project! For playing multiple...

    Sounds like a fun project! For playing multiple WAV files simultaneously from an SD card, you can try the basic Audio library, or you could give my improved player / recorder objects a spin....
  5. Replies
    96
    Views
    2,335

    Having some problems which I've traced to...

    Having some problems which I've traced to _newlib_version.h. My copy (from a fresh portable install) looks like:

    /* _newlib_version.h. Generated from _newlib_version.hin by configure. */
    /*...
  6. Replies
    96
    Views
    2,335

    Yes, but as the LC isn't T4.x this example...

    Yes, but as the LC isn't T4.x this example shouldn't be used with it at all. The compile warning is because the sketch is trying to set the time in microseconds (unsigned long), but the library is...
  7. Replies
    96
    Views
    2,335

    I do believe you're right! I was just blindly...

    I do believe you're right! I was just blindly making minimal changes to remove warnings and totally missed the static keyword... May be best if an issue is raised* in the repo for now, just in case...
  8. Replies
    96
    Views
    2,335

    OK, I've done most of what Paul mentioned in #64...

    OK, I've done most of what Paul mentioned in #64, and put PRs in, except for:


    XBee - not in the repo
    FNET - not in the repo
    FlexCAN - repo doesn't have these examples in
    FreqCount -...
  9. Replies
    96
    Views
    2,335

    Iíve done those and put PRs in for them Ö just...

    Iíve done those and put PRs in for them Ö just fixing the ones in Paulís repos, though a lot are way behind the upstream ones.
  10. Replies
    96
    Views
    2,335

    This seems an incorrect test, surely the LC isn't...

    This seems an incorrect test, surely the LC isn't in the T4 family?

    teensyLC FreqCount/examples/Serial_Output_T4/Serial_Output_T4.ino
    FreqCount documentation says FreqCount.begin() takes a...
  11. Replies
    96
    Views
    2,335

    On it now, but Paul's github doesn't seem to have...

    On it now, but Paul's github doesn't seem to have a fork of the XBee library - not sure how to proceed with that one, I'll skip it for the time being.
  12. Replies
    96
    Views
    2,335

    100% agree - warnings are relevant. In Real Life...

    100% agree - warnings are relevant. In Real Life writing medical device software, we configure compilers such that all warnings are errors, so you can't even test code until there are zero warnings....
  13. Great, glad you've got it working OK for you. ...

    Great, glad you've got it working OK for you.

    You could try reporting your issues with GUI++ on that thread, but I've not seen manicksan active recently, and also have no idea if he has access to...
  14. Replies
    13
    Views
    487

    Curious to know how much practical difference...

    Curious to know how much practical difference this will make? I'd be the first to admit I've no idea about how filters and effects work, but it seems to me that if the sample rate is "a little bit...
  15. Replies
    13
    Views
    487

    After a bit of modification and testing, I've put...

    After a bit of modification and testing, I've put in a pull request to make AudioInputSPDIF3 and AudioOutputSPDIF3 mutually compatible, so long as they're the only audio I/O objects in a system. The...
  16. Replies
    13
    Views
    487

    Can you try something? In...

    Can you try something?

    In libraries/Audio/output_spdif3.cpp, change line 266 thus:

    SPDIF_SCR_TXSEL(1) | // 0:off and output 0, 1:Feed-though SPDIFIN, 5:Tx Normal operation
    The original code...
  17. Replies
    13
    Views
    487

    Struggling to reproduce this on a Teensy 4.1,...

    Struggling to reproduce this on a Teensy 4.1, using the following code:

    #include "Audio.h"

    // select bertween async and sync S/PDIF input
    #define noUSE_ASYNC

    #if defined(USE_ASYNC)...
  18. Here are a couple of images which may be the sort...

    Here are a couple of images which may be the sort of thing you want to do? I expect the internal topologies of the effects are completely wrong, but they're just intended as examples!

    Parallel...
  19. Replies
    14
    Views
    321

    OK, had a quick look at that, and the file is at...

    OK, had a quick look at that, and the file is at 48kHz sample rate, not 44.1kHz. So that’s why it wouldn’t play…
  20. Replies
    14
    Views
    321

    Thanks. Probably can’t get to it until the...

    Thanks. Probably can’t get to it until the weekend (busy week!) but I’ll definitely take a look.
  21. I’m not saying you have to design using the tool,...

    I’m not saying you have to design using the tool, just use it to provide an explanatory drawing of what you want to achieve. manicksan’s GUI++ might work even better as he has a ”group” object to...
  22. Replies
    14
    Views
    321

    Do you have, or can you re-create, the original...

    Do you have, or can you re-create, the original file in non-working form? Iíve been working on an improved WAV file player object, and it would be good to make sure it can play unusual files,...
  23. Bit difficult to advise without being sure of...

    Bit difficult to advise without being sure of what you’re aiming for, but I’ll give it a go! A screenshot of the Audio Design Tool with a (simplified?) example of what you might want could possibly...
  24. Replies
    14
    Views
    321

    Does your file have any unusual metadata chunks...

    Does your file have any unusual metadata chunks in it? The WAV player object does try to skip these, but I've no idea how good a job it does. You only need the 'RIFF' header and 'fmt ' and 'data'...
  25. Replies
    14
    Views
    321

    No minimum length, no. 1Mb for a 5s stereo file...

    No minimum length, no. 1Mb for a 5s stereo file sounds about right, though if you used 48kHz it wouldn’t be much different in size, but it wouldn’t work!

    You’ve not stated Arduino or Teensyduino...
  26. Replies
    14
    Views
    321

    16 bit PCM at a sample rate of 44.1kHz, either...

    16 bit PCM at a sample rate of 44.1kHz, either mono or stereo.

    When you get that far, be sure to use the Audio System Design Tool, and check out the info pane on the right as you select the...
  27. Updated further, the SDpiano example is now...

    Updated further, the SDpiano example is now working OK as far as I can tell. Turns out it's a Bad Idea to close a file on the SD from within an ISR, while another file is being read from.
  28. Great news. I've just pushed a slightly...

    Great news. I've just pushed a slightly unofficial commit up which gives you the option in your sketch: enable() behaves the old way with no setting of the magic bit, or enable(true) will set the...
  29. Documentation added, along with a preliminary...

    Documentation added, along with a preliminary SDpiano example. The latter is not currently behaving very well when stressed, i.e. if you hit a lot of (short?) notes in quick succession, so it needs...
  30. I've pushed a new version with (undocumented ......

    I've pushed a new version with (undocumented ... sorry ... do it soon) ability to start or cue playback at a chosen point in the file. An optional float parameter to play(file) or cue(file) is in...
  31. That's good, I found a copy of those samples...

    That's good, I found a copy of those samples already converted to WAV, which saves a bit of work! Those also have filenames implying splits at velocities 48 and 96. It looks as if they do all have...
  32. Hi there. A fair question and one that in recent...

    Hi there. A fair question and one that in recent weeks 'as been much on my mind...

    8Mb of PSRAM can hold 4Msamples, or about 95s of audio. That's about 360ms for each of your 264 samples, so...
  33. I've added a second version of one of the demos:...

    I've added a second version of one of the demos: RecSynthMusic -> RecSynthMusicV2.

    This uses an IntervalTimer along with a super-low-priority "slave" interrupt to significantly improve the timing...
  34. Diagram added to .md showing what's going on...

    Diagram added to .md showing what's going on under the hood.
    29235
    Full explanation can be found here.
  35. Some updates made, including a start at...

    Some updates made, including a start at documentation, and a couple of examples.
  36. Thanks, it's great to have some feedback. I...

    Thanks, it's great to have some feedback.

    I did a 4m30s recording on my SanDisk Ultra 16Gb and it seemed to be fine, apart from some noise which I put down to very poor wiring to the audio...
  37. Great that you've made at least some progress. I...

    Great that you've made at least some progress. I suspect I need to stop being lazy and do a version of the library which can monitor the read/write times and delays, so we can pinpoint where issues...
  38. Replies
    7
    Views
    253

    Something like this? #include ...

    Something like this?

    #include <Audio.h>

    //==========================================================================================
    // Class to "grab" update responsibility so that audio...
  39. Replies
    7
    Views
    253

    Hmmm. Possibly you should have done it for most...

    Hmmm. Possibly you should have done it for most people's use cases, most of the time, but you just broke one of my test techniques:

    #include <Audio.h>

    // GUItool: begin automatically generated...
  40. No, you shouldn't have to add anything to the...

    No, you shouldn't have to add anything to the above code for it to work. If you look at main.cpp in cores you find:

    // Arduino's main() function just calls setup() and loop()....
    setup();...
  41. There is an example now - here's a sketch adapted...

    There is an example now - here's a sketch adapted straight from the "Recorder" example:

    // Record sound as a stereo WAV file data to an SD card, and play it back.
    //
    // Requires the audio...
  42. Yet Another File Player (and recorder)

    Hi folks

    I've been working on an improved (I think) set of objects for playing and recording WAV files from filesystems, principally SD card. You can find the preliminary effort at...
  43. If you can use WAV files, I’m working on...

    If you can use WAV files, I’m working on multi-file playing on this branch of the Audio library: https://github.com/h4yn0nnym0u5e/Audio/tree/feature/buffered-SD. Very much a work in progress, needs...
  44. Thanks. Never made a mistake like that myself, of...

    Thanks. Never made a mistake like that myself, of course :rolleyes:. Kudos to Gremlin for providing the code and example file to reproduce the problem exactly. And ftrias for TeensyDebug, which made...
  45. Here's your problem: size_t readField(File*...

    Here's your problem:

    size_t readField(File* file, char* str, size_t size, char* delim) {
    char ch;
    size_t n = 0;
    while ((n + 1) < size && file->read(&ch, 1) == 1) {
    // Delete CR.
    ...
  46. Replies
    50
    Views
    1,504

    OK, so usb_midi_flush_output() is in usb_midi.c...

    OK, so usb_midi_flush_output() is in usb_midi.c ... can you modify that so it does nothing IF a sysex is in progress, but works normally at all other times? You may need to add a parameter so you can...
  47. Replies
    50
    Views
    1,504

    No idea if itíll work, but line 957 of usb_dev.c...

    No idea if itíll work, but line 957 of usb_dev.c might be the one youíre looking for?
  48. Hmmm ... I don't have any experience of...

    Hmmm ... I don't have any experience of PlatformIO, I've been working using Windows and the Arduino IDE to ensure things work for the majority audience. I assume...

    You should only need to replace...
  49. Have you tried removing the LCD update calls and...

    Have you tried removing the LCD update calls and "flying blind" to see if the problems go away? Looking at the library, it seems it's a pretty time-consuming job to update it, which would at least...
  50. The sheer convenience and size of SD cards is why...

    The sheer convenience and size of SD cards is why I'm pursuing that route, though there's definitely a way to go yet. Even before I start attacking recording, my (externally generated) suite of test...
Results 1 to 50 of 445
Page 1 of 9 1 2 3 4