Math Is Fun Forum

  Discussion about math, puzzles, games and fun.   Useful symbols: ÷ × ½ √ ∞ ≠ ≤ ≥ ≈ ⇒ ± ∈ Δ θ ∴ ∑ ∫ • π ƒ -¹ ² ³ °

You are not logged in.

#1 2006-03-31 17:06:05

MathsIsFun
Administrator
Registered: 2005-01-21
Posts: 7,711

Hex Drums

Hex Drums? Say What??

Find out here: Hexadecimal Drum Machine


"The physicists defer only to mathematicians, and the mathematicians defer only to God ..."  - Leon M. Lederman

Offline

#2 2006-03-31 18:48:34

Jai Ganesh
Administrator
Registered: 2005-06-28
Posts: 45,832

Re: Hex Drums

Very interesting, MathsIsFun! I tried different combinations at random, and enjoyed it!  I'm sure all visitng the page would love it too! A link to Hex Drums may be placed on the index page, MathsIsFun!


It appears to me that if one wants to make progress in mathematics, one should study the masters and not the pupils. - Niels Henrik Abel.

Nothing is better than reading and gaining more and more knowledge - Stephen William Hawking.

Online

#3 2006-03-31 20:07:12

justlookingforthemoment
Moderator
Registered: 2005-05-26
Posts: 2,161

Re: Hex Drums

Wow! It's cool! I'm going to have a play!

Do you remember when a guest once posted asking for 'maths music games' and we had no idea what that meant? Well, I think this qualifies!

Offline

#4 2006-04-01 00:08:53

MathsIsFun
Administrator
Registered: 2005-01-21
Posts: 7,711

Re: Hex Drums

Thanks, it was fun. Now I just need some more ideas ... hmmmm, maybe a random function could be fun?


"The physicists defer only to mathematicians, and the mathematicians defer only to God ..."  - Leon M. Lederman

Offline

#5 2006-04-01 10:44:45

justlookingforthemoment
Moderator
Registered: 2005-05-26
Posts: 2,161

Re: Hex Drums

MathsIsFun wrote:

Now I just need some more ideas ...

A speed adjusting slider, for changing the tempo?

Oh, yes, I like the random idea.

One more thing: when I click on the 'hex drums' title in the flash page, I get this message:
       Oops! - can't find the file "/games/hexadecimal-drum-machine.html"

Offline

#6 2006-04-01 11:30:15

mathsyperson
Moderator
Registered: 2005-06-22
Posts: 4,900

Re: Hex Drums

Yes, the tempo adjusting dial thing is a good idea. I don't think the random thing is though.

A rhythm created using that would be exactly that - random. And for that reason, it would sound absolutely horrible.

Another possible idea is to adjust the amount of beats you have in the loop. At the moment it's 16, which means that any continuous rhythm you make has to have 1, 2, 4, 8 or 16 beats in it. If you made the thing's size adjustable, then people would have more freedom in creating rhythm loops. I'd imagine that might be quite hard to implement though.


Why did the vector cross the road?
It wanted to be normal.

Offline

#7 2006-04-01 12:22:36

MathsIsFun
Administrator
Registered: 2005-01-21
Posts: 7,711

Re: Hex Drums

jl: I don't know how to let the user adjust the speed! And thanks, I will fix that error.

mathsy: adjustable size is pretty difficult, but maybe one day. And the random rhythm could have 1,2,4,8 or 16 spacings, so that one random change could be (for example) to play the snare every 4th beat starting at beat 3.

Another fun idea would be to have a couple of extra drums that could be "hit" with the mouse.


"The physicists defer only to mathematicians, and the mathematicians defer only to God ..."  - Leon M. Lederman

Offline

#8 2006-04-04 21:50:23

MathsIsFun
Administrator
Registered: 2005-01-21
Posts: 7,711

Re: Hex Drums


"The physicists defer only to mathematicians, and the mathematicians defer only to God ..."  - Leon M. Lederman

Offline

#9 2006-04-05 00:17:24

mathsyperson
Moderator
Registered: 2005-06-22
Posts: 4,900

Re: Hex Drums

Good pages, but there are a few faults with the converter.

When you type stuff into the hexadecimal box, the other two behave strangely. The decimal one eventually gets a decimal point from nowhere and starts showing numbers far smaller than it should, and the binary one is even odder. If you type only 1 and 0 into the hex box, then it the binary box just copies it and there are other strange things about it too.

The explanation for Binary, Decimal and Hex numbers was very good though. I especally liked the counter that could go up to 10 digits in any base from 2 to 16. I watched it count all the way up to 1111111111 in binary. big_smile

The only minor thing I can find with that is that the tally of how many it's done goes off the screen after around 150-ish. I'm not sure how you'd fix that though.


Why did the vector cross the road?
It wanted to be normal.

Offline

#10 2006-04-05 00:55:54

MathsIsFun
Administrator
Registered: 2005-01-21
Posts: 7,711

Re: Hex Drums

Thanks mathsy! Lifesaver! I simply didn't copy a line of code to the right spot in the final version eek Attending to it now.

With the tally, it goes off the screen and eventually stops creating little dots (if I let it go on, and somebody let it go overnight it might eventually create so many little dots that it would use up all the computers memory). Maybe I could get it to create a large dot for every hundred dots or something?


"The physicists defer only to mathematicians, and the mathematicians defer only to God ..."  - Leon M. Lederman

Offline

#11 2006-04-05 01:13:27

mathsyperson
Moderator
Registered: 2005-06-22
Posts: 4,900

Re: Hex Drums

Sorry, but there are still a few minor faults in there. If the decimal box gets more than 15 digits in it, it tries to show it in standard form, but it does have anything to say "x 10^##", which makes it a bit confusing.

Also, if you type a number that ends in 0 into the hex box, then the binary converter ignores the 0.

e.g 100(Hex) ---> 1(Bin)


Why did the vector cross the road?
It wanted to be normal.

Offline

#12 2006-04-05 01:46:14

MathsIsFun
Administrator
Registered: 2005-01-21
Posts: 7,711

Re: Hex Drums

That's good. I will allow the letter "e" in the decimal box, that should fix it.

That 100(Hex) ---> 1(Bin) is part of the original problem. Inbetween Binary and Hex I do a direct "translation", and then clean up any leading and trailing zeros. It was that cleanup that was misbehaving (turning binary "100000000" into "1").

Have a try now, I have uploaded a modified version. You may need to use "refresh".

(Now that I allow "e" to be displayed in the decimal box, people will also be able to enter decimals in standard form. I now need to check all possibilities there.)


"The physicists defer only to mathematicians, and the mathematicians defer only to God ..."  - Leon M. Lederman

Offline

#13 2006-04-05 03:41:15

mathsyperson
Moderator
Registered: 2005-06-22
Posts: 4,900

Re: Hex Drums

Heehee, I found some more. roll

When you enter big numbers into the decimal box, then the binary and hex boxes start to not convert accurately anymore. They get the first digits of the number and then it ends with a bunch of zeroes.

Interestingly, converting to and from binary and hex doesn't have this problem.


Why did the vector cross the road?
It wanted to be normal.

Offline

#14 2006-04-05 09:29:36

MathsIsFun
Administrator
Registered: 2005-01-21
Posts: 7,711

Re: Hex Drums

I have been relying on floating point arithmetic - I may need to go to full-precision digit-by-digit conversion sad

At least then I won't have to deal with variations like "-1.1e-5" smile


"The physicists defer only to mathematicians, and the mathematicians defer only to God ..."  - Leon M. Lederman

Offline

#15 2006-04-05 18:11:47

ryos
Member
Registered: 2005-08-04
Posts: 394

Re: Hex Drums

Me like! Me make noise!

5EC1A1A85E5A81A0
1591121181151210


El que pega primero pega dos veces.

Offline

#16 2006-04-05 18:27:24

ryos
Member
Registered: 2005-08-04
Posts: 394

Re: Hex Drums

Hey, I just read the page. Is it supposed to end like this?

"Also, computers love binary (and hexadecimal) because the computer circuits and memory are based on "on/off" (either a signal is there or not). For example, the pictures and sound on a DVD"

It looks chopped short to me.


El que pega primero pega dos veces.

Offline

#17 2006-04-05 18:30:41

ryos
Member
Registered: 2005-08-04
Posts: 394

Re: Hex Drums

On the converter, I didn't find any errors, but I do have a suggestion. Would it be possible to make it type from right to left? That's the way binary numbers increase, so it makes more intuitive sense while typing even though on paper it may sound like a bad idea.


El que pega primero pega dos veces.

Offline

#18 2006-04-05 18:43:44

MathsIsFun
Administrator
Registered: 2005-01-21
Posts: 7,711

Re: Hex Drums

ryos wrote:

5EC1A1A85E5A81A0
1591121181151210

5EC1A1A85E5A81A0 sounds best on drumkit 3
1591121181151210 sounds best with the volume down tongue

And you are right, explanations of why binary is useful is just so obvious I couldn't think of what to say! How should it end?


"The physicists defer only to mathematicians, and the mathematicians defer only to God ..."  - Leon M. Lederman

Offline

#19 2006-04-05 20:03:57

justlookingforthemoment
Moderator
Registered: 2005-05-26
Posts: 2,161

Re: Hex Drums

This is fun! Thanks Rod!

90A0C01A1842D182

On the Binary, Decimal and Hexadecimal Numbers page, in the 'Counting' flash window, the white bits on the play button aren't transparent, whereas the pause button is. Purely for looks...

Hexadecimal Numbers wrote:

The Hexadecimal number are interesting.

Maybe insert an 's' or rephrase the sentence? That's all. Thanks. smile

Offline

#20 2006-04-05 20:35:36

MathsIsFun
Administrator
Registered: 2005-01-21
Posts: 7,711

Re: Hex Drums

Great!

And thanx for corrections.

Another One: FAF90088280820C0


"The physicists defer only to mathematicians, and the mathematicians defer only to God ..."  - Leon M. Lederman

Offline

#21 2006-04-06 04:05:47

ryos
Member
Registered: 2005-08-04
Posts: 394

Re: Hex Drums

Good ones, you guys!

9CBADDCB8BABCDAB
8090a0b0c0d0e0f0
(play them on kit 2. #2 I made by starting with the cursor at the left (and the field zeroed out) and typing 123456789abcdef. The program turned it into that, and it doesn't sound half bad!)

As for how it should end...Maybe explain that binary is the only way to represent any number if all you have is two numbers to work with. And that this invention enables all electronic gadgets, from remote controls to satellites. dunno:


El que pega primero pega dos veces.

Offline

Board footer

Powered by FluxBB