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 - ZippyDee

Pages: 1 ... 25 26 [27] 28 29 ... 51
391
The Axe Parser Project / Re: "Library" in Axe
« on: May 09, 2011, 09:30:01 am »
I can use it in all programs I make.

It's very useful for me, but it takes lots of place .
Well how else would you expect it to work? It has to take up space if you're going to include it in your program. There's no way for it to exist and take up no space...

392
ASM / Re: compiletime errors
« on: May 09, 2011, 09:28:30 am »
If you reeeeeeally wanted to you could write macros for it. That could let you use those for some slightly faster typing in the future :P

393
The Axe Parser Project / Re: "Library" in Axe
« on: May 09, 2011, 09:26:37 am »
I think that you can call this program a library, since it can be used in any program.
Well that's the key thing...CAN it be used in any program? If it's written for only a specific program, then it's not really a library (at least not a good one). The syntax and usage of commands should be fairly straightforward and logical for general use.

394
The Axe Parser Project / Re: "Library" in Axe
« on: May 09, 2011, 09:17:52 am »
Well, if your program is a collection of routines that are not specific to a particular program, then it could be called a library.

EDIT: This was post 333 :D

395
The Axe Parser Project / Re: "Library" in Axe
« on: May 09, 2011, 09:11:47 am »
A "Library" refers to a set of routines that aren't made into a full program on their own, but rather they are intended to be used by other people to aid them in making their programs.

396
I think it'd hurt their sales to decrease programming capabilities...I know a lot of people who bought the 84SE instead of the NSpire just because of all the programs (and, as DJ_O said, not just games!) even when they knew that the NSpire had an 84SE emulator built in.

397
Khavi / Re: Java on the Prizm
« on: May 09, 2011, 08:48:49 am »
Khavi means coffee in some language (I don't know which one), and coffee = java
Finnish, I believe.

398
Computer Programming / Re: IRC Score Bot
« on: May 09, 2011, 08:12:30 am »
I am aware that it is not yet in the channel, but if it is going to be in the channel, then it should account for users posting through omnom. That's all I was saying.

399
TI Z80 / Re: An Axe piano with 5 octaves
« on: May 09, 2011, 08:09:45 am »
Yep, that is all it takes to play multiple notes at once. Just add up all the sine waves and output the new weird looking wave.

However, the calculator can only output a 1 or a 0, so how do you pull off all the intermediate steps of the new wave? That is where the real trouble comes in to play. For this, you would have to make your own version of freq() whereby using Pulse Width Modulation, (turning the link port on and off really fast), you simulate say, 32 different voltage steps. (That might be the most grammatically strange sentence I've written on Omni)

It's exactly as thepenguin77 said: use Pulse Width Modulation. To explain PWM a bit better, why don't I give an example of some basic PWM.
An nice, simple example would be something like having an LED fade on and off. LEDs have two states: ON and OFF. So how do you fade it? The idea is the same as grayscale on a monochrome calculator screen: some of the time it's turned on, and some of the time it's turned off. But the switch is done very quickly. You can think of it as pulsing on and off. Pulse Width Modulation means changing the width (length) of the on/off pulses.

In this case, thepenguin77 mentioned simulating 32 voltage steps. Basically, that means that every 32 1's or 0's you send represents one pulse. You then change how much of that time you're sending a 1 or sending a 0 to change the pulse frequency. So for fading an LED, the pulses would look something like:

Code: [Select]
00000000000000000000000000000000 (Lowest possible step);
10000000000000000000000000000000
11000000000000000000000000000000
...
11111111111111110000000000000000
11111111111111111000000000000000
11111111111111111100000000000000
...
all the way up to
...
11111111111111111111111111111100
11111111111111111111111111111110
11111111111111111111111111111111 (Highest possible step)

That would fade it from being completely off, to completely on. The same idea goes for varying the frequencies that you are playing, though it's obviously a lot less linear.

400
Web Programming and Design / Re: Input: Website for Robotics Club
« on: May 09, 2011, 03:49:50 am »
I have to agree with that. Personally, I prefer the to have the menu just to stay put. But if you choose to use the floating menu, I think you should at least make it opaque. The transparency just kind of irks me for some reason.

401
Math and Science / Splitting a Bezier?
« on: May 08, 2011, 07:14:17 pm »
Hey I need some help (obviously...otherwise I wouldn't be posting).

I'm trying to figure out how to split a cubic Bezier curve into two separate cubic Bezier curves at a specified point on the curve, but I can't seem to figure out how to do it. I know the control points, and therefore I know the equation.

Here's the equation as defined by Wikipedia:

Where B(t) is a single point on the bezier curve, and Pn is the nth control point.

Any help would be greatly appreciated!


Edit: Added an example of what I'm talking about. I have a full Bezier (top) and I want to split it at a certain point (of which I know the "t" value for the equation) into two independent Bezier curves.

402
Graviter / Re: Graviter - Axe
« on: May 08, 2011, 01:00:10 pm »
Hot damn, that is one sexy menu.

403
Computer Programming / Re: IRC Score Bot
« on: May 07, 2011, 09:56:24 am »
does this account for omnom messages (meaning messages prefixed by "<username>")

404
Computer Programming / Re: [Java] FlowLayout issues
« on: May 06, 2011, 09:44:25 pm »
try-catch statements are crucial for anything that throws an exception, unless the current method also throws an exception...

405
Computer Programming / Re: [Java] FlowLayout issues
« on: May 06, 2011, 09:36:30 pm »
Notice that I had my "waitForID" methods inside a try-catch statement.

Pages: 1 ... 25 26 [27] 28 29 ... 51