Id like to bring up the topic of scaling, specifically ways to - TopicsExpress



          

Id like to bring up the topic of scaling, specifically ways to approach scaling different sets of data with different ranges, to a master dial. I am having trouble wrapping my brain about the best way to approach scaling the information I get from the current crypto currency prices to a 0-127 dial, when the price of each currency is drastically different to the others. Here is some made up information to give you an example of what I mean. There are two currencies. MAXcoin and MSPcoin. MAXcoins are currently worth 500 USD each MSPcoins are currently worth 0.5 USD each I have two dials called MAXdial and MSPdial that each move from 0-127 MAXcoin could potentially shift +- 10 USD in a single update. MSPcoin could potentially shift +- .05 USD in a single update. I want both the MAXdial and MSPdial to have the same, drastic movements depending on the price shift... the problem is I cant use the same scaling for each. I also want the scaling to adjust... so if MSPcoin does very well over and over it starts being worth more. Example, MSPcoins price rises to the point where they are now worth 5 USD, increasing the range a shift could be to +- .5 USD in a single update. What is this sort of mathematics called? Ive never gotten deep enough at school/college to know how to aproach this and I have no idea what to research or study to figure out how to do this type of scalable scaling. I hope someone out there understands what I am trying to achieve. Finally, here is a screenshot of what I have... You can see BTC is very high in the hundreds, while some other coins are worth only .00001 My ultimate goal is to send a MIDI note out when there is a change, the the velocity being relevant to how drastic the change of the price was, scaled to that currencies range to 0-127 (or -64, 63) - with each currency having its own MIDI note/pitch. My brain hurts.
Posted on: Thu, 14 Aug 2014 20:53:49 +0000

Trending Topics



Recently Viewed Topics




© 2015