Forum Rule: Always post complete source code & details to reproduce any issue!

Search:

Type: Posts; User: briandtinker

Page 1 of 2 1 2

Search: Search took 0.00 seconds.

  1. So wanting to start working on this again to...

    So wanting to start working on this again to expand the number of switches and come up with a GUI for code programability. Do you know where I can start oddson?
  2. You know what I was reading the hex on the input...

    You know what I was reading the hex on the input monitor in midiox instead of the output monitor.

    Everything is working fine. I changed the first row in the bank matrix to reflect the D2s that I...
  3. I just tried this and im getting 15 16 17 18 19...

    I just tried this and im getting 15 16 17 18 19 as my D2 values. not sure how that is possible
  4. now my code is sending liek 0f and 0E for my D2...

    now my code is sending liek 0f and 0E for my D2 values ...
  5. reviving this to just get back to basics. For...

    reviving this to just get back to basics.

    For now I want to just send 5 preset CC values for CC1.

    i need this to change something with an index of 8 15.875
  6. that would be the better way

    that would be the better way
  7. I see. So really we should be writing the project...

    I see. So really we should be writing the project with that in mind. For it to be a general purpose tool that can be customized for specific use. I like the idea of user being able to program buttons...
  8. Why the need for even tracking on and off state?...

    Why the need for even tracking on and off state? It's extraneous
  9. I don't know what is wrong with just changing the...

    I don't know what is wrong with just changing the order of the code based on the value of a toggle
  10. yeah that sounds right for everything except the...

    yeah that sounds right for everything except the whole on and off thing.

    I am confused and not sure if you are understanding what i am hoping to do.

    I want Mode 1 to send CC 0 codes. so i...
  11. No I guess I'm not understanding it really. I...

    No I guess I'm not understanding it really. I want it to send what it in the array as either D1 or as D2.

    So the array can stay. The send mode just togges. My code has the constant CCchan as 0
    ...
  12. so in theory you could also set that time to be...

    so in theory you could also set that time to be the switching time for int FxMode

    that way if FxMode=1 send CC if FxMode = 0 send CC 0 Value. the array can stay the same even for the banks. Its...
  13. ok ill wait for you before proceeding to think of...

    ok ill wait for you before proceeding to think of any changes or testing.

    Thanks for this experience by the way. It is giving me an organic learning experience. I already am starting to learn how...
  14. Also there can be no usdmidi send when...

    Also there can be no usdmidi send when togglereset>resetThreshold && btn[i] rising.edge
  15. So if btn[i] rising edge &&...

    So if btn[i] rising edge && togglereset>resetThreshold. ?
  16. No there is no need for on or off values. The...

    No there is no need for on or off values.

    The track switching uses Control Code 0 as a channel.

    Track switching performs various muting and unmuting tasks based upon which CC 0 value is sent....
  17. Ok i think it is about time to discuss the more...

    Ok i think it is about time to discuss the more detailed purpose of the project.

    It is to be used for live guitar. The input signal is routed through the DAW software Reaper.

    In Reaper there...
  18. Thanks for your feedback. I'll write more notes...

    Thanks for your feedback. I'll write more notes shortly. It has to do with the way the software is listening for codes.
  19. can it work like this? if...

    can it work like this?


    if (btn[i].risingEdge()) {
    if(toggleReset>resetThreshold){
    toggleReset = 0;
    bank = i;
    //digitalWrite(LEDPIN, bank); //...
  20. oh i want to figure out how to not send CC code...

    oh i want to figure out how to not send CC code after toggling. Just complete the bank integer storage but not send a cc code. only send cc code if togglereset<resetThreshold
  21. ok i think im starting to learn here. we dont...

    ok i think im starting to learn here.

    we dont need any on or off constant because we are using D2 for the variance in switches. the constant is going to be d1 and we should set it to 0 for now. ...
  22. Also can the array for CC contain D1 and D2 of...

    Also can the array for CC contain D1 and D2 of the CC message? So instead of sending 60 127 and then 60 0 it will just always send 60 0? Or 60 1?

    It seems the software I'm using accepts codes for...
  23. I tested more and found the issue to reside in...

    I tested more and found the issue to reside in midiox. Once I switched to miditools to monitor it worked smoothly. So no issues with the code it is sending all the messages.

    The hold time for...
  24. Consistently I can only send 12 commands before...

    Consistently I can only send 12 commands before it locks up and I need to re connect
  25. So just one switch to pin for in midi monitor I...

    So just one switch to pin for in midi monitor I get 63 127 on press 1 then 63 0 then 63 127 then 63 0. And then it hangs and it gets stuck until I unplug and replug the teensy
  26. So actually I'm leaving the switches out of it...

    So actually I'm leaving the switches out of it and just doing jumper from pin to geound and can only get it to work intermittently for pin 0 and pin 1
  27. Am I supposed to be on the digital pins right?

    Am I supposed to be on the digital pins right?
  28. All the joints are soldered even if a bit of wire...

    All the joints are soldered even if a bit of wire comes out either end of the joint. The terminals are connected to the wire and then the wire into the breadboard alongside the corresponding PIN...
  29. Do you think that I have the footswitch pole...

    Do you think that I have the footswitch pole pieces wrong? I didn't think the orientation of the switch poles really made a difference
  30. ill rework it tonight and see if i can get it...

    ill rework it tonight and see if i can get it going. It might also be the monitoring software im using.

    but yours is functioning yes?
  31. i have the switches going to ground and then also...

    i have the switches going to ground and then also to the input of the pins and then a jumper from teensy ground pin to ground line on breadboard.,

    12986
  32. i used midi ox and midi tools to try to monitor...

    i used midi ox and midi tools to try to monitor the input from the teensy and it was intermittent. It picked up some things some times but it was not anything that I could understand as CC codes. It...
  33. i loaded the program and i wired up the switches...

    i loaded the program and i wired up the switches to the pins on the breadboard and to ground. i am unable to tell if its working though lol
  34. Ok so I can reduce the timing. Can the code be...

    Ok so I can reduce the timing. Can the code be setup so that the bank selected after the timer is based on which pin is the rising edge? so if rising edge is pin 0 load Array A and is risingedge is...
  35. ok this actually sounds amazingly flexible...

    ok this actually sounds amazingly flexible because it would give me very quick access to 25 different codes
  36. Ok so understanding the way you wrote it in mode...

    Ok so understanding the way you wrote it in mode when when I hit and release switch 0 it will send CC 60 and then in mode 2 when i hit switch 0 it will send code 80.

    Upon toggling mode with long...
  37. yeah leds would be nice. i can see this...

    yeah leds would be nice. i can see this controller being set up very specifically for what I would need it for.

    Can you program multiple events for when a switch is pressed? i.e. send a CC code...
  38. Ok so that is good for the bank system. the...

    Ok so that is good for the bank system.
    the thought to add onto this would be individual controls per preset. so another bank of 5-10 switches.

    The array for these switches and the LED text for...
  39. So button 0 is help for 2 seconds or even for one...

    So button 0 is help for 2 seconds or even for one second it loads the bank with CC 1,2,3,4 and 5.
    hold button 1 and it loads the bank with 6,7,8,9,and 10 and so on right?
  40. Yes that sounds right. There are many extraeneous...

    Yes that sounds right. There are many extraeneous pieces in the initial code that I think would make sense to be removed. I am still re reading everything and making sense of what is happening. It is...
  41. actually if i am going to use Reaper SWS live...

    actually if i am going to use Reaper SWS live config extension to program my live presets then I will have to use CC codes in my controller. The extension uses CC codes for all of its switching.
  42. so my knowledge of midi is based on PC being...

    so my knowledge of midi is based on PC being definintive commands and CC being like on and off things. Maybe I am not going for the right goal here. I can use one PC code to assign to multiple things...
  43. Maybe I should write it differently then? ...

    Maybe I should write it differently then?

    Maybe I have something where a long press changes the bank. And Each button on long press loads up a bank of 5 PC codes.
    that way I could just declare...
  44. ok I am going to wire this up when I get home...

    ok I am going to wire this up when I get home today and open up Reaper and try out some midi learn functions...see what it is expecting for changes
  45. yes of course. was trying to get a base program...

    yes of course. was trying to get a base program in place before wiring everything up.

    Now i have just the teensy and 5 switches and some cat5 cable I can tear up for wire and a solderin iron.
    ...
  46. oh ok so after holding switch zero for 2 seconds...

    oh ok so after holding switch zero for 2 seconds the mode changes. So that means for mode PC i need to assign the switches PC codes in these arrays?


    //Arrays the store the exact note and CC...
  47. the way you wrote it makes me think the the mode...

    the way you wrote it makes me think the the mode is changed only when it is held down and that when you lift the foot off the switch it will revert back to the other mode.

    is that correct?
  48. maybe the code for this is not right then. I...

    maybe the code for this is not right then. I think the first thing I need to figure out is what codes are actually needed to do the switching. I have not figured that out yet.

    Do I need to...
  49. Replies
    1
    Views
    12,114

    lolol i guess i need resistors to conect between...

    lolol i guess i need resistors to conect between the footswitches and the chip?
  50. i guess i would change const int NUM_OF_BUTTONS =...

    i guess i would change const int NUM_OF_BUTTONS = 8; to 5 since i have 5 buttons and then I will have 5 bounces.

    Read that Bounce is how to detect the state of the switch. Mine are momentary...
Results 1 to 50 of 56
Page 1 of 2 1 2