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. What does the waveform look like in Audacity, and...

    What does the waveform look like in Audacity, and what should it look like ?
  2. Replies
    34
    Views
    623

    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.
  3. Replies
    10
    Views
    324

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

    Try to place a delay(1000) both directly and after before sending the play message.
  4. What other hardware is the Teensy 4.0 connected...

    What other hardware is the Teensy 4.0 connected to ?
  5. Replies
    9
    Views
    293

    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...
  6. 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...
  7. Replies
    15
    Views
    411

    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.
  8. Replies
    12
    Views
    340

    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...
  9. Replies
    3
    Views
    197

    Reboot the computer

    Reboot the computer
  10. Replies
    12
    Views
    340

    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....
  11. I think this depends on whether there are one or...

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

    by mlu
    Replies
    19
    Views
    466

    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...
  13. 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.
  14. Replies
    2
    Views
    155

    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.
  15. something like alsa mixer (was years since since...

    something like alsa mixer (was years since since I played with Linux audio)
  16. Replies
    14
    Views
    614

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

    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.
    ...
  18. Replies
    10
    Views
    404

    Perhaps a timerbased AudioUpdateEventClock object...

    Perhaps a timerbased AudioUpdateEventClock object could be added to the library to drive the update cycle.
  19. Replies
    23
    Views
    1,183

    I hope the basic AudioStream and Connection...

    I hope the basic AudioStream and Connection objects stays simple
  20. Replies
    23
    Views
    1,183

    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.
  21. Replies
    23
    Views
    1,183

    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 ==...
  22. Thread: Raspberry Pi Pico

    by mlu
    Replies
    205
    Views
    15,742

    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...
  23. Replies
    8
    Views
    307

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

    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.
  25. Replies
    12
    Views
    404

    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...
  26. Thread: Loud Buzzing Crash

    by mlu
    Replies
    10
    Views
    500

    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.
  27. Replies
    4
    Views
    308

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

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

    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.
  29. Thread: Loud Buzzing Crash

    by mlu
    Replies
    10
    Views
    500

    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...
  30. 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...
  31. Replies
    3
    Views
    207

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

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

    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 ?
  35. Did you cut the connection between vusb and vin ?

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

    Why not try serialUSB ?
  37. 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...
  38. 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...
  39. Replies
    16
    Views
    683

    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...
  40. Replies
    10
    Views
    523

    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...
  41. Replies
    5
    Views
    203

    sloppy of me, corrected :(

    sloppy of me, corrected :(
  42. Replies
    5
    Views
    203

    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)
    ...
  43. 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...
  44. 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...
  45. Replies
    4
    Views
    450

    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...
  46. Thread: 3.2 Dead? (Newbie)

    by mlu
    Replies
    10
    Views
    452

    Several things, its good with a proper connection...

    Several things, its good with a proper connection from the VIN pin to the VUSB pin, having a two pin header that can be bridged with one of those little caps is very helpful when debugging problems,...
  47. Remember that integers are saved in little endian...

    Remember that integers are saved in little endian , least significant byte first.

    This is what I get, Teensy 3.0


    union outputLora data;
    data.timepacketdata.startorfinish = 255;...
  48. Looks good :), yes the USB serial runs at...

    Looks good :),

    yes the USB serial runs at full USB if the sender and reader can handle this, I routinely sets the baurates at 115200. What is the effective transfer rate, in bytes/s or samples/s,...
  49. the input voltage range for digital pins is 0 to...

    the input voltage range for digital pins is 0 to 3.3 V

    100mV pp vill not trigger as high level, also make sure to keep voltage above 0V, and below 3.3V
  50. Replies
    4
    Views
    255

    3.3V/250 ohm = 13.2 mA, its like a couple of...

    3.3V/250 ohm = 13.2 mA, its like a couple of leds, so should not hurt, but why waste power.
Results 1 to 50 of 416
Page 1 of 9 1 2 3 4