
henrygr
Members-
Posts
220 -
Joined
-
Last visited
Content Type
Profiles
Forums
Blogs
Gallery
Everything posted by henrygr
-
Can I toggle controls with boolen operators?
henrygr replied to henrygr's topic in MIOS programming (C)
OK Here we go. From examples I have seen, using AINNotify_Change, it is alwasy followes in brackets by 'unsigned char pin, unsigned char pin_value' Can I set a specific char oun and pin value in brackets instead, so as to react only to the movement of one particular switch (eg when pot x is value 127). Then I could use the function to set a value to a variable, and in turn use that variable (or array of variables) to change the output control of another pot? Make Sense? MP -
Panic Over. Just clicked don't use message from core in MIOS studio. Phew. :D
-
Oh Oh, Think I'm in big trouble. Tried to reload the MIOS onto the PIC. Is there a reason that O should not have done this. Tried it over MIDI!! Help.... ???
-
Yes. You have already helped me with grasping the programming on another section of the forum. It's the B4 controller I built from old VOX parts. Once again, I am indebted to you.... MP
-
Just a note to ask how your experiment with mouse parts has gone. I had though of using the wheel that triggers the movement when the ball rubs it as a way of measuring the distance an organ drawbar had moved. Time wasn't on my side though, so I thought I might experiment with it a little later in the year. Cheers. M
-
Folks, I am posting this in the hope that some of you have come across thic problem. When I connect my AIN to Core and load up my MIOS, only the second half of the pots of each gang of eight work! So, in my example, the first four don't work, the second four do, the third four don't wotk the third four do. And anything after that just doesn't work. I've tested all the wiring by checking the voltage between the ground of the core and the pin that corresponds to each pot on the respective 4021 on the AIN, and the voltage is spot on. (5.3v) I am going to reboot the MIOS next, but am baffles. Has anyone come accross this before? Thanks All, MP
-
MIOS Programming with Code::Blocks on a PC running Windows
henrygr replied to stryd_one's topic in MIOS programming (C)
Exvellent article. Thank you very much :) Mark -
Can I toggle controls with boolen operators?
henrygr replied to henrygr's topic in MIOS programming (C)
No more jitter. I have a bizzar situation where the second half of each gang of eight pots work and the first doesn't!! eg pots 0x00 to 0x03 don't give a signal and pots 0x04 to 0x07 work perfectly. I think it's a question of rebooting Mios, and certainly isn't a post for this section of the forum. Getting to like C though. Have a few ideas that once i'm finished with this baby (which I need asap for gigs) I'll endeavour to try out.... Keep watching though, I will need help with that switch!! Mark. ;D -
Can I toggle controls with boolen operators?
henrygr replied to henrygr's topic in MIOS programming (C)
Stop Press. Found the section on C Interface. My god, that is much easier to grasp. My programming experience comes from BASIC and a bit of PERL (Black Book on a shelf behind me). Also downloaded the app in the MIOS/Dowlnload section that sets for 64AIN, 128DIN, 128DOUT. Will try to get my head around it. Seeing clearly now but the rains not gone.....Obstacles? Don't start me off.... MP -
Can I toggle controls with boolen operators?
henrygr replied to henrygr's topic in MIOS programming (C)
You can have our rain of you want! ;D The plan was to take the MidiBOX64 app and make changes to it based on the notes from TG in main.asp. So I followed the MPLAB link in ucaaps to follow this through. Is this an option? I see that others have done this successfully. MP -
Can I toggle controls with boolen operators?
henrygr replied to henrygr's topic in MIOS programming (C)
Moving on now, Got rid of the random midi- well kind of. When the rocker switches are thrown into the off position, random midi starts again. And now a new problem. I am getting no messages at all from any of the pots and faders. I know this is the wrong post in the forum for this, but would appreciate a pointer in the right direction!! Have downloaded Active Perl and MPLAB. Are these the tools I need? I followed the links in ucaaps.de. My first port of call eill be to set the first few headers in the main.asm file- ie no of pots, no DIN etc. I wonder if that is why I am not recieving ant data from the pots. Still raining in Dublin. Probably just as well. If it was sunny, I'd pask all of this in and beeline for the park with a ball or something. Nice result in Heineken Cup it has to be said!! Enough waffle, MP :) -
Can I toggle controls with boolen operators?
henrygr replied to henrygr's topic in MIOS programming (C)
Thanks audiocommand, Have some random midi flying about. Will troublshho that before I move on. :-[ MP -
Do you mind me asking- what caused the Chorus Depth random message? Am dooing a similar projrct to yourself and have the chorus depth problem, Thanks, Mark
-
Can I toggle controls with boolen operators?
henrygr replied to henrygr's topic in MIOS programming (C)
Micheal, I see what you mean. I have just finished the unit now and am about to plug it up to the PC (yes, XP based stryd_one). I will get my nose dirty with the information that you have asked. I am assusimg that it is possible to use the remaining four (in my case three of the four) pins of J5 to set up a digital switch, even though I have attached one AIN module to the core?! Please find some photos as promised. An no Flash Gordon jokes. I know it looks a bit like a 1930's sci-fi special effects prop! As I explained earlier on the post, they are old Vox Continental Super II drawbars that I refurbished, and the whole unit is built into the case of an old valve radio. At the end, I attached one of the original valves to to the case, into which I dropped an amber LED for aesthetics. The knob on the left of the front panel is the three way switch wired to set any one selection to 'on' and the remainder two to 'off' simultaneously. I will use this (hopefully) to decide whether the drawbars control either upper keybaord, lower keyboard, or volume control of midi channels 1 through 9. During the whole project, I purposfully avoided using push button or DOUT LED signals. I wanted to keep a sense of authenticity to its tactile use. A quick look at the box will tell me how everything is set, just like playing the real thing (I hope!) So I am indebted to all of you for your patience and knowledge. I will begin now see how it performs when Mideed Up! Regards, Mark. :) -
Can I toggle controls with boolen operators?
henrygr replied to henrygr's topic in MIOS programming (C)
Have followed up on everything you posted. I know I promised a photo by this stage, but soldering in the rain cooled the solder down :P I've wired up a 3 way 3pole switch (I know they come in three pole four way, but i'm only using three of the poles) to send out on an analogue in that at any time, only one of the positions is true. eg- pole one is on (midi signal 127) when pole two and three are at ground (midi signal 0) pole two is on and pole one and three are at ground etc.......you get the gist. So, using this toggle switch, can I use the information sent to the PIC to change the characterisics of nine other different analogue inputs. As I have searched this forum, I have realised that this has not really been approached at all. It is not about an analogue switch that changes midi channel (although that could be a workaround), but more about changing the the algorithmic result of one (or in my case nine) potentiometers, based on the value of another. It's still pi**ing rain, but my neck is too sore, and I'm going to bed. Thanks for everything, Mark. -
Can I toggle controls with boolen operators?
henrygr replied to henrygr's topic in MIOS programming (C)
Right then. It's raining again. Off I go..... Will have photo of the unit up tonight. Any suggestions on how to programme my alt and shift of the midi world. I figure it would be a couple of lines at the beginning ot the .hex file. See, even with all this cloud cover, I'm beginning to see the light ;) MP -
Can I toggle controls with boolen operators?
henrygr replied to henrygr's topic in MIOS programming (C)
Right, I'll play around with it, see how I get on. The only problem I see with multistate switching is that all values will be switched to zero when one goes to use the drawbars for other purposes! Hopefully I'll figure it out though. Thanks all, MP :) -
Can I toggle controls with boolen operators?
henrygr replied to henrygr's topic in MIOS programming (C)
On reflection, I think my question should be such, as I am not a compentant programmer. Can I assign a value to a variable based on the position of an analogue switch, and subsequently add that value to a midi contol value? Am I making sense? eg Upper keyboard, drawbar 1, has ctrl no 13. This is the preprogrammed control number of the slide pot drawbar. Lower keyboard, drawbar 1, has ctrl no 23. Flick the switch and hey presto. Slide pot drawbar now sends to lower keyboard. Am I making sense. It's raining here in Dublin. Should I just go out and stand in it with my face pointed to the sky, and do you all a favour and drown slowly? Thanks for your patience ??? MP -
Can I toggle controls with boolen operators?
henrygr replied to henrygr's topic in MIOS programming (C)
Happy days!! :) Thank you for your swift reply. I hope to have photos of this baby up by the weekend. Can't find what I'm looking for on the forum though. Just one thought- would the toggle have to be dependant on on a DIN. My idea is that if it were based on analogue inputs, I could perhaps put in lets say a three or four way rotary switch to change between different messages eg, top keyboard drawbar, lower keyboard drawbar, volume control of midi tracks. Or am I asking too much.... Regards, MP -
Hi there, This is my first post on this forum. I generally don't like to post as I try to find the answer to my problem in previously discussed issues....but I'm stuck. I am building- well nearly finished- my first project. It is a live controller for Native Instruments B4. I've essentially tried to keep it as true to ancient specs as possible eg, refurbised old drawbars fron a Vox Super Continental, built it into an old valve radio casing with french polish veneer, using chicken neck knobs on the pots, and ultimately, no digital buttons. My conundrum however is such. I have nine drawbars with which to control the NI B4 drawbars. Is there a way that I can add a switch to toggle the function of these between thae upper and lower manual, through use of an AIN switch. I know that if it can be done it would be a question of a boolean operator in the code checking the status of this switch being either a value of 0 or 127 ie. repalcing a pot with a toggle switch. I have not the need for a DIN thus far, and as I am near completion, do not want to have to put one in. I know this forum is immensly busy with all us newbie questions, so I'm just going to finish the project and leave a spare button till somone gets round to me. Before I go....Thank you all for what I consider to be the most valuable resource on the world wide web ;) MP