Comments (10)
The problem is that the Teensy is too fast for the multiplexers, resulting in cross talk.
You can add a delay of 5 µs to the code that drives the address lines.
tttapa/MIDI_controller#87
I'll try to add it on a separate branch so you can test if that solves your problem.
from control-surface.
Thanks for the fast reply
Problem is I'm using it as a step sequencer (midi clock slave)
I'm afraid the delay will break the midi sync, or it won't?
from control-surface.
5 microseconds are not noticeable, and it's negligible compared to the other code that's running.
As a comparison, sending a single MIDI Note event on a serial DIN MIDI interface takes 1000 µs, for example.
from control-surface.
I added a new branch with the fix. Could you try it? Then I'll merge it into master.
https://github.com/tttapa/Control-Surface/tree/mux-delay-teensy
Do you know how to use git to checkout this branch? Did you install the library as a ZIP file, or did you use git to clone it?
from control-surface.
another less urgent question - how can I change the midi device name ? tried renaming the string in Teensy-USB-MIDI-name.c and it didn't work...
Not sure, maybe it takes some time (or a reboot) for your computer to recognize the new name? It probably caches it, since it's unusual to change USB device names while it's in use.
I haven't tried it with a Teensy 3.6 yet, but it seems to update immediately with my Teensy 3.2 on Ubuntu 16.04.
By default, does your device show up as "Control Surface", or something else?
from control-surface.
Control Surface
By default, does your device show up as "Control Surface", or something else?
Yes,need to restart and check
from control-surface.
I added a new branch with the fix. Could you try it? Then I'll merge it into master.
https://github.com/tttapa/Control-Surface/tree/mux-delay-teensyDo you know how to use git to checkout this branch? Did you install the library as a ZIP file, or did you use git to clone it?
yes, I checked it out.. there is an improvement of buttons reading but there are still issues. I think the delay should be a bit more.. I can play with the delayMicroseconds value you put there and report the results here.
Thanks man
from control-surface.
I was wrong, I had another problem and the 5 µs indeed helped !
Thanks
BTW - Changing the device name in Teensy-USB-MIDI-name.c is only updated on another Mac... Guess it's something to do with my Mac caching the device name.. not urgent at all
from control-surface.
Glad to hear you got it to work!
from control-surface.
Hi, I have a similar problem on 2 mux, my big project using 10 cd4067 as this problem on my mux only on push button latched, no problem on the 124 potentiometer do you know what can cause this problem only on push button but not on pots?
I use a teensy 4.1
from control-surface.
Related Issues (20)
- Bankable::ManyAddresses::CCAbsoluteEncoder HOT 2
- Time Display does not work.
- Does it's support ESP32-S3/C3 via USB port? HOT 7
- How to use 1 shift button to change bank:
- The sketch compiles, but doesn't work HOT 3
- Error when compiling for ESP32 S3 HOT 3
- Metronome Led HOT 3
- Trying to setVelocity for all notebutton values in mux with piezo device HOT 1
- External app/webpage to change CC and Channel values HOT 1
- Hi, I would like to see the USBMIDI_Interface adapted so that you can specify the fixed cablenumber. This would it make possible to use pipes and filters connecting serial ports with virtual usb ports
- Support for MCP23S17 SPI
- error: 'SelectorPC' does not name a type HOT 2
- Switching presets Roland FP-30X HOT 2
- TYPO IN DOCUMENTATION HOT 1
- Error running on M1 Mac Sonoma with Teensy 4.0 HOT 4
- Arduino Nano 33 BLE Support? HOT 3
- Пример CCIncrementDecrementButtons.ino HOT 10
- Select bank HOT 2
- MIDI-монитор-OLED HOT 3
- Arduino Giga R1 Wifi support HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from control-surface.