|
I found the exercise described by this Coding music rhythms[^] post to be quite enjoyable.
So enjoyable I did it twice.
So enjoyable I decided to make a physical representation with [a popular building toy] : LegoRhythm.png
This image should make it clear enough that the use of fractions can be replaced by a count of the number of studs on each individual piece -- this is the numerator.
Your task, should you choose to accept it, is to define an algorithm that produces the specified output.
Meanwhile, in another (unrelated) thread... Richard MacCutchan said : Why not just Google for "knapsack problem" ?
|
|
|
|
|
Nice try at getting us to do your work, Brian Eno.
Alberto Brandolini: The amount of energy necessary to refute bullshit is an order of magnitude bigger than to produce it.
|
|
|
|
|
How much time did you say you have on your hands?
I wanna be a eunuchs developer! Pass me a bread knife!
|
|
|
|
|
|
Aaaaaaaaaa!
Now I don't only have to worry how many zeros there are in a billion! I also have to worry about how many 'U's!
I wanna be a eunuchs developer! Pass me a bread knife!
|
|
|
|
|
B llions?
|
|
|
|
|
Your screen resolution must be far too low if you think that one's female.
I wanna be a eunuchs developer! Pass me a bread knife!
|
|
|
|
|
Maybe you have more RAM than I.
|
|
|
|
|
it's pretty generic;
print("specified Output");
Does this help?
New version: WinHeist Version 2.1.0 Beta
Have you ever just looked at someone and knew the wheel was turning but the hamster was dead?
Trying to understand the behavior of some people is like trying to smell the color 9.
I'm not crazy, my reality is just different than yours!
|
|
|
|
|
I gave my two cents there.
|
|
|
|
|
I'll look at that link later. It looks like it starts out the way I did, but I wonder whether or not it winds up being more work -- rotating, reversing, and checking for duplicates seems a waste of cycles.
|
|
|
|
|
The rotating and reversing is optional. You can always go through and do all of them iteratively (I think). It may be different when you have an odd number of units versus an even number. Will have to think about it some more.
|
|
|
|
|
The next challenge is to use image recognition and color coding for notes to play the lego on your smartphone.
|
|
|
|
|
I got quite involved with that too. Spent about an hour on it and managed to come up with something that got all the permutations (there were a lot) but ordered incorrectly.
At which point I gave up and indulged instead in a fine pint of Estrella.
Regards,
Rob Philpott.
|
|
|
|
|
Rob Philpott wrote: but ordered incorrectly
Mine don't match his exactly either, but it must be that his are wrong, not mine.
|
|
|
|
|
I got his sequences. My example even shows how. If you're doing all permutations, then you must get his since his add up to 1 as he is requiring.
|
|
|
|
|
I didn't participate...but if I had, I probably would have gone all MIDIish on it and based everything on a PPQN (probably 96) and worked up to the "real" notes rather than messing with fractions and suchlike.
|
|
|
|
|
|
Drug companies out drumming up business again eh?
Wonder if they've got anything for a chronic toe stubber?
New version: WinHeist Version 2.1.0 Beta
Have you ever just looked at someone and knew the wheel was turning but the hamster was dead?
Trying to understand the behavior of some people is like trying to smell the color 9.
I'm not crazy, my reality is just different than yours!
|
|
|
|
|
Wooly socks?
Life is like a s**t sandwich; the more bread you have, the less s**t you eat.
|
|
|
|
|
|
Replace one drug with a different drug. Good job.
There are only 10 types of people in the world, those who understand binary and those who don't.
|
|
|
|
|
Pretty much... they're starting to ask all sorts of weird questions at the doctor's office now. They really don't like it when you say, "That's none of your business..."
Charlie Gilley
<italic>Stuck in a dysfunctional matrix from which I must escape...
"Where liberty dwells, there is my country." B. Franklin, 1783
“They who can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety.” BF, 1759
|
|
|
|
|
charlieg wrote: they're starting to ask all sorts of weird questions at the doctor's office now. They really don't like it when you say, "That's none of your business..." I have a solution, albeit not a popular one. Stop going to the doctor!
There are only 10 types of people in the world, those who understand binary and those who don't.
|
|
|
|
|
That is kind of my philosophy with the dentist. I haven't had a cavity since I quit going!
|
|
|
|