Hello. I'm programming a music application and I have come across a math problem. My math is still not great.
I need to rationalize a set of input numbers to produce a set of output numbers
1 would generate the number 100000 with my equation (and using 1 would not alter 100000)
2 thru 12 have to generate a total less than that incrementally
13 would generate 50000
14 thru to 24 have to generate a total less than that incrementally
25 would generate 25000
26 thru to 36 have to generate a total less than that incrementally
37 would generate 12500
and so on ...
Can you see the pattern? Every 12 input numbers, have to generate an output number that totals exactly half.
My listing of my output numbers is arbitrary and only listed as an argument.
What is the math equation that lets me do this?. I need an equation so my input numbers will work against any output numbers and halve them every 12 numbers inputted. Is it a ratio? am I asking this correctly?
Any Help appreciated
I need to rationalize a set of input numbers to produce a set of output numbers
1 would generate the number 100000 with my equation (and using 1 would not alter 100000)
2 thru 12 have to generate a total less than that incrementally
13 would generate 50000
14 thru to 24 have to generate a total less than that incrementally
25 would generate 25000
26 thru to 36 have to generate a total less than that incrementally
37 would generate 12500
and so on ...
Can you see the pattern? Every 12 input numbers, have to generate an output number that totals exactly half.
My listing of my output numbers is arbitrary and only listed as an argument.
What is the math equation that lets me do this?. I need an equation so my input numbers will work against any output numbers and halve them every 12 numbers inputted. Is it a ratio? am I asking this correctly?
Any Help appreciated