Resource centre for ZX Spectrum games
      using Manic Miner and Jet Set Willy game engines

 

Archive of the

Manic Miner & Jet Set Willy Yahoo! Group

messages

 

 

 

Message: 4920

Author: john_elliott_uk

Date: 09/10/2005

Subject: Re: How to compose tunes and then insert them in JSW64 engine?

 

--- In manicminerandjetsetwilly@yahoogroups.com, "Igor Makovsky"
wrote:

>
> How can I compose a tune and then insert it in my game rather easy,
> without any coding and so only, using only soft? Is it possible? I'd
> like to change and to compose new tunes and insert them in the intro
> screen and as the in-game tune but I don't know how better to do it.

It's the same situation as in JSW128.

http://www.seasip.demon.co.uk/Jsw/jswtune.html

A tune is basically three sequences of numbers for the three
channels (as opposed to JSW48, where it's one sequence of numbers).
JSWED doesn't have a tune editor, so you either have to rely on imc's
original tune editor (downloadable from the above page), or find
another way to generate the bytes. I use an assembler to do this, but
you could also do it with a BASIC program like

10 LET b = 30000
20 LET a = 30006
30 POKE b, 256 * ((a/256)-INT(a/256))
40 POKE b+1, INT(a/256)
50 READ d
60 IF d < 0 THEN GO TO 100
70 POKE a,d
80 LET a = a + 1
90 GO TO 50
100 LET b = b + 2
110 IF b < 30006 THEN GO TO 30
120 SAVE "title.tun" CODE 30000, a - 30000
130 DATA 46,20,45,20,43,20,255,-1: REM channel 1
140 DATA 58,20,57,20,55,20,255,-1: REM channel 2
150 DATA 255,-1: REM channel 3

(the values given for the channels are valid, but only play 3 notes so
this won't produce much of a tune.)

To get the resulting TUN file into JSWED:

1. Save game in +3DOS format.
2. Edit TITLE.TUN, or generate an entirely new one.
3. Reload the game into JSWED.

 

 

arrowleft
arrowright