Giter VIP home page Giter VIP logo

Comments (9)

tttapa avatar tttapa commented on May 23, 2024

Yes, use CCValueLED instead: https://tttapa.github.io/Control-Surface/Doc/Doxygen/da/d34/classCCValueLED.html#a4d4ed28508873e3f2d5a557dc3326a22

(BTW, MIDINoteLED is deprecated, prefer using NoteValueLED instead, it's consistent with the rest of the API.)

from control-surface.

kentforth avatar kentforth commented on May 23, 2024

Can't see examples there

Can you show me one example?

from control-surface.

tttapa avatar tttapa commented on May 23, 2024

Just replace MIDINoteLED in your code above with CCValueLED.

from control-surface.

kentforth avatar kentforth commented on May 23, 2024

I mean How to properly pass arguments with midi cc to leds?

I tried to do it like that, but it doesn't work:

CCValueLED leds[] = {
  {sreg.pin(1), {MIDI_CC::Channel_Volume, CHANNEL_1}}, // LED pin, address (note number, channel, cable)
  {sreg.pin(9), {MIDI_CC::Pan, CHANNEL_2}},
  {sreg.pin(17),{MIDI_CC::Balance, CHANNEL_3}}
};

from control-surface.

tttapa avatar tttapa commented on May 23, 2024

Do you have the latest version?
I'll try it in a couple of minutes, but I think it should work on the latest version.

Edit: Just tried that snippet, and it works for me.

from control-surface.

kentforth avatar kentforth commented on May 23, 2024

I downloaded your library again.
I have this code:

NoteButton button[] = {
  {mux.pin(0),{MIDI_CC::Channel_Volume, CHANNEL_1}},
  {mux.pin(7),{MIDI_CC::Pan, CHANNEL_2}},
  {mux.pin(15),{MIDI_CC::Balance, CHANNEL_3}}
};

CCValueLED leds[] = {
  {sreg.pin(1), {MIDI_CC::Channel_Volume, CHANNEL_1}}, // LED pin, address (note number, channel, cable)
  {sreg.pin(9), {MIDI_CC::Pan, CHANNEL_2}},
  {sreg.pin(17),{MIDI_CC::Balance, CHANNEL_3}}
};

Leds doesn't react and I have used Midi OX to display incoming messages. What I have now:
Screenshot_1

It seems the library defines Midi:CC commands as regular notes but different ones

from control-surface.

tttapa avatar tttapa commented on May 23, 2024

I don't understand. You're sending CC addresses using a NoteButton. Try a CCButton instead.

from control-surface.

kentforth avatar kentforth commented on May 23, 2024

Oops, my bad:)
Thank you for your help! It works

from control-surface.

tttapa avatar tttapa commented on May 23, 2024

Glad to hear!

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.