Atari BASIC sound and waveform programming

Moderators: simonsunnyboy, Mug UK, Zorro 2, Moderator Team

walters
Atariator
Atariator
Posts: 20
Joined: Wed Jun 15, 2005 12:46 am

Atari BASIC sound and waveform programming

Postby walters » Mon Feb 20, 2006 9:27 pm

Where can i learn the sound functions and waveform functions for the Atari soundchips i want to learn how to sound program how can i learn the sound and waveform functions please?

User avatar
tobe
Atari God
Atari God
Posts: 1459
Joined: Sat Jan 24, 2004 10:06 am
Location: Lyon, France
Contact:

Postby tobe » Tue Feb 21, 2006 11:39 am

Search for 'GFA BASIC' on this forum.
There's 2 commands to deal with sounds :
- SOUND
- WAVE
step 1: introduce bug, step 2: fix bug, step 3: goto step 1.

MSueper
Captain Atari
Captain Atari
Posts: 191
Joined: Wed Jul 10, 2002 3:47 pm
Location: Paderborn, Germany

Postby MSueper » Sat Feb 25, 2006 7:05 pm

ST Basic => here we go:

sound
----------
sound <channel>,<volume>,<note>,<octave>,<duration>

channel = 1,2,3
volume = 0 ... 15 (0 = no sound, 1 min, 15 max)
note = 1..12, note within octave, like "c"
octave = 1..8 (take a look at some music books)

sound produces only a beep. With wave you can modulate this (a little).


wave
-----------
wave <channel>,<envelop>,<form>,<duration>,<delay>

channel same as with sound
envelop = bit muster for the channels
form = bit 0-3 significant, understand nothing... :-(
duration same as with sound
delay = time to wait before beginning with next command


Sound is very simple and easy to understand, but my usage of wave is to long ago, to remember anything usefull.
Greetings, Martin

gwEm
Captain Atari
Captain Atari
Posts: 220
Joined: Tue Jun 08, 2004 4:43 pm
Location: London, UK
Contact:

Postby gwEm » Thu Mar 02, 2006 11:20 am

i really suggest to use assembler for YM programing. its much more versatile than any builtin sound libraries to be found in a BASIC interpreter. i'm sure if you wish to use assembly language, you'll get lots of support here :)

User avatar
NiceGuyUK
Atari Super Hero
Atari Super Hero
Posts: 580
Joined: Thu Nov 25, 2004 1:03 pm
Location: Kent, England
Contact:

Postby NiceGuyUK » Thu Mar 02, 2006 5:04 pm

gwEm wrote:i really suggest to use assembler for YM programing. its much more versatile than any builtin sound libraries to be found in a BASIC interpreter. i'm sure if you wish to use assembly language, you'll get lots of support here :)


C'mon gwEm, own up, you used the DOSUPERELITETHINGSWITHTHEYMCHIP command in STOS, didn't you? I found MAXYMISER.BAS on your secret FTP server :lol: :lol:
Also known as Big Boss Man of Demografica

User avatar
nobogod
Captain Atari
Captain Atari
Posts: 194
Joined: Wed Aug 04, 2004 12:58 pm
Location: Athens, Greece
Contact:

Postby nobogod » Thu Mar 02, 2006 9:03 pm

Here is a (silly) program I wrote in GFA Basic. When you run it and experiment a little, you maybe understand how SOUND and WAVE functions work.
You shall run it in High Resolution. On Steem or a hi-res ST.
You do not have the required permissions to view the files attached to this post.


Social Media

     

Return to “Other BASIC”

Who is online

Users browsing this forum: No registered users and 2 guests