Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Michael_Lee

Pages: 1 ... 12 13 [14] 15 16 ... 70
196
TI-BASIC / Re: help me understand random seed.
« on: June 20, 2011, 11:20:24 am »
It's very important to realize that it's extremely hard to ever create a 'random' number in computers.  Computers don't do random. 

Instead, the next best alternative is creating 'pseudo-random' numbers -- numbers, that on the surface, seem random, but are actually determined by a complex formula.

The seed is the initial value that you are feeding the 'rand' function.  The calculator (and all random-number-generators) takes the seed, and feeds it into a complex function that will output a pseudo-random number.  It then takes that pseudo-random number and feeds it back into the rand function the next time it is called.

You can exploit this effect: if you constantly store the same seed, the output value will be identical each time.


tl;dr:
You can't do random numbers on computers, instead, you feed a function a seed number, and it transforms that seed into something that's random enough.


(And if I got anything wrong, or am unclear, feel free to point it out :))

197
TI Z80 / Re: Axe parser game
« on: June 20, 2011, 11:07:35 am »
You don't need anything complex like the MIDI to Axe converter - just use 'Freq(' commands.

198
General Calculator Help / Re: Sound in BASIC-programs
« on: June 14, 2011, 03:43:34 pm »
Don't worry about IRC -- when you get 40 posts, you'll see it.  You can't miss it.  It's invisible right now.

Feel free to PM me at any time!

199
General Calculator Help / Re: Sound in BASIC-programs
« on: June 14, 2011, 03:35:30 pm »
When you writing a program, Axe replaces 'SinReg' with 'Freq'.

When you are NOT writing a program, it just displays 'SinReg'.

200
General Calculator Help / Re: Sound in BASIC-programs
« on: June 14, 2011, 03:17:50 pm »
Add a 'Pause 1000' -- that should pause it briefly.

Also, don't forget to close your parentesis and quotation mark.

Do this:
Code: [Select]
.HELLO
Disp("HELLO")
Pause 1000

Do not do this:
Code: [Select]
.HELLO
Disp("HELLO
Pause 1000

201
General Calculator Help / Re: Sound in BASIC-programs
« on: June 14, 2011, 03:06:55 pm »
Didn't you name your program 'HALLO', not 'HELLO'?

202
General Calculator Help / Re: Sound in BASIC-programs
« on: June 14, 2011, 02:59:33 pm »
You have to run asm(pgrmHELLO) -- the name at the top after the period is the new name of the program.

So let's say you make a program named "TEST" and you type in:

Code: [Select]
.HELLO
Disp "Hello"

The program you select in Axe is 'TEST', and the program that you run on the homescreen is 'HELLO'.

203
News / Re: Gossamer release and update to DCS7
« on: June 14, 2011, 02:50:45 pm »
Hooray!  A calc browser!

You should post here, Kerm, so I can bump your respect up.

Btw, is 'Gossamer' supposed to be symbolic of anything/mean anything?

204
General Calculator Help / Re: Sound in BASIC-programs
« on: June 14, 2011, 02:47:06 pm »
To find Freq(, click [STAT], [RIGHT ARROW].  Scroll down.

205
General Calculator Help / Re: Sound in BASIC-programs
« on: June 14, 2011, 02:39:44 pm »
Clarification on ben_g's post: Don't add anything after the '//' marks: those are comments.

And yes, Axe does add new tokens.

Also, 10 is a bit of a low number: try using Freq(264, 528) or something.

Edit

1] Go to the home screen
2] Hit [PGRM] and make a new program
3] Copy the program ben_g gave you.
4] Hit [APPS] and scroll until you see Axe.
5] Open Axe, and select 'Compile'
6] Choose the program you just wrote.
7] Select it, and wait until it finishes.
8] Go to the home menu, and type in 'Asm(pgrmSOUND)'.

206
General Calculator Help / Re: Sound in BASIC-programs
« on: June 14, 2011, 02:33:47 pm »
You can find Freq( under S.

What Axe does is that it takes the tokens you normally use, and temporarily transforms them.

207
General Calculator Help / Re: Sound in BASIC-programs
« on: June 14, 2011, 02:31:31 pm »
Version 0.5.3 is fine -- I think it might be your program that's the problem.

208
General Calculator Help / Re: Sound in BASIC-programs
« on: June 14, 2011, 02:30:16 pm »
Okay, stop.

First, get out of the app, then go to the memory menu and clear your ram (don't forget to archive programs you want to keep).

Then, copy the code you were writing here and let us look at it.

209
Introduce Yourself! / Re: Hello!
« on: June 13, 2011, 05:45:09 pm »
Hi!  Welcome to the forums!

What kind of projects are you working at the moment?

210
TI Z80 / Re: Light - Progress
« on: June 13, 2011, 05:34:02 pm »
I wonder if this engine could be used for a pseudo-3D game... When I look at the screenshots I think GTA.

I'm afraid that currently, my engine is too slow for much of anything.
I've optimized it as much as I know how, but it's too slow inherently: I'm probably going to have to redo most of it.


Just realized it's a lot like this game: http://www.addictinggames.com/arcade-games/find-exit-game.jsp

Maybe try porting it? :D

I'm behind a filter: what's the game like?
Is there an equivalent version for android phones floating around?
Is there a youtube video somewhere?

Pages: 1 ... 12 13 [14] 15 16 ... 70