Jump to content
Sign in to follow this  

[HELP] Lynx programs

Recommended Posts

Hi !


I'm looking for 2 Lynx programs to generate sound on Lynx :






Thank you for your help ! :)

Share this post

Link to post
Share on other sites
Thanks TailChao.


And you, what program do you use to generate sound on your game ?

Zonik is soundless on the lynx hardware, but will make use of an upgrade I designed.


Hello, what is the best things to have sound and music for lynx coding ?

Go with HSFX and the other amiga dev utilities.

Share this post

Link to post
Share on other sites

HI there,


I'm also trying to work on lynx stuff and sound is a p**n in the ***...


Well thx for your prompt answers Tailchao. As far as Harry's concerned I think (but I may be wrong) that Fagemul has sent him a mail but never got any reply...

After some time trying to figure out how to use .lsf files within the code we managed to get some sound (hurrah). But still, that will not do the trick for music. So how do you guys manage(d) to put all those stuff in your games? I mean I know there are some tools around but are there some tricks or other things to avoid???





Share this post

Link to post
Share on other sites



I have a small tool for finding instrument sounds and a music library for C-developement and BLL-developement.


If you send me your email I can send you the code.


You may browse this forum looking for abcmusic to find out more about it.




Share this post

Link to post
Share on other sites

abccreator.o is run in Lynx

You move the cursor using the joypad and press A or B on buttons.

(B autorepeats).


Basically you create an ASCII description of what you want to play.



tune = "CDEFG";

channel = 0;

abcmusic(channel, tune);


You can also mix in instrument commands like

On = octave n=0..6

Xn = XOR taps n=0..511

In = integrate n=0..1

Vn = volume n=0..127

Tn = time n=0..255

Rn = ramp up (attack) n=0..127

Hn = hold n=0..255

Kn = kill sound (decay) n=0..127


To find good values for instruments use abccreator.o


You can then write your own tune like:


tune = "O1 X7 I0 V40 T22 R40 H2 K1 |:CCCE DDDG FFDD C4:"


The sounds you can use are:


~ - lower

= - higher


Length of a note can be extended by 2,3,4


|: = start of a chorus

: = repeat chorus

' ' = spaces are ignored. They are not required anywhere. I added them for readability.


The tune should end in character 0.


You can run tunes on multiple sound channels simultaneously by calling abcmusic several times:



abcmusic(0, tune0);

abcmusic(1, tune1);

abcmusic(2, tune2);

abcmusic(3, tune3);


If you don't know how to use the linker to add abcmusic.m65 to your compilation you can add


as the first line in abcmusic.m65 and


as the last.


Then you just add

#include "abcmusic.m65"

to your C-program.




Share this post

Link to post
Share on other sites

I just heard that Panther does not like my code :(


Well. In case you still want to try it out I compiled the tools required to work with it on a friends Windows XP machine.


You can pick them up for a few days from:




These are just command-line tools (cc65, link65, lyxass, sprpck etc.). You need to add


to your path. You need to unzip the archive to C:


And you may also need to change

RM=rm -f









in the abcmini/makefile.


Compiling everything is done by

cd abcmini


(There is a WindowsXP compatible make utility in C:lynxnewcc65bin)




Share this post

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...