Giter VIP home page Giter VIP logo

Comments (6)

tttapa avatar tttapa commented on June 4, 2024

You seem to be compiling an old example that's not compatible with the new version of the library.

See the documentation of NoteButtonMatrix here: https://tttapa.github.io/Control-Surface/Doc/Doxygen/d5/df9/group__MIDIOutputElementConstructors.html#ga23e45eeee7965faa832397bc1a842446

For example:

#include <Control_Surface.h>

USBMIDI_Interface midi;

// The note numbers corresponding to the buttons in the matrix
const AddressMatrix<4, 3> addresses = {{
  {  1,  2,  3 },
  {  4,  5,  6 },
  {  7,  8,  9 },
  { 10, 11, 12 }
}};

NoteButtonMatrix<4, 3> buttonmatrix = {
  {2, 3, 4, 5}, 
  {6, 7, 8}, 
  addresses, 
  CHANNEL_1,
};

void setup() {
  Control_Surface.begin();
}

void loop() {
  Control_Surface.loop();
}

from control-surface.

brorgustav avatar brorgustav commented on June 4, 2024

from control-surface.

brorgustav avatar brorgustav commented on June 4, 2024

from control-surface.

brorgustav avatar brorgustav commented on June 4, 2024

from control-surface.

tttapa avatar tttapa commented on June 4, 2024

What do you mean by "velocity buttons"?

You don't have to use the NoteButtonMatrix class. You can use the ButtonMatrix class that just reads the buttons, without any MIDI stuff (it is the base class that is used by the MIDI Button Matrix classes).

https://tttapa.github.io/Control-Surface/Doc/Doxygen/d8/d6c/classButtonMatrix.html

If that doesn't fit your needs, you can just write your own classes, you can easily add MIDI Elements to the Control Surface library, and you can use the utilities it provides, like the MIDI functions and the hardware elements.

from control-surface.

tttapa avatar tttapa commented on June 4, 2024

Is there a max polyphony/simultaneous presses?

No, there's no limit. (Polyphony limits are usually because of the sampler that turns MIDI into sound, it can only play and mix a limited number of samples at the same time.)

However, as with all scanning button matrices, you can only press multiple keys at once if every key has a diode installed.

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.