Jump to content

Recommended Posts

Posted

okay i'm lost on this case - is it possible to configure buttons the way so that it - pressed once has one function - pressed a second time has another function and pressed a third time jumps back to zero ?

Posted

it's really really easy to do in C

using ifs or a switch

for example:

if (buttonPressNumber == 0) {

    //do whatever here

    buttonPressNumber++;

}

if (buttonPressNumber == 1) {

    //do whatever here

    buttonPressNumber++;

}

if (buttonPressNumber == 2) {

    //do whatever here

    buttonPressNumber=0;

}

Posted
i was afraid you would use that term "write in c"... i guess i will have to learn it if i really want to achieve something...

basically yes!

but, you don't really need to code from scratch, there are so many bits of code about on the site you can cut and paste and edit - much easier and a great way to learn!

Posted
you are a braver man than I!
I like to consider myself a hard headed old fool. 8)

Assembler just happens to be what I started off with. If all the C wrapper stuff for the MIDIBox was as common then, I'd probably have gotten into that. It was coincidentally around the time I was trying to learn some anyway, but I've forgotten most of it now. ;D

George

PS- I barely get by with assembler, so throwing something else in the mix probably wouldn't be the best idea right now.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...