Author Topic: Sound in BASIC-programs  (Read 24167 times)

0 Members and 4 Guests are viewing this topic.

Offline p2

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 849
  • Rating: +51/-11
  • I'm back :)
    • View Profile
Re: Sound in BASIC-programs
« Reply #45 on: June 14, 2011, 02:56:47 pm »
What should have the APP made?

I can't open the prgmAXESND

:.Hello is an Error in basic; " should be there


And I can't open it with asm(prgmAXESND


Whatr should I do now?
*insert supercool signature*

Offline Michael_Lee

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1019
  • Rating: +124/-9
    • View Profile
Re: Sound in BASIC-programs
« Reply #46 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'.
My website: Currently boring.

Projects:
Axe Interpreter
   > Core: Done
   > Memory: Need write code to add constants.
   > Graphics: Rewritten.  Needs to integrate sprites with constants.
   > IO: GetKey done.  Need to add mostly homescreen IO stuff.
Croquette:
   > Stomping bugs
   > Internet version: On hold until I can make my website less boring/broken.

Offline p2

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 849
  • Rating: +51/-11
  • I'm back :)
    • View Profile
Re: Sound in BASIC-programs
« Reply #47 on: June 14, 2011, 03:04:11 pm »
Called it AXETEST:

Quote
PRGM:AXETEST
:.HALLO
:Disp("HALLO

Starte AXE

...
...

Defragmenting...
...Ready.

asm(HELLO

ERR:SYNTAX
1:QUIT
2:GOTO


asm(prgmHELLO

ERR:INVALID
1:Quit
2:Goto
« Last Edit: June 14, 2011, 03:05:41 pm by p2 »
*insert supercool signature*

Offline z80man

  • Casio Traitor
  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 977
  • Rating: +85/-3
    • View Profile
Re: Sound in BASIC-programs
« Reply #48 on: June 14, 2011, 03:05:01 pm »
Go to the Axe app. Press compile. Select AXESND. Quit the app. Now when you're on the homescreen enter asm(HELLO

List of stuff I need to do before September:
1. Finish the Emulator of the Casio Prizm (in active development)
2. Finish the the SH3 asm IDE/assembler/linker program (in active development)
3. Create a partial Java virtual machine  for the Prizm (not started)
4. Create Axe for the Prizm with an Axe legacy mode (in planning phase)
5. Develop a large set of C and asm libraries for the Prizm (some progress)
6. Create an emulator of the 83+ for the Prizm (not started)
7. Create a well polished game that showcases the ability of the Casio Prizm (not started)

Offline Michael_Lee

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1019
  • Rating: +124/-9
    • View Profile
Re: Sound in BASIC-programs
« Reply #49 on: June 14, 2011, 03:06:55 pm »
Didn't you name your program 'HALLO', not 'HELLO'?
My website: Currently boring.

Projects:
Axe Interpreter
   > Core: Done
   > Memory: Need write code to add constants.
   > Graphics: Rewritten.  Needs to integrate sprites with constants.
   > IO: GetKey done.  Need to add mostly homescreen IO stuff.
Croquette:
   > Stomping bugs
   > Internet version: On hold until I can make my website less boring/broken.

Offline p2

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 849
  • Rating: +51/-11
  • I'm back :)
    • View Profile
Re: Sound in BASIC-programs
« Reply #50 on: June 14, 2011, 03:11:10 pm »
ERR:SYNTAX


But In AXE I've seen, that I've new programs:

COMPILE
 :AXESND
 :AXETEST
 :#AXESND
 :#AXETEST






No.

In each of the 2 PROGs i've written HELLO




You speak German???
« Last Edit: June 14, 2011, 03:12:40 pm by p2 »
*insert supercool signature*

Offline ben_g

  • Hey cool I can set a custom title now :)
  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1002
  • Rating: +125/-4
  • Asm noob
    • View Profile
    • Our programmer's team: GameCommandoSquad
Re: Sound in BASIC-programs
« Reply #51 on: June 14, 2011, 03:12:56 pm »
Those are programs backuped by axe (to prevent that you'll lose programs on ram clears).

by the way, are you sure you aren't compiling for a shell? You could also try to set the shell to application, and run it from the 'apps' menu
« Last Edit: June 14, 2011, 03:15:52 pm by ben_g »
My projects
 - The Lost Survivors (Unreal Engine) ACTIVE [GameCommandoSquad main project]
 - Oxo, with single-calc multiplayer and AI (axe) RELEASED (screenshot) (topic)
 - An android version of oxo (java)  ACTIVE
 - A 3D collision detection library (axe) RELEASED! (topic)(screenshot)(more recent screenshot)(screenshot of it being used in a tilemapper)
Spoiler For inactive:
- A first person shooter with a polygon-based 3d engine. (z80, will probably be recoded in axe using GLib) ON HOLD (screenshot)
 - A java MORPG. (pc) DEEP COMA(read more)(screenshot)
 - a minecraft game in axe DEAD (source code available)
 - a 3D racing game (axe) ON HOLD (outdated screenshot of asm version)

This signature was last updated on 20/04/2015 and may be outdated

Offline p2

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 849
  • Rating: +51/-11
  • I'm back :)
    • View Profile
Re: Sound in BASIC-programs
« Reply #52 on: June 14, 2011, 03:15:02 pm »
I've an APP with the Name HELLO!
But if I start it, nothing happens.
shoud I try the same again, but with a PAUSE after the DISP("HELLO





prgmHALLO

:.HALLO
:Disp("HALLO
:Pause




Nothing.

But now, asm(prgmHELLO
has no ERR!!!
But just because nothing happens.
« Last Edit: June 14, 2011, 03:19:16 pm by p2 »
*insert supercool signature*

Offline Michael_Lee

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1019
  • Rating: +124/-9
    • View Profile
Re: Sound in BASIC-programs
« Reply #53 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
My website: Currently boring.

Projects:
Axe Interpreter
   > Core: Done
   > Memory: Need write code to add constants.
   > Graphics: Rewritten.  Needs to integrate sprites with constants.
   > IO: GetKey done.  Need to add mostly homescreen IO stuff.
Croquette:
   > Stomping bugs
   > Internet version: On hold until I can make my website less boring/broken.

Offline ben_g

  • Hey cool I can set a custom title now :)
  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1002
  • Rating: +125/-4
  • Asm noob
    • View Profile
    • Our programmer's team: GameCommandoSquad
Re: Sound in BASIC-programs
« Reply #54 on: June 14, 2011, 03:18:55 pm »
remember: pause doesn't work the same as in basic. In axe, it's Pause Milisecs, where milisecs is the number of milisecounds

EDIT: Ninja'd...
« Last Edit: June 14, 2011, 03:20:37 pm by ben_g »
My projects
 - The Lost Survivors (Unreal Engine) ACTIVE [GameCommandoSquad main project]
 - Oxo, with single-calc multiplayer and AI (axe) RELEASED (screenshot) (topic)
 - An android version of oxo (java)  ACTIVE
 - A 3D collision detection library (axe) RELEASED! (topic)(screenshot)(more recent screenshot)(screenshot of it being used in a tilemapper)
Spoiler For inactive:
- A first person shooter with a polygon-based 3d engine. (z80, will probably be recoded in axe using GLib) ON HOLD (screenshot)
 - A java MORPG. (pc) DEEP COMA(read more)(screenshot)
 - a minecraft game in axe DEAD (source code available)
 - a 3D racing game (axe) ON HOLD (outdated screenshot of asm version)

This signature was last updated on 20/04/2015 and may be outdated

Ashbad

  • Guest
Re: Sound in BASIC-programs
« Reply #55 on: June 14, 2011, 03:23:34 pm »
If you want use BASIC for sound, why not use the music capabilities in Omnicalc?  Its easier to use than axe and all you need is the Omnicalc app, which most calc techies should have anyways.

Offline p2

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 849
  • Rating: +51/-11
  • I'm back :)
    • View Profile
Re: Sound in BASIC-programs
« Reply #56 on: June 14, 2011, 03:24:12 pm »
No...
 :banghead:

nothing happens.

But no ERR :o ;D
*insert supercool signature*

Offline z80man

  • Casio Traitor
  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 977
  • Rating: +85/-3
    • View Profile
Re: Sound in BASIC-programs
« Reply #57 on: June 14, 2011, 03:26:33 pm »
Don't give your source file and your executable the same name. so do something like

Code: [Select]
prgmHALLO
.HELLO
Disp ("Hello")
Pause 1000
And it sounds like you're compiling to an app. Make sure under options you selected no shell or the shell of your choice.

List of stuff I need to do before September:
1. Finish the Emulator of the Casio Prizm (in active development)
2. Finish the the SH3 asm IDE/assembler/linker program (in active development)
3. Create a partial Java virtual machine  for the Prizm (not started)
4. Create Axe for the Prizm with an Axe legacy mode (in planning phase)
5. Develop a large set of C and asm libraries for the Prizm (some progress)
6. Create an emulator of the 83+ for the Prizm (not started)
7. Create a well polished game that showcases the ability of the Casio Prizm (not started)

Offline p2

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 849
  • Rating: +51/-11
  • I'm back :)
    • View Profile
Re: Sound in BASIC-programs
« Reply #58 on: June 14, 2011, 03:30:26 pm »
IT WORKS!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

It was just, because I've chosen Doors_CS7 and not ASM.
NOW I HAVE MY FIRST APP.
COOL.


thanks for helping.



But I have still one Question:



STAT -> CALC

1-Var Stats
2-Var Stats
Med-Med
LinReg(ax+b)
QuadReg
CubicReg
QuartReg
LinReg(a+bx)
LnReg
ExpReg
PwrReg               <----That is new!!!!
Logistic
SinReg
Manual-Fit



WHERE IS FREQ(
*insert supercool signature*

Offline p2

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 849
  • Rating: +51/-11
  • I'm back :)
    • View Profile
Re: Sound in BASIC-programs
« Reply #59 on: June 14, 2011, 03:34:25 pm »
If I press STAT and then RIGHT (CALC)
Which number should be the freq( command?
*insert supercool signature*