Jump to content
IGNORED

Maths Problem


Recommended Posts

Alright, so I'm building an VST. Just i've got a problem which I can't figure out the answer too, who ever can figure out a working answer (there may not be one) gets the VST I'm making (my VST's are never released therefore you will have one of two in the world) plus unlimited updates for the VST. The VST is a type of filter delay.

 

Problem:

 

I have switches A,B,C. Each switch can either be on or off.

 

These switches can be connected to each other in two different ways:

 

1) Unison, meaning that when one switch is turned on the switch connected too it is also turned on.

 

2) Reverse, meaning that when a switch is turned on the switch connected to it is turned off.

 

All 3 switches can connect to each other in either reverse or unison, however there can only be one connection from one switch to another, i.e A can not be connected to B and then B routed back into A as this would cause a loop and crash my computer.

 

In any connection between two switches there is one 'master' and one 'slave' the master controls the slave but not the other away round. i.e. If switch A is the master and B is the slave and they are connected in unison then pressing A would activate B but pressing B would not activate A.

 

Is there a way of connecting switches A,B and C so that when you switch one of them on it turns the other two off?

 

Go.

 

Edit: If you win you will have to wait for your prize as it'll take a while to complete the VST.

Edited by Idio
Link to comment
https://forum.watmm.com/topic/53996-maths-problem/
Share on other sites

What are you building the VST in ? If it's as low-level as C++ then I would've thought it would be easy to do a simple 'if{} then{}' type logic ...

I haven't eaten a Wagon Wheel since 07/11/07... ilovecubus.co.uk - 25ml of mp3 taken twice daily.

Link to comment
https://forum.watmm.com/topic/53996-maths-problem/#findComment-1260626
Share on other sites

is this a joke?

 

a is b's master, a and b are in reverse mode

b is c's master, b and c are in unison mode

 

turn a on

 

edit: i'm a programmer myself. if you deem me as having won, wanna collaborate on this vst? i'd love to work on some code. i've done a few vsts before.

 

double edit: ahh, nevermind. i imagine you meant it should work for any switch?

 

triple edit: if the graph was completely connected, with all edges in reverse mode this would work. the only problem is the master/slave shit. if you mandate there be a master/slave system and impose the limit of one edge per pair of vertices, this problem is unsolvable. just wrote it all out :x

Edited by bigs
Link to comment
https://forum.watmm.com/topic/53996-maths-problem/#findComment-1260644
Share on other sites

wait, are you saying that you already have created this "reverse" and "unison" function in the switch or is that part of the problem? I'm actually interested in figuring this out i just have no idea where to start because I don't understand the context fully. Do you have some sort of switch that designates how it is operating? Is this a function that will be controlled by the user or are you just going to hardwire something in?

Link to comment
https://forum.watmm.com/topic/53996-maths-problem/#findComment-1261525
Share on other sites

step one would be to write out a truth table

better yet, a k-map

Edited by kaini
  On 5/7/2013 at 11:06 PM, ambermonk said:

I know IDM can be extreme

  On 6/3/2017 at 11:50 PM, ladalaika said:

this sounds like an airplane landing on a minefield

Link to comment
https://forum.watmm.com/topic/53996-maths-problem/#findComment-1262177
Share on other sites

good thing i didn't then!

it looked cyclical, even from afar.

  On 5/7/2013 at 11:06 PM, ambermonk said:

I know IDM can be extreme

  On 6/3/2017 at 11:50 PM, ladalaika said:

this sounds like an airplane landing on a minefield

Link to comment
https://forum.watmm.com/topic/53996-maths-problem/#findComment-1263009
Share on other sites

Thanks for teh rips people. I'm gonna use a truth table/K-map from now, but I don't you realise that this is the first bit of 'programming' I've done, so I'm not really aware of these things, I am limited to the reverse/unsion functions due Pure Data's (The prog. I'm using) objects. Biggs if you're still up for it it, would be quite interesting to try and build something together, though you have a appreciate I am somewhat a n00b at this, which means I may make some mistakes. But yeah thanks for the help guys, I'll approach the problem in a different way.

Link to comment
https://forum.watmm.com/topic/53996-maths-problem/#findComment-1264609
Share on other sites

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.

  • Recently Browsing   1 Member

×
×