Skip to content

MDM_V3_Library4x4 - #8

Open
4dvn wants to merge 20 commits into
Bananut-Electronics:masterfrom
4dvn:master
Open

MDM_V3_Library4x4#8
4dvn wants to merge 20 commits into
Bananut-Electronics:masterfrom
4dvn:master

Conversation

@4dvn

@4dvn 4dvn commented Jan 29, 2020

Copy link
Copy Markdown

No description provided.


// Couple of variables for the led animation
int buttonCounter = 0;
int expansionCounter = 0;

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since this code is made for only 4x4 board with no expansions, we can get rid of "expansionCounter" variable

Comment thread examples/MDM_V3_Library4x4/MDM_V3_Library4x4.ino
if (buttonCounter == 15)
{
buttonCounter = 0;
if (expansionCounter == 1)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Get rid of this as mentioned above

myflag = !myflag;
}
else{
expansionCounter += 1;

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same, remove. Just flip the flag "myflag=!myflag" if buttonCounter == 15

@alrevuelta

Copy link
Copy Markdown
Member

The code is actually very similar to this but if you make the requested changes we can merge it.

Thanks for taking the time.

@4dvn 4dvn closed this Feb 8, 2020
@4dvn

4dvn commented Feb 8, 2020

Copy link
Copy Markdown
Author

The code is actually very similar to this but if you make the requested changes we can merge it.

Thanks for taking the time.

I forgot to changed

4dvn added 3 commits February 8, 2020 22:36
Change first button from note 30 to 36 of ableton default drumrack.
@4dvn 4dvn reopened this Feb 8, 2020
@alrevuelta

Copy link
Copy Markdown
Member

Could you explain your changes in the commit description? I can't understand what values is retinaConverter.py script generating.

* ------------------------------------------------------
*/

const byte _R[128] = {0, 61, 125, 190, 255, 255, 61, 125, 190, 255, 255, 61, 125, 190, 255, 255, 61, 125, 190, 255, 255, 61, 125, 190, 255, 255, 45, 93, 142, 223, 190, 28, 61, 93, 190, 125, 12, 28, 45, 158, 61, 0, 0, 0, 125, 0, 0, 0, 0, 125, 0, 0, 0, 0, 125, 0, 0, 0, 0, 125, 0, 0, 0, 0, 125, 0, 0, 0, 0, 125, 0, 0, 0, 0, 125, 0, 0, 0, 0, 125, 0, 0, 0, 0, 125, 0, 12, 28, 45, 158, 61, 28, 61, 93, 190, 125, 45, 93, 142, 223, 190, 61, 125, 190, 255, 255, 61, 125, 190, 255, 255, 61, 125, 190, 255, 255, 61, 125, 190, 255, 255, 36, 73, 109, 146, 182, 219, 255};

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you explain what is this doing? Whatever it is, I don't think it should be part of the library, looks quite specific so it should be part of an example.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you explain what is this doing? Whatever it is, I don't think it should be part of the library, looks quite specific so it should be part of an example.

I have made the ledstrip midi like launchpad on arduino pro micro and i want to add the exampke of my project if is possible:
https://github.com/4dvn/Leonardo-Underlights/blob/master/Leonardo/WS2812B/WS2812B.ino

Comment thread src/MiDispositivoMIDI_V3.cpp Outdated
void MiDispositivoMIDI_V3::generateNotesVeloc(uint8_t numberExtensions)
{
int note = 30;
int note = 36;

@alrevuelta alrevuelta Feb 10, 2020

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why changing this? I saw in one of your commits "first button from note 30 to 36 of ableton default drumrack". I understand your need to do this change, but we can't modify the library for only that specific use case. Instead create a new function with note as input parameter so it can be configured by the user.

Comment thread src/retinaConverter.py
@@ -0,0 +1,24 @@
x = []

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please, explain in the commit message your changes and which new functionality/feature you are adding. Add a description also for this file. And if you really think that this script is needed, ok, but it shouldn't be in /src since its not really related to the library, is it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants