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

    something like alsa mixer (was years since since I played with Linux audio)
  2. Replies
    8
    Views
    147

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

    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.
    ...
  4. Replies
    10
    Views
    212

    Perhaps a timerbased AudioUpdateEventClock object...

    Perhaps a timerbased AudioUpdateEventClock object could be added to the library to drive the update cycle.
  5. Replies
    23
    Views
    991

    I hope the basic AudioStream and Connection...

    I hope the basic AudioStream and Connection objects stays simple
  6. Replies
    23
    Views
    991

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

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

    by mlu
    Replies
    205
    Views
    13,865

    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...
  9. Replies
    4
    Views
    128

    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...
  10. Replies
    6
    Views
    164

    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.
  11. Replies
    12
    Views
    280

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

    by mlu
    Replies
    8
    Views
    268

    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.
  13. Replies
    4
    Views
    231

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

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

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

    by mlu
    Replies
    8
    Views
    268

    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...
  16. 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...
  17. Replies
    3
    Views
    176

    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 -> ...
  18. 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.
  19. Replies
    6
    Views
    149

    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...
  20. Replies
    6
    Views
    149

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

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

    Why not try serialUSB ?
  23. 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...
  24. 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...
  25. Replies
    16
    Views
    536

    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...
  26. Replies
    10
    Views
    390

    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...
  27. Replies
    5
    Views
    150

    sloppy of me, corrected :(

    sloppy of me, corrected :(
  28. Replies
    5
    Views
    150

    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)
    ...
  29. 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...
  30. 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...
  31. Replies
    4
    Views
    335

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

    by mlu
    Replies
    10
    Views
    351

    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,...
  33. 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;...
  34. 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,...
  35. 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
  36. Replies
    4
    Views
    215

    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.
  37. Sending the values in text form is a bit slower...

    Sending the values in text form is a bit slower and uses a bit more bandwidth, but it is MUCH easier to handle and to monitor and debug any issues. The Serial over USB from T 3.6 to PC is real fast....
  38. Replies
    12
    Views
    295

    I tried the code from original post on a 3.0 and...

    I tried the code from original post on a 3.0 and a 3.6.


    if (TempString != NULL) refuses to compile, so I replaced it with
    if (TempString != "")

    then I sprinkled the code with some writes,...
  39. Replies
    12
    Views
    295

    first yes, but no assurance of a complete...

    first yes, but no assurance of a complete message, can you post the code with hard coded SerialLine values.
  40. Replies
    12
    Views
    295

    I think its a read timing problem, the void...

    I think its a read timing problem, the void MySerialReader () only reads what is currently in the serial buffer, and if this is not a compete message it is fed to strtok and then discarded. You...
  41. Replies
    139
    Views
    3,900

    This might be a coincidence, but 1786ms is quite...

    This might be a coincidence, but 1786ms is quite close to 2^30 processor clock cycles at 600MHz, or 2^28 timer ticks at 150Mhz. Just a wild hunch ... a missed timer somewhere.
  42. Replies
    6
    Views
    238

    The code checks if cycle_start pin is HIGH and...

    The code checks if cycle_start pin is HIGH and calls cycleStart() that sets the output pins and led high.

    You need to check when the cycle_start pin goes low to turn off the leds, or use a timer...
  43. Replies
    14
    Views
    558

    In UP mode you always turns relays off before...

    In UP mode you always turns relays off before setting them to correct value, that will cause spikes


    if(num > PrvNum){
    Serial.println("UP");
    PrvNum = num;
    for (int i =...
  44. Replies
    6
    Views
    238

    This is slightly confusing exactly how are the...

    This is slightly confusing exactly how are the Teensy, Nextion and optocouplers connected ? Which pin is input from Nextion, and which is the corresponding output from Teensy ?
  45. Replies
    6
    Views
    324

    You have 16 leds in the matrix and 24 steps per...

    You have 16 leds in the matrix and 24 steps per beat, that makes it a bit tricky to count the beats, every beat is 24=6*4 steps that is one and a half full matrix of steps.

    Also the lastTime...
  46. Replies
    2
    Views
    127

    Time libraries are supposed to be able to handle...

    Time libraries are supposed to be able to handle times before 1970, so the times can be represented as negative numbers.

    If you are sure that your use of time is after 1970 you can...
  47. All interesting but the OP problem was USBMIDI is...

    All interesting but the OP problem was USBMIDI is to fast for i2c, and yes what I felt was USB MIDI client
  48. Perhaps filter the incoming midi data, keep the...

    Perhaps filter the incoming midi data, keep the latest master values of controllers and only update changes to the slave every ... say 1 ms or send as often as the i2c can handle dependent on how...
  49. Replies
    7
    Views
    365

    You will not do any ISR based timing at more than...

    You will not do any ISR based timing at more than a fraction of the processor clock divided by ( ISR setup cycles + ISR execute cycles + ISR return cycles). This might be fast compared to audio...
  50. Replies
    8
    Views
    362

    Looks like binary data is received and not...

    Looks like binary data is received and not converted to printable form ... but

    How can anyone help without knowing anything about the code you are actually running, or what dta you are supposedly...
Results 1 to 50 of 402
Page 1 of 9 1 2 3 4