The part
for(int i;i<9;i++){
pinMode(i,INPUT_PULLUP);
}
Type: Posts; User: mlu
The part
for(int i;i<9;i++){
pinMode(i,INPUT_PULLUP);
}
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...
Perhaps optocouplers between shift registers and spark modules
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...
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...
What does the waveform look like in Audacity, and what should it look like ?
How much current does the board use ? Try running from 9V, and yes a heat sink might be needed.
Try to place a delay(1000) both directly and after before sending the play message.
What other hardware is the Teensy 4.0 connected to ?
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...
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...
Is this an audio system ?
Oversampling will reduce random uncorrelated noise, but it will not affect/improve any non-linearities in the system.
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...
Reboot the computer
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....
I think this depends on whether there are one or two masters
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...
Sending over a normal TTL serial port from Raspberry to Tensy and forwarding as keypresses over HID USB should be simple.
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.
something like alsa mixer (was years since since I played with Linux audio)
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.
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.
...
Perhaps a timerbased AudioUpdateEventClock object could be added to the library to drive the update cycle.
I hope the basic AudioStream and Connection objects stays simple
Indeed yes, can be cleaned up, mostly to make the logic more clear, its not time critical code.
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 ==...
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...
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...
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.
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...
Perhaps the sound file should be closed before calling playSdWav1.play(combined), it is opened again in this function.
Looks nice, could be very useful when moving from protoboard to more permanent installations
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.
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...
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...
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 -> ...
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.
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...
The DIN from Arduino UNO must connect to some MIDI interface connected to the PC ?
And this has some hardware/software driver layer ?
Did you cut the connection between vusb and vin ?
Why not try serialUSB ?
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...
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...
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...
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...
sloppy of me, corrected :(
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)
...
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...
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...
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...