XBIOS 32

All about chiptunes

Moderators: Mug UK, lotek_style, Moderator Team

User avatar
Cronos
Atari maniac
Atari maniac
Posts: 76
Joined: Mon Jul 22, 2002 8:30 am
Location: Gouda, The Netherlands
Contact:

XBIOS 32

Postby Cronos » Sun Jul 24, 2016 7:26 am

I have two questions. I've been away from ST coding for a bit, but I suspect that some of you aren't, that's why I ask here.

1) Can someone cobble together a basic little thing that allows you to select an XBIOS 32 music data file using a file selector and then play it?
2) Is there a way to convert XBIOS 32 music to SNDH format? Googled for a convertor but no luck.
Richard Karsmakers

http://www.STNICCC.com (1990, 2000, 2015, 2032 :-))
http://www.ST-NEWS.com (1986-1996)
"Ultimate Virus Killer 2000" (1987-2004)

User avatar
lotek_style
Mod(ul)erator
Mod(ul)erator
Posts: 2364
Joined: Sat May 11, 2002 2:39 pm
Location: germany
Contact:

Re: XBIOS 32

Postby lotek_style » Sun Jul 24, 2016 7:31 am

Grazey is the man to ask here :)
lotek style / the sirius cybernetics corporation
- musician - ascii-artist - swapper - archivist -

.tSCc. - low-tech atari cyberpunks since 1990
http://www.tscc.de/ | http://demozoo.org/ | http://www.lotekstyle.de/ | http://ymrockerz.atari.org/

User avatar
simonsunnyboy
Moderator
Moderator
Posts: 4774
Joined: Wed Oct 23, 2002 4:36 pm
Location: Friedrichshafen, Germany
Contact:

Re: XBIOS 32

Postby simonsunnyboy » Sun Jul 24, 2016 7:50 am

Yes, XBIOS32 can be wrapped in SNDH but I think stopping and looping will not work.
As XBIOS32 is mainly a language to feed the YM registers, a compatible driver can be written that plays the data streams and interacts well with SNDH.

Short piece of GFA that should play such a file....

Code: Select all

FILESELECT "\*.X32","",fname$
OPEN "I",#1,fname$
muslen%=LOF(#1)
mus$=STRING$(32000,muslen$)
BGET #1,V:mus$,muslen%
CLOSE #1
~XBIOS(32,L:varptr(mus$))
Simon Sunnyboy/Paradize - http://paradize.atari.org/ - STOT: http://www.npoi.de/stot/

Stay cool, stay Atari!

1x2600jr, 1x1040STFm, 1x1040STE 4MB+TOS2.06+SatanDisk, 1xF030 14MB+FPU+NetUS-Bee

Jabber: simonsunnyboy@atari-jabber.org

User avatar
simonsunnyboy
Moderator
Moderator
Posts: 4774
Joined: Wed Oct 23, 2002 4:36 pm
Location: Friedrichshafen, Germany
Contact:

Re: XBIOS 32

Postby simonsunnyboy » Sun Jul 24, 2016 7:52 am

Take note that the only limitation with XBIOS32 music is that you cannot do special timer effects. Any plain 50/60Hz YM music is possible and may sound really good.

Only most X32 editors produces rather simple musical output, the fileformat allows for music in good 87 quality.

.YM file content can be wrapped in XBIOS32 with some effort. Registerwise it is the same, only lacking the command stream as X32 is both commands and register data where .YM is only register data.
Simon Sunnyboy/Paradize - http://paradize.atari.org/ - STOT: http://www.npoi.de/stot/

Stay cool, stay Atari!

1x2600jr, 1x1040STFm, 1x1040STE 4MB+TOS2.06+SatanDisk, 1xF030 14MB+FPU+NetUS-Bee

Jabber: simonsunnyboy@atari-jabber.org

User avatar
Cronos
Atari maniac
Atari maniac
Posts: 76
Joined: Mon Jul 22, 2002 8:30 am
Location: Gouda, The Netherlands
Contact:

Re: XBIOS 32

Postby Cronos » Sun Jul 24, 2016 10:05 am

I am quite sure I have some valid X32 tunes however your code only gives me bomb errors, sorry... (emulating GfA Basic on STeem 3.2).
Richard Karsmakers

http://www.STNICCC.com (1990, 2000, 2015, 2032 :-))
http://www.ST-NEWS.com (1986-1996)
"Ultimate Virus Killer 2000" (1987-2004)

User avatar
simonsunnyboy
Moderator
Moderator
Posts: 4774
Joined: Wed Oct 23, 2002 4:36 pm
Location: Friedrichshafen, Germany
Contact:

Re: XBIOS 32

Postby simonsunnyboy » Sun Jul 24, 2016 10:12 am

Code: Select all

mus$=STRING$(32000,muslen$)


This line is bullshit, sorry. Replace it

Code: Select all

mus$=STRING$(muslen%,0)


It should work on STEEM no doubt.
Simon Sunnyboy/Paradize - http://paradize.atari.org/ - STOT: http://www.npoi.de/stot/

Stay cool, stay Atari!

1x2600jr, 1x1040STFm, 1x1040STE 4MB+TOS2.06+SatanDisk, 1xF030 14MB+FPU+NetUS-Bee

Jabber: simonsunnyboy@atari-jabber.org

User avatar
Cronos
Atari maniac
Atari maniac
Posts: 76
Joined: Mon Jul 22, 2002 8:30 am
Location: Gouda, The Netherlands
Contact:

Re: XBIOS 32

Postby Cronos » Sun Jul 24, 2016 10:32 am

Thanks!
Richard Karsmakers

http://www.STNICCC.com (1990, 2000, 2015, 2032 :-))
http://www.ST-NEWS.com (1986-1996)
"Ultimate Virus Killer 2000" (1987-2004)

User avatar
Showaddywaddy
Atari Super Hero
Atari Super Hero
Posts: 658
Joined: Thu Jun 06, 2002 12:01 pm
Location: Montreal, Quebec
Contact:

Re: XBIOS 32

Postby Showaddywaddy » Sun Jul 24, 2016 7:01 pm

check your mail

X32<->SNDH attached


Social Media

     

Return to “Ym rockin'”

Who is online

Users browsing this forum: No registered users and 1 guest