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

Search:

Type: Posts; User: manicksan

Page 1 of 5 1 2 3 4

Search: Search took 0.01 seconds.

  1. Replies
    4
    Views
    93

    you could probably do it using the code...

    you could probably do it

    using the code inside:
    https://github.com/PaulStoffregen/Audio/blob/master/play_sd_wav.cpp

    function:
    AudioPlaySdWav::consume(uint32_t size)

    which takes care of the...
  2. Replies
    11
    Views
    386

    I think $45 and specially $99 is alot overpriced...

    I think $45 and specially $99 is alot overpriced for a IC that only costs $5 each.
    Even with all the components and PCB it would never reach the prices. No its because its made specially for...
  3. Check this...

    Check this
    https://forum.pjrc.com/threads/64225-Newbie-on-PlatformIO-with-Teensy?p=258173&viewfull=1#post258173
    Post #8
  4. Funny thing I recent bought a cs42448...

    Funny thing
    I recent bought a cs42448 (+teensy4.1 and some other things) from mouser but did not know then about the extra two inputs provided by pcm1808, if I want the extra two inputs I guess I...
  5. Your can use a simple buffer as in this post...

    Your can use a simple buffer as in this post (#29)
    https://forum.pjrc.com/threads/66086-Read-txt-file-sent-from-PC?p=268825&viewfull=1#post268825
    And when you have received 0x0a (LF or '\n')
    You...
  6. surely it have enough memory for that application...

    surely it have enough memory for that application
    even a pic18f4550 have 32KB flash and 2KB ram
    and that worked super as a midi2uart
    until I did buy a teensy 4 that could also have the synth part
  7. Replies
    16
    Views
    563

    I would ask the threadstarter what specific...

    I would ask the threadstarter
    what specific devices are you gonna use?
    Just to clarify some things
  8. Replies
    37
    Views
    10,495

    Maybe you missed this thread...

    Maybe you missed this thread
    https://forum.pjrc.com/threads/66180-Teensy-4-1-Debug-Mod-Project
    it would be the same approach for teensy 4.0
  9. Replies
    2
    Views
    120

    yes it uses the progmem syntax static const...

    yes it uses the progmem syntax

    static const PROGMEM uint32_t sample_0_Backsaw_BACKSAW[20864]

    and contains
    AudioSynthWavetable::SAMPLES_PER_MSEC

    which was only
    SAMPLES_PER_MSEC
    in the old...
  10. Replies
    16
    Views
    563

    Your could use simple levelshifters as this one...

    Your could use simple levelshifters as this one
    https://www.sparkfun.com/products/12009
    There is also special ics that make that possible.
  11. Replies
    2
    Views
    120

    Updated SoundFontDecoder + standalone windows .exe

    Hi
    I Have created a github repository which contains a updated version of the SoundFontDecoder
    https://github.com/manicken/SoundFontDecoder
    that means it's compatible with the updated version of...
  12. 1. I don't think VSCODE will die any time soon. ...

    1. I don't think VSCODE will die any time soon.

    2. actually the extensions are written in TypeScript which is a typed language, so the "precompiler"(or what to call it) warns when using non typed...
  13. I have an idea to make VisualTeensy multiplatform...

    I have an idea to make VisualTeensy multiplatform

    why not create a plugin for vscode out of visual teensy

    Then Paul @ PJRC only need to have a TeensyDuino installer that don't require that...
  14. Replies
    6
    Views
    251

    but the easiest way is using the RT1060 input...

    but the easiest way is using the RT1060 input capture mode which can then be used to measure the high pulse time which is the the only one needed to determine if the receiving bit is a zero or one,...
  15. Replies
    6
    Views
    251

    this is something similar...

    this is something similar
    https://hackaday.io/project/8181-ws2812b-delay-splitter
  16. Replies
    14
    Views
    916

    the only downside is that it's a BGA but with...

    the only downside is that it's a BGA
    but with 1MM spacing so it could maybe be done using dead bug hand solder

    specially if this can be done...
  17. Replies
    14
    Views
    916

    I found the cypress S70KL1281/S70KD1281 while...

    I found the cypress S70KL1281/S70KD1281 while doing a order on mouser (to buy a teensy 4.1 + audio board)

    which is a Self-Refresh 16MByte 100MHz DDR (200MBps) with a simple 8bit bi-dir interface...
  18. Replies
    6
    Views
    251

    could be nicely done using a tinyFPGA AX1 to...

    could be nicely done using a tinyFPGA AX1 to offload the teensy

    the tinyFPGA needs a programmer but it can be built using a single pic16f1455 PDIP-14 USB
    but then when I think about it the PIC16...
  19. here is a pinout your keyboard ic (it's a...

    here is a pinout your keyboard ic (it's a KS86C6404) and the teensy 2.0++
    2356123565

    you could probably fit it you you rotate the teensy around

    scrape/cut the tracing leading to the KS86 pins...
  20. Replies
    37
    Views
    669

    Yes you are right, I was thinking wrong. And...

    Yes you are right, I was thinking wrong.

    And actually it's smart to "append" the null char after every receive.

    I don't know if there is any use in this case?
    The only thing I can think of is...
  21. Replies
    37
    Views
    669

    In this part you are not checking for buffer...

    In this part you are not checking for buffer overflow
    Which can corrupt any data that is alligned after the buf


    buf[idx] = c;
    idx++;
    buf[idx] = '\0'; // here is no check if the buff gets...
  22. Replies
    166
    Views
    8,944

    Platformio is the best way, and I don't think...

    Platformio is the best way, and I don't think there is any good guide how to set it up and how it works.
    I was thinking the same yesterday and was planning to do a simple guide (with pictures) how...
  23. There is also VSCODE + PLATFORM IO which have...

    There is also VSCODE + PLATFORM IO which have teensy support.
    It's a alternative if you want to program in a more "real" environment.
    It's also faster to compile the code.
  24. Replies
    41
    Views
    1,879

    can the following be used in platformio.ini???...

    can the following be used in platformio.ini???
    -O2
    -O1
    -O3
    -Og
    -Os --specs=nano.specs


    I can now generate:
    (platformio.ini)
  25. Replies
    41
    Views
    1,879

    I have now implemented the export to arduino IDE...

    I have now implemented the export to arduino IDE pref.file

    But when doing it for the platformio is a little harder as that cannot use the boards.txt to straight generate the platformio.ini
    I can...
  26. Replies
    41
    Views
    1,879

    I did some restructuring of the example menu so...

    I did some restructuring of the example menu
    so that it's much easier to add new examples
    (by having the menu structure json in index.html)
    and to make the menu easier to structure.
    For example...
  27. Replies
    10
    Views
    671

    Final Cartridge 3 on c64 could also run a desktop...

    Final Cartridge 3 on c64 could also run a desktop with movabe cursor and had tools as calculator notepad etc.
    And only run on 64k memory.
  28. I did it removed the whole fork did a new fork...

    I did it
    removed the whole fork
    did a new fork

    created a branch called templateMixer
    added the changed files
    and made a pull request
  29. yes I was thinking of doing a branch, of what I...

    yes I was thinking of doing a branch, of what I can understand it's the best way of doing it.

    I belive the only way to restore back my fork is to delete the whole thing and start over.
    That will...
  30. a note about the attached SoundfontDecoder it...

    a note about the attached SoundfontDecoder
    it only contains the changed files and must be extracted in your current SoundfontDecoder folder
  31. I had little time when I did the last post ...

    I had little time when I did the last post

    there has been some changes to the synth_wavetable.h and the soundFontDecoder provided at PaulStoffregen:s github is not updated

    I have attached the...
  32. By the way i did a compile myself There is...

    By the way i did a compile myself
    There is some reference errors.

    As I also had problems the first time
    and the problem is in the soundfontdecoder.
  33. can you post the compile error output it can...

    can you post the compile error output

    it can be because you are using a old version of Soundfontdecoder
  34. Can I do the same for the template based mixer...

    Can I do the same for the template based mixer somehow?

    I tried to add a file
    but that looks like I only can add one file at a time,
    and that's gonna be messy with many patches/pull requests?
  35. I'm new to github But that was very easy, ...

    I'm new to github

    But that was very easy,
    when you said "just edit the original"
    I know directly how it should be done.
  36. I don't know if I can do that as my version of...

    I don't know if I can do that as my version of the index.html is heavily changed.
  37. Replies
    166
    Views
    8,944

    I have just now made a boards.txt parser in...

    I have just now made a boards.txt parser in javascript that outputs a json



    var treeData = {};
    function parse(fileData) {
    treeData = {};
    const t0 = performance.now();
    var lines...
  38. how do you think about this...

    how do you think about this
    https://www.neatcircuits.com/audiosw/index.html
  39. Replies
    37
    Views
    669

    Yes that is the cause as 5aaaaaaaaaaaaaaaaa5...

    Yes that is the cause as

    5aaaaaaaaaaaaaaaaa5

    is 20 characters long including the \n char
  40. Replies
    166
    Views
    8,944

    I can also agree that Arduino IDE is NOT for...

    I can also agree that Arduino IDE is NOT for beginners
    it's like more for advanced programmers who know every syntax
    and for those that never make any errors.

    But then again the tabs that is not...
  41. Replies
    37
    Views
    669

    i can send this line without any problem ($0a is...

    i can send this line without any problem ($0a is the \n in the terminal program that I use)

    ...
  42. Replies
    37
    Views
    669

    this simplified example works for me char...

    this simplified example works for me


    char buff[1000]; //buffer for serial data recive from PC

    char line[17];
    int scen_min = 0;
    int scen_max = 18;
    void setup()
    {
  43. Replies
    37
    Views
    669

    ok found it...

    ok found it
    https://www.pjrc.com/teensy/td_uart.html

    but then how do you use the dual or triple usb serial
  44. Replies
    37
    Views
    669

    I find this unexplained (with the first only...

    I find this unexplained (with the first only working):



    void setup()
    {
    Serial2.begin(9600);
    Serial1.begin(9600);
    Serial.begin(9600);
    }
  45. Replies
    37
    Views
    669

    but then when I'm looking at Print.h file there...

    but then when I'm looking at Print.h file
    there is this

    size_t print(const char s[])

    which seems to take a array buffer
  46. Replies
    37
    Views
    669

    maybe it's safer to use println() instead of ...

    maybe it's safer to use
    println()
    instead of
    print('\n')

    as your terminal program maybe listens for \r\n

    and the println includes \r\n
  47. Replies
    37
    Views
    669

    @ luni Yes they do, But the Serial.print...

    @ luni Yes they do,
    But the Serial.print function don't take array as the input (have checked the Print.cpp source)
    which is really dumb as you are forced to use the formatted printf which is...
  48. Replies
    37
    Views
    669

    was thinking the serial print was smarter but: ...

    was thinking the serial print was smarter but:

    the Serial.print don't take byte array as input (only String)

    so the proper print of array buffer would be:


    for (int i = 0; buffer[i] !=...
  49. Replies
    37
    Views
    669

    void scenario () { //line[16]; // don't know...

    void scenario ()
    {
    //line[16]; // don't know what this should be doing so I comment it out
    for (int y = scen_min; y < scen_max; y++)
    {
    if(buffer[y] != '\n')
    {
    line[y] =...
  50. Replies
    37
    Views
    669

    sending the whole file should not be a problem ...

    sending the whole file should not be a problem
    unless the file is very big
    and the input buffer of the Serial port gets overflowed by incoming data.
Results 1 to 50 of 227
Page 1 of 5 1 2 3 4