Coder Social home page Coder Social logo

buttons multiplexer about midi_controller HOT 5 CLOSED

tttapa avatar tttapa commented on June 14, 2024
buttons multiplexer

from midi_controller.

Comments (5)

tttapa avatar tttapa commented on June 14, 2024

Yes, it should be possible.
What exactly did you try? Please post your complete code and schematic.

from midi_controller.

skizzzzz avatar skizzzzz commented on June 14, 2024

Great !
I will take the time this week to explain it to you clearly! ( i'm discovering fritzing..).

from midi_controller.

skizzzzz avatar skizzzzz commented on June 14, 2024

Here it is

bouton mux

So I use an arduino 'pro micro' which emulate a leonardo. (on my schema it's a micro..)

I tried differents pins of the arduino to connect my multiplexer like A3, '5' etc...

and tried several things like this code

#include <MIDI_Controller.h> // Include the library

const uint8_t velocity = 0b1111111; // Maximum velocity (0b1111111 = 0x7F = 127)
const uint8_t C4 = 60;              // Note number 60 is defined as middle C in the MIDI specification


// Create an instance of 'AnalogMultiplex' with the output pin of the multiplexer connected to
// analog input pin A0 and the address pins connected to pins 2, 3 and 4.
AnalogMultiplex multiplexer(5, { 2, 3, 4 } );

// Create 8 new instances of the class 'Analog', on the 8 pins of the multiplexer,
// that send MIDI messages with controller 7 (channel volume) on channels 1 - 8

Digital button(multiplexer.pin(0), C4, 1, velocity);

void setup() {}

void loop() {
  // Refresh the MIDI controller (check whether the potentiometer's input has changed since last time, if so, send the new value over MIDI)
  MIDI_Controller.refresh();
}

from midi_controller.

tttapa avatar tttapa commented on June 14, 2024

Should be fixed in 90b8796.

from midi_controller.

skizzzzz avatar skizzzzz commented on June 14, 2024

Woow. It works really well now. What a quick update. THANK YOU !

from midi_controller.

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.