Giter VIP home page Giter VIP logo

Comments (10)

tttapa avatar tttapa commented on June 4, 2024

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.

ransa808 avatar ransa808 commented on June 4, 2024

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.

tttapa avatar tttapa commented on June 4, 2024

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.

tttapa avatar tttapa commented on June 4, 2024

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.

tttapa avatar tttapa commented on June 4, 2024

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.

ransa808 avatar ransa808 commented on June 4, 2024

Control Surface

By default, does your device show up as "Control Surface", or something else?

Yes,need to restart and check

from control-surface.

ransa808 avatar ransa808 commented on June 4, 2024

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?

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.

ransa808 avatar ransa808 commented on June 4, 2024

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.

tttapa avatar tttapa commented on June 4, 2024

Glad to hear you got it to work!

from control-surface.

benwadub avatar benwadub commented on June 4, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.