i wrote this little sketch to test the different resistances and the amount of pwm noise at different frequencies (sorry for the weird commands)
and built a simple voltage divider that scales it to 0-6v, a level that my synth can process, the...
Yes eventually the led being high would result in the voltage over the LDR going low so the led should be high during the pulseOff part of the duty cycle but this is just a first draft to test if the basic logic works and i decided to test it...
the next thing i want to implement is a pulse out to trigger envelopes or sample and hold modules. For this i wrote a struct that divides the length of the recorded sequence into 4 bars which form the "duty cycle " of the pulse being sent out...
void loop() {
myusb.Task();
midi2.read();
This extra call to midi2.read() is handling events outside of the recordTick() function, so they're not getting recorded.
Thanks for the explanation this fixed everything, i put this call in the switch under case MODE_IDLE (so it reads and relays the messages in idle mode too) and now it all works as intended. Can’t quite express the relief after messing around for...
good afternoon, i am working on a project that takes input from a usb midi controller on the host port, saves each event to a struct containing type, data1, data2, channel, and timestamp as shown here:
struct MidiEvent {
uint32_t delta_ms...
I also measured the resistances between the pins to see if there’s anything shorted, between the 2 ground pins there is effectively zero resistance but considering they’re both ground pins i guess they’re supposed to be wired together?
The...
Hi, my teensy 4.1 is not reading usb signals anymore, i (clumsily) soldered on the headers on the teensy board and it worked until today. I tried some example sketches for the USBHost library (mouse and inputfunctions) and yesterday the mouse...