Jump to content

Music Starter using sdata


1 reply to this topic

#1  

    Visual batari Basic User

  • 20,525 posts
  • Joined: 23-April 01
  • Controlled Randomness

    Replay Value

    Nonlinear
  • Location:North Carolina (USA)

Posted Wed Nov 19, 2008 6:19 AM

Update:

Instead of using the code below, try the Music and Sound Editor that comes with Visual batari Basic. Create music and sound effects using data or sdtata. You can play around with the data and test it as many times as you want with your favorite emulator. The Music and Sound Editor makes the whole process faster and easier.



Music Starter using sdata is my adapted version of code posted in the Ballblazer thread:

http://www.atariage.com/forums/index.php?s...t&p=1615280

The 256-byte limitation is removed when using sdata. You can fill a whole 4k bank with music if you want. The volume/control/frequency data is in the same order as what you see in Tone Toy 2008 to make it easier for me since I use Tone Toy 2008 to hunt for sounds.


Format:
v,c,f (voice 0)
v,c,f (voice 1)
d


Explanation:
v - volume (0 to 15)
c - control [a.k.a. tone, voice, and distortion] (0 to 15)
f - frequency (0 to 31)
d - duration


I added a bunch of default data in case you're like me and like to have a guide:

  0,0,0
  0,0,0
  1
  0,0,0
  0,0,0
  1
  0,0,0
  0,0,0
  1


Here's the .bas file:
Attached File  music_starter_2008y_11m_19d_0632t.bas   4.03K   204 downloads


I haven't had time to make any tunes with it yet, but I'll post a few in the future. Feel free to post your own tunes. I'm thinking about trying things like the Doctor Who theme from the Tom Baker years and Darth Vader's theme from Star Wars.

Edited by Random Terrain, Wed Jun 15, 2011 11:26 AM.


#2  

    Stargunner

  • 1,108 posts
  • Joined: 27-August 08

Posted Wed Nov 19, 2008 6:15 PM

View PostRandom Terrain, on Wed Nov 19, 2008 7:19 AM, said:

Music Starter using sdata is my adapted version of code posted in the Ballblazer thread:

http://www.atariage.com/forums/index.php?s...t&p=1615280

The 256-byte limitation is removed when using sdata. You can fill a whole 4k bank with music if you want. The volume/control/frequency data is in the same order as what you see in Tone Toy 2008 to make it easier for me since I use Tone Toy 2008 to hunt for sounds.


Format:
v,c,f (voice 0)
v,c,f (voice 1)
d


Explanation:
v - volume (0 to 15)
c - control [a.k.a. tone, voice, and distortion] (0 to 15)
f - frequency (0 to 31)
d - duration


I added a bunch of default data in case you're like me and like to have a guide:

  0,0,0
  0,0,0
  1
  0,0,0
  0,0,0
  1
  0,0,0
  0,0,0
  1


Here's the .bas file:
Attachment music_st...9d_0632t.bas


I haven't had time to make any tunes with it yet, but I'll post a few in the future. Feel free to post your own tunes. I'm thinking about trying things like the Doctor Who theme from the Tom Baker years and Darth Vader's theme from Star Wars.

Hey this is pretty cool! Thanks!





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users