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

Search:

Type: Posts; User: mlu

Page 1 of 9 1 2 3 4

Search: Search took 0.01 seconds.

  1. Replies
    7
    Views
    523

    The part for(int i;i

    The part



    for(int i;i<9;i++){
    pinMode(i,INPUT_PULLUP);

    }
  2. Replies
    24
    Views
    1,481

    Threads might or might not solve your issues,...

    Threads might or might not solve your issues, this depends a lot on the thread scheduling algorithm and the synchronization needs. Threads does not 'magically' give create more time, in most cases...
  3. Perhaps optocouplers between shift registers and...

    Perhaps optocouplers between shift registers and spark modules
  4. Replies
    4
    Views
    419

    Followup after checking your forum posts. So...

    Followup after checking your forum posts.

    So your code almost works, you can generate 5.13MHz in sync, or 5.00MHz with clocks that have random sync.

    So what is the issue, digitalWriteFast in a...
  5. Replies
    4
    Views
    419

    Your question is so general its hard to say, but...

    Your question is so general its hard to say, but

    First question to answer is "What precisely is not working, how do you know there is a problem, what is the expected behavior and the actual...
  6. What does the waveform look like in Audacity, and...

    What does the waveform look like in Audacity, and what should it look like ?
  7. Replies
    39
    Views
    2,825

    How much current does the board use ? Try running...

    How much current does the board use ? Try running from 9V, and yes a heat sink might be needed.
  8. Replies
    10
    Views
    754

    Try to place a delay(1000) both directly and...

    Try to place a delay(1000) both directly and after before sending the play message.
  9. Replies
    18
    Views
    1,421

    What other hardware is the Teensy 4.0 connected...

    What other hardware is the Teensy 4.0 connected to ?
  10. Replies
    9
    Views
    607

    Building version one I would put female headers...

    Building version one I would put female headers on the stripboard for the adudioboard, and male/female pass through headers on the audioboard. Then connections can be checked without any board, with...
  11. For comparing phases by time difference between...

    For comparing phases by time difference between two input channels the timer clocks must be synchronised, so you should use two Capture Compare channels connected to the same timer, on the other hand...
  12. Replies
    15
    Views
    1,115

    Is this an audio system ? Oversampling will...

    Is this an audio system ?

    Oversampling will reduce random uncorrelated noise, but it will not affect/improve any non-linearities in the system.
  13. Replies
    12
    Views
    759

    That depends on the details of the input code,...

    That depends on the details of the input code, but I guess it should have two buffers each with space for 2x128 samples per channel.
    The hardware uses dma to fill the buffers and when update is...
  14. Replies
    3
    Views
    425

    Reboot the computer

    Reboot the computer
  15. Replies
    12
    Views
    759

    If you sample at 96 kHz from the input and then...

    If you sample at 96 kHz from the input and then reduce it to 48KHz in the output you have to read two input blocks for every update and output one block, or the special input code handles this....
  16. I think this depends on whether there are one or...

    I think this depends on whether there are one or two masters
  17. Thread: Fft

    by mlu
    Replies
    19
    Views
    1,242

    I am just a simple mathematician, and I know that...

    I am just a simple mathematician, and I know that you can integrate, at least formally since Fourier techniques makes assumptions that are not always satisfied by measured signals, by dividing the...
  18. Sending over a normal TTL serial port from...

    Sending over a normal TTL serial port from Raspberry to Tensy and forwarding as keypresses over HID USB should be simple.
  19. Replies
    4
    Views
    618

    As far as I can understand MPE uses standard MIDI...

    As far as I can understand MPE uses standard MIDI transport, but assigns a dedicated channel to every playing note. So USB MIDI should work, but user code has to adapt.
  20. something like alsa mixer (was years since since...

    something like alsa mixer (was years since since I played with Linux audio)
  21. Replies
    14
    Views
    1,272

    Interesting to see, but a bit of apples to...

    Interesting to see, but a bit of apples to oranges. We expect different results when measured at double sampling frequency. Doesn't really show that they are better at the same sampling frequency.
  22. Replies
    7
    Views
    506

    Interrupts do happen, that's the point with...

    Interrupts do happen, that's the point with IntervalTimers, not sure why they cannot be used.
    The interval trigger every x seconds and sends a NoteOn to an envelop, or sets a mixer amplitude.
    ...
  23. Replies
    10
    Views
    878

    Perhaps a timerbased AudioUpdateEventClock object...

    Perhaps a timerbased AudioUpdateEventClock object could be added to the library to drive the update cycle.
  24. Replies
    23
    Views
    2,232

    I hope the basic AudioStream and Connection...

    I hope the basic AudioStream and Connection objects stays simple
  25. Replies
    23
    Views
    2,232

    Indeed yes, can be cleaned up, mostly to make the...

    Indeed yes, can be cleaned up, mostly to make the logic more clear, its not time critical code.
  26. Replies
    23
    Views
    2,232

    There seems to be an error in the disconnect...

    There seems to be an error in the disconnect method, when unlinking an element from a linked list the pointer of the prevoius node most be shifted, so in AudioStream.cpp line 257



    if (p ==...
  27. Thread: Raspberry Pi Pico

    by mlu
    Replies
    213
    Views
    25,390

    After testing a bit, its quite a nice chip, the...

    After testing a bit, its quite a nice chip, the Audio library feels overengineered and does a lot of unnecessary buffer copying. The Teensy Audio code is much more efficient. The pico can run the...
  28. Replies
    8
    Views
    659

    A dead zone in the middle could help. First of...

    A dead zone in the middle could help.

    First of all measure the adc reading with joystick centered, my experience is that this will be close to 511 (for 10 bits) but not equal.
    Save this value as...
  29. Replies
    6
    Views
    413

    In the loop you set the SoftPWM to the input pins...

    In the loop you set the SoftPWM to the input pins and not the output pins. Will not give any light effects and most likely confuse the inputs also.
  30. Replies
    12
    Views
    900

    Since the Teensy Loader can talk to the board USB...

    Since the Teensy Loader can talk to the board USB must be working, and the SerialUSB should also work if properly configured.
    So look for fried code and perhaps other hw connections that might upset...
  31. Thread: Loud Buzzing Crash

    by mlu
    Replies
    14
    Views
    1,055

    Perhaps the sound file should be closed before...

    Perhaps the sound file should be closed before calling playSdWav1.play(combined), it is opened again in this function.
  32. Replies
    4
    Views
    521

    Looks nice, could be very useful when moving from...

    Looks nice, could be very useful when moving from protoboard to more permanent installations
  33. Replies
    6
    Views
    507

    To know where the problem occurs, count the...

    To know where the problem occurs, count the number of received characters on the Teensy side, connect a serial adapter or another Teensy to the HW serialport to receive debug/status information.
  34. Thread: Loud Buzzing Crash

    by mlu
    Replies
    14
    Views
    1,055

    Does the application crash or is it just a...

    Does the application crash or is it just a 'crashing' sound ?
    Is the crash momentary or continous ?
    Does the sound return to normal when the effect is finished playing ?
    Does the issue depend on...
  35. Strange, I took your sketch, added the...

    Strange,

    I took your sketch, added the Encoder library after installing it, checking version Encoder by Paul Stoffregen v 1.4.2.

    Hooked up a cheap encoder on a breakout board with 10K pullup...
  36. Replies
    3
    Views
    416

    Think about both buffer size and bandwidth, and...

    Think about both buffer size and bandwidth, and the delay introduced, for every link in your chain of communications.

    fill serial out buffer->transmit to BT modem-> BT transmision to receiver -> ...
  37. A very simple measure is number of loops per...

    A very simple measure is number of loops per second with your code active as a fraction of number of loops per second for an (almost) empty sketch.
  38. Replies
    6
    Views
    425

    So the audio interface drivers has the multi...

    So the audio interface drivers has the multi client capability mentioned by MatrixRat, the UNO shield gives a single MIDI connection with up to 16 channels, just as the standard Teensy USB MIDI (not...
  39. Replies
    6
    Views
    425

    The DIN from Arduino UNO must connect to some...

    The DIN from Arduino UNO must connect to some MIDI interface connected to the PC ?
    And this has some hardware/software driver layer ?
  40. Did you cut the connection between vusb and vin ?

    Did you cut the connection between vusb and vin ?
  41. Why not try serialUSB ?

    Why not try serialUSB ?
  42. Replies
    14
    Views
    1,127

    If you have a number of automations sending...

    If you have a number of automations sending conflicting CC values within 10ms then there is a problem with the Ableton setup, and what value this controller really has, and the rest should be...
  43. Replies
    14
    Views
    1,127

    Without seeing the code we are talking about, its...

    Without seeing the code we are talking about, its hard to give precise help, but filtering CC messages is not hard.

    Keep an array "byte CC_value[chn][CC]", then when receiving a message...
  44. Replies
    18
    Views
    1,459

    So this is not criticising anyone, just an...

    So this is not criticising anyone, just an attempt at finding the bases, and starting at the OP invitation to discussion. I have myself transitioned between developed environments and paradigms so I...
  45. Replies
    10
    Views
    1,736

    So 5 ns max error after 1 ms is 5 ppm error, and...

    So 5 ns max error after 1 ms is 5 ppm error, and 5 ns after 1s is 5 ppb. The crystal on the Teensy has a 15ppm specification. If you measure the crystal speed with a high resolution time reference...
  46. Replies
    5
    Views
    401

    sloppy of me, corrected :(

    sloppy of me, corrected :(
  47. Replies
    5
    Views
    401

    Voice1Frequency = 8.175 *...

    Voice1Frequency = 8.175 * powf(1.059463,57+pitchbend/8192.0)
    Voice2Frequency = 8.175 * powf(1.059463,67+pitchbend/8192.0)
    Voice2Frequency = 8.175 * powf(1.059463,72+pitchbend/8192.0)
    ...
  48. In text format 13 bit unsigned values are 0 to...

    In text format 13 bit unsigned values are 0 to 8192 so max four characters plus the ',' separator, so max 5 and min 2 characters per sample. Lets say 3 on average.

    Anyway if the python in buffer...
  49. Normally shield should be grounded at one end. ...

    Normally shield should be grounded at one end.

    Another option is to use current signalling, like MIDI.

    Button closure send a 5mA current through an optoisolator, this should be much more...
  50. Replies
    4
    Views
    1,081

    The IDE 2.0 is rather nice, feel fast and easy to...

    The IDE 2.0 is rather nice, feel fast and easy to work with, but there are quite a bit of raw edges.

    The port selection is forgotten when USB serial is down for reload/reboot, easy to reselect...
Results 1 to 50 of 421
Page 1 of 9 1 2 3 4