Previous topic - Next topic


That only saves binary data for the configuration data file and a wav audio export. What is need is the data for the sound wave.  :(

Code (glbasic) Select

ins$[0] = "3,0.000,0.080,0.950,0.400,0.330,0.000,-0.140,-0.070,0.000,0.000,-0.520,0.000,0.000,0.000,0.030,1.000,0.420,1.000,1.000,0.000,0.000,0.000" // snare
ins$[1] = "2,0.030,0.110,0.080,0.000,0.330,0.000,-0.440,-0.250,0.000,0.000,0.000,0.000,0.000,-0.010,0.000,-0.010,-0.010,1.000,0.000,0.000,0.340,0.000" // bass drum
ins$[2] = "3,0.000,0.050,0.000,0.170,1.000,0.920,-0.070,-0.070,0.000,0.000,0.030,0.000,0.000,0.000,0.030,1.000,0.420,1.000,1.000,0.000,0.000,0.000" // hihat
sfx$ = SFX_DDgui$(ins$[0])
SFXR(sfx$, filename$)

Overall, it's the efficiency of having to create the media at first install run-time on various devices, like with multi-texture re-rendered resolutions and other media, rather than having to ship all pre-made. It also means that new and improved media can be created by simple command, so there's no artist tech support.  :P


Data for the sound wave generation would be useless for chiptone as its not compatible with SFXR, chiptone is quite a bit more advanced, sound generation wise than SFXR. You would need a new GLB wave generation code based on the chiptone source to do what you suggest.

Also, when complete, chiptone will all you to sequence your own tunes too. There really two quite different utils altogether.

IMHO wave export can be more desirable on slow mobile systems as its a lot quicker than generating wave data when your game starts. Storage is cheap.


"It is practically impossible to teach good programming style to students that have had prior exposure to BASIC.  As potential programmers, they are mentally mutilated beyond hope of regeneration."
(E. W. Dijkstra)


heh...matchy i did that with a midi sequencer Moru helped me to build,
It took scripted inputs to make midi file output.
I lost my original code, but i still have a working exe of it.
You can find a midi lib here on the forums by moru somewhere.
Moru doesnt supply a sample for the format, that you have to work out on your own.
I didnt try to reproduce this because i didnt want to lose another few days programming time......i started to pursue WAV format., but i couldnt work out the format in my head properly.
And scrapped the whole script sound idea altogether.

It is something i would still look into if i had better information resources than what ive found on the internet, which is very cryptic to me.
Perhaps we can team up and do this our selves?
I know music and sound frequencies, and some programming, but i just dont have the proper information to work with WAV formats.

Bing ChatGpt is pretty smart :O


ps. turn down the volume...square and saw formed sound waves can burn speaker coils....if you hear static....its causing damage
Bing ChatGpt is pretty smart :O