Search results

  1. E

    Realtime MIDI Sequencer

    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 LDR's are soldered together in series and folded...
  2. E

    Realtime MIDI Sequencer

    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 like this
  3. E

    Realtime MIDI Sequencer

    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. this cycle gets divided into 4 beats, the length of...
  4. E

    Realtime MIDI Sequencer

    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 about 4 days but i will say i respect this ability...
  5. E

    Realtime MIDI Sequencer

    @jmarsh here it is #include <MIDI.h> #include <SD.h> #include "USBHost_t36.h" MIDI_CREATE_INSTANCE(HardwareSerial, Serial1, MIDI); USBHost myusb; USBHub hub1(myusb); USBHub hub2(myusb); USBHub hub3(myusb); USBHub hub4(myusb); MIDIDevice midi2(myusb); const uint8_t PIN_RECORD = 3; // Record...
  6. E

    Realtime MIDI Sequencer

    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; midi::MidiType type ; midi::DataByte data1...
  7. E

    USBHost_t36 not reading

    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 resistance between ground and either data pin is around...
  8. E

    USBHost_t36 not reading

    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 turned on and serial monitor gave it’s coordinates...
  9. E

    Trouble with compiling Arduino IDE 2.3.7

    thanks for the fast reply, simply uninstalling and reinstalling solved the problem
  10. E

    Trouble with compiling Arduino IDE 2.3.7

    hi, i recently switched to Ubuntu and after i installed the arduino IDE through the official ZIP and added the teensyduino url to the additional board manager urls it doesn't let me compile, i get the following error: fork/exec...
Back
Top