Forums

Sega Master System / Mark III / Game Gear
SG-1000 / SC-3000 / SF-7000 / OMV
Home - Forums - Games - Scans - Maps - Cheats - Credits
Music - Videos - Development - Hacks - Translations - Homebrew

View topic - Using MOD2PSG's PSGMOD engine in a game (Was: who has .EPSGMOD export .GG file?)

Reply to topic Goto page 1, 2  Next
Author Message
Bohan
  • Guest
Reply with quote
Using MOD2PSG's PSGMOD engine in a game (Was: who has .EPSGMOD export .GG file?)
Post Posted: Thu Mar 08, 2007 12:55 pm
I use Mod2PSG2 and GGT and WLA.
Can .EPSGMOD file export .GG file?

May you help me?
May Martin help me?
 
  • Site Admin
  • Joined: 19 Oct 1999
  • Posts: 14727
  • Location: London
Reply with quote
Post Posted: Thu Mar 08, 2007 1:02 pm
It is relatively easy to do what you ask, but there is no point - if you want to share the music, why not export it as .vgm?
  View user's profile Send private message Visit poster's website
Bohan
  • Guest
Reply with quote
has who can export .GG?
Post Posted: Thu Mar 08, 2007 1:17 pm
Maxim wrote
It is relatively easy to do what you ask, but there is no point - if you want to share the music, why not export it as .vgm?

No, I has export .VGM, has who can .EPSGMOD export .GG?
I want export .VGM, .ASM example? Can export .GG? psgmod.ASM and psgmod.INC example?
 
  • Site Admin
  • Joined: 19 Oct 1999
  • Posts: 14727
  • Location: London
Reply with quote
Post Posted: Thu Mar 08, 2007 3:13 pm
Source is deliberately NOT given for using PSG2MOD2 output easily because simply to produce a .gg for a tune is not necessary.

If you want to use it as a music engine within another program, you must first learn to write code for the Game Gear, and then you can easily understand how to do it.

If you can explain what you want to do with it, we can help you more. The basic process is given in the PSG2MOD2 documentation:

Quote
To play music, just do this:
(1) In your code, set the PSGMOD_START_ADDRESS constant to an
address inside the RAM. This will set the start address of
the variables of the library. You must reserve 256 bytes
for it. It actually needs less, but it might grow in
later versions.
(2) Include the file psgmod.inc into your code. This file
includes the variables definitions.
(3) Include psgmod.asm in your code.
This file includes the actual library code.
(3) Load a module with PSGMOD_LoadModule().
(4) Start the music with PSGMOD_Start().
(5) Do a loop with calling PSGMOD_Play() every frame.


A simplified version would be:

.define PSGMOD_START_ADDRESS $c000
.include psgmod.inc
.org 0
; standard startup
di
im 1
ld sp, $dff0
; initialise music engine
ld a,0 ; music is in range 0..$3fff
ld hl,music
call PSGMOD_LoadModule
; start new track
call PSGMOD_Start
[TODO: set up VDP and enable VBlank interrupts here]
ei
-: jr - ; loop forever

.org $38 ; VBlank handler
in a,($bf) ; satisfy interrupt
call PSGMOD_Play
reti

.incbin psgmod.asm

music:
.incbin "file.epsgmod"

This is 100% UNTESTED.

PLEASE DO NOT POST NEW THREADS ON THE SAME SUBJECT. (I've deleted two already.)
  View user's profile Send private message Visit poster's website
  • Site Admin
  • Joined: 19 Oct 1999
  • Posts: 14727
  • Location: London
Reply with quote
Post Posted: Tue Mar 13, 2007 1:02 pm
I can read a small amount of simplified Chinese, but not enough to use it to explain things to you. You can try posting in Chinese and I'll see if that helps me to understand.

Please tell us what you want to use this music for.

If you want to make some .gg files that only play music, we will not help you. If you want to add music to some other software, we will help you.

Please do not make any "NEW TOPIC" posts about the same matter. Use the "NEW REPLY" button to reply inside this topic.

Mod2PSG2 will NEVER export .GG directly.

Have you already used WLA DX to make .GG files?



[Edit: If you continue to make posts using fake names to insult us, we will ban you and you will never get any help. I just deleted the posts in question.]
  View user's profile Send private message Visit poster's website
  • Site Admin
  • Joined: 19 Oct 1999
  • Posts: 14727
  • Location: London
Reply with quote
Post Posted: Wed Mar 14, 2007 4:28 pm
[Again replying to another now-locked thread on the same subject.]

The code I posted was labelled as untested, and it has a few bugs and the missing things that WLA DX is telling you about. I have written a corrected, working version, I'm just waiting on you to explain to me why I should give it to you.
  View user's profile Send private message Visit poster's website
Guomin
  • Guest
Reply with quote
no any bugs
Post Posted: Thu Mar 15, 2007 10:46 am
Bohan no bugs.

Maxim do not think Bohan has bugs!
Why Maxim lock posts?
 
Yatin
  • Guest
Reply with quote
has edit any posts
Post Posted: Thu Mar 15, 2007 10:53 am
I think Maxim editing all posts!

Maxim, why move posts?
Why lock posts?
Bohan finding questions.
All people need help!
 
Shoodot
  • Guest
Reply with quote
has locked
Post Posted: Thu Mar 15, 2007 10:59 am
Maxim wrote
[Again replying to another now-locked thread on the same subject.]

The code I posted was labelled as untested, and it has a few bugs and the missing things that WLA DX is telling you about. I have written a corrected, working version, I'm just waiting on you to explain to me why I should give it to you.
Maxim, you go die!
If Maxim lock, I watching Maxim!
 
  • Joined: 16 May 2002
  • Posts: 1356
  • Location: italy
Reply with quote
Post Posted: Thu Mar 15, 2007 11:32 am
I still think he should be IP banned.

That, or burn his computer.

And by "he", I mean that dumb chinese guy.
  View user's profile Send private message Visit poster's website
  • Site Admin
  • Joined: 19 Oct 1999
  • Posts: 14727
  • Location: London
Reply with quote
Post Posted: Thu Mar 15, 2007 12:33 pm
Either he has no idea what I'm trying to say to him, or he's nuts - I'm not sure which.
  View user's profile Send private message Visit poster's website
Yatin
  • Guest
Reply with quote
has locked
Post Posted: Fri Mar 16, 2007 10:41 am
Maxim, please do not lock any posts!
Because has Shoodot will attack Maxim has locked any posts!
Shoodot watching Maxim!
Maxim, please unlock all posts!

Shoodot, please do not attack Maxim.
 
  • Site Admin
  • Joined: 19 Oct 1999
  • Posts: 14727
  • Location: London
Reply with quote
Post Posted: Fri Mar 16, 2007 10:52 am
You are being stupid. Stop it.
别傻了!
  View user's profile Send private message Visit poster's website
Guomin
  • Guest
Reply with quote
not worng
Post Posted: Fri Mar 16, 2007 10:59 am
Yatin, no worng, originally Shoodot will attack Maxim!

Maxim, why lock any posts? Maxim, what worng?
Bohan has best idea, Bohan no worng.
I think Shoodot uncontrolled.
Maxim, please do not jimmy Shoodot!
Because, Shoodot is guy, Shoodot has worng!
Maxim, you need not lock any posts, please you unlock all posts, OK?
 
  • Joined: 10 Mar 2007
  • Posts: 30
Reply with quote
has guy being posts
Post Posted: Fri Mar 16, 2007 11:13 am
No, I is person, I is not guy!
Maxim, is not me being!
I watching forum has people being posts.
I has not stupid!
Maxim, you can not think me stupid!

Tom, you know IP? I know IP!
  View user's profile Send private message Visit poster's website
  • Site Admin
  • Joined: 19 Oct 1999
  • Posts: 14727
  • Location: London
Reply with quote
Post Posted: Fri Mar 16, 2007 11:13 am
Guomin = Shoodot = Yatin = Bohan

I will leave only this topic unlocked for discussion of this subject, in accordance with our forum rules.

Either stop being silly and answer my question:

"What do you want this for?"

or carry on like this and I'll delete every post you make, now and in the future. You are being very annoying.
  View user's profile Send private message Visit poster's website
  • Joined: 10 Mar 2007
  • Posts: 30
Reply with quote
being questions
Post Posted: Fri Mar 16, 2007 11:28 am
Maxim, do not stupid!

Really is not me being.
I do not mean Guomin and Yatin and Shoodot.
Maxim, you might mistake.
I am determined not to being.
Maxim, remember:"Is not me being!", please you do not misunderstanding.
I watching forum has people being posts.
  View user's profile Send private message Visit poster's website
  • Joined: 31 Mar 2005
  • Posts: 90
  • Location: Georgia, USA
Reply with quote
Post Posted: Sat Mar 17, 2007 9:01 am
maxim can't you find out the ip of the posts?
  View user's profile Send private message Visit poster's website
  • Joined: 10 Mar 2007
  • Posts: 30
Reply with quote
IP has any questions
Post Posted: Sat Mar 17, 2007 10:54 am
I do not know what watch IP.
Maxim can not watch IP, only Tom has watch IP.
I think all people will not watch IP.

Has who use MEKA and Mod2PSG2? Has who compile .SMS files?
I want know music .SMS files, have to help.
  View user's profile Send private message Visit poster's website
  • Joined: 16 May 2002
  • Posts: 1356
  • Location: italy
Reply with quote
Post Posted: Sat Mar 17, 2007 11:16 am
I can't watch IP. Maxim can.
  View user's profile Send private message Visit poster's website
  • Joined: 10 Mar 2007
  • Posts: 30
Reply with quote
watch IP has any questions
Post Posted: Sat Mar 17, 2007 11:26 am
Oh, Tom can not watch IP, why Maxim can watch IP?
Tom, you know IP? I think all people do not know IP.

Who use MEKA and Mod2PSG2?
Has people want compile music .SMS files.
  View user's profile Send private message Visit poster's website
  • Site Admin
  • Joined: 08 Jul 2001
  • Posts: 8648
  • Location: Paris, France
Reply with quote
Post Posted: Sat Mar 17, 2007 1:40 pm
Bohan: Administrators (Maxim, Bock, etc.) can watch IP.
  View user's profile Send private message Visit poster's website
  • Joined: 10 Mar 2007
  • Posts: 30
Reply with quote
IP has any questions
Post Posted: Sat Mar 17, 2007 2:03 pm
Maxim and Bock and etc can only watch me IP? Has not watch other people IP?

Administrators watching IP, Has people need compile music .SMS files and need help and use Mod2PSG2.

Need not watch IP, but need help compile music .SMS files with Mod2PSG2.
Now, Maxim watching IP.
  View user's profile Send private message Visit poster's website
  • Site Admin
  • Joined: 08 Jul 2001
  • Posts: 8648
  • Location: Paris, France
Reply with quote
Post Posted: Sat Mar 17, 2007 3:32 pm
This is how to create .SMS .GG files from MOD2PSG2 data:
http://www.smspower.org/forums/viewtopic.php?p=44405#44405
  View user's profile Send private message Visit poster's website
  • Joined: 10 Mar 2007
  • Posts: 30
Reply with quote
psgmod.ASM has any questions
Post Posted: Sun Mar 18, 2007 1:42 am
Last edited by Bohan on Sun Mar 18, 2007 2:04 am; edited 1 time in total
I think a Maxim writed simplified version would be has question.

I used ConTEXT and WLA, but unable compile .SMS file, has AYPOK want compile .SMS files.
http://smspower.org/forums/viewtopic.php?t=9196
Has who use Mod2PSG2 and compile .SMS file?

I watching all music .SMS files.
Charles MacDonald has fixed psgmod.ASM, Jacko has compile .SMS file.
I can compile .SMS file, Jacko can compile .SMS file, but .SMS file has any questions.
Charles MacDonald think Martin writed psgmod.ASM has any questions?
Jacko used ConTEXT and WLA?
Martin can not update Mod2PSG2 new export .GG and need not .EPSGMOD?
I think Martin has not use ConTEXT and WLA and test compile .SMS file.
Martin, you can use ConTEXT and WLA, you have to test compile .SMS file, OK?
Jacko has test compile .SMS file and with Mod2PSG2.
Charles MacDonald has watched psgmod.ASM and psgmod.INC, Jacko watching music .SMS file and Mod2PSG2.
  View user's profile Send private message Visit poster's website
  • Site Admin
  • Joined: 25 Oct 1999
  • Posts: 2029
  • Location: Monterey, California
Reply with quote
Post Posted: Sun Mar 18, 2007 1:57 am
Bohan,

We don't know what you mean when you say ".SMS file has any questions. " or "psgmod.ASM has any questions" -- can you say that a different way?

Are you using an automatic translator?
  View user's profile Send private message Visit poster's website
  • Joined: 10 Mar 2007
  • Posts: 30
Reply with quote
.SMS has any questions
Post Posted: Sun Mar 18, 2007 2:21 am
I say:"music .SMS and psgmod.ASM has any questions"
Please help.

Heliophobe, you use emulator load music .SMS?
I use MEKA emulator load music .SMS, music .SMS has question, playing music speed quick!
I do not know Charles MacDonald or Jacko edit .ASM file.

If has people compile .SMS and upload .SMS, I will watch all .SMS files.
AYPOK, you watching all .SMS files?
I think has people watching .SMS files and .EPSGMOD psgmod.ASM and psgmod.INC and ConTEXT and WLA and Mod2PSG2 and development.
  View user's profile Send private message Visit poster's website
  • Site Admin
  • Joined: 25 Oct 1999
  • Posts: 2029
  • Location: Monterey, California
Reply with quote
Re: .SMS has any questions
Post Posted: Sun Mar 18, 2007 2:45 am
Bohan wrote
I say:"music .SMS and psgmod.ASM has any questions"



Bohan,

That does not make sense in English. Please try to say it a different way.
  View user's profile Send private message Visit poster's website
  • Joined: 10 Mar 2007
  • Posts: 30
Reply with quote
RE: .SMS has any questions
Post Posted: Sun Mar 18, 2007 3:24 am
Heliophobe wrote
That does not make sense in English. Please try to say it a different way.
I know Traditional Chinese and Simplified Chinese and English.

Heliophobe, you do not know me say?
Please help and watch Music In SMS Games (With MOD2PSG).
http://smspower.org/forums/viewtopic.php?t=9196
  View user's profile Send private message Visit poster's website
  • Joined: 01 Feb 2004
  • Posts: 1464
  • Location: Sunny ol Tamworth, New England NSW AU
Reply with quote
Post Posted: Sun Mar 18, 2007 4:59 am
Right Bohan

Attatched to this post is a zip file.

It contains a tutorial on what you want to do.

Download it, read it, then if you have questions please don't hesitate to ask.

Inside the zip read the HTML file.

Thanks Scott
tutorial.zip (125.09 KB)
mod2psg tutorial

  View user's profile Send private message Visit poster's website
  • Joined: 10 Mar 2007
  • Posts: 30
Reply with quote
tutorial no question
Post Posted: Sun Mar 18, 2007 12:03 pm
Right Jacko

I has read tutorial HTML file and use MEKA emulator load tutorial SMS file no question.

Yes! The tutorial am best!

Who is Scott?

Jacko am right.

Thanks Jacko
  View user's profile Send private message Visit poster's website
  • Site Admin
  • Joined: 19 Oct 1999
  • Posts: 14727
  • Location: London
Reply with quote
Post Posted: Sun Mar 18, 2007 1:08 pm
Dammit, Jacko, you were supposed to wait until he said he wasn't going to make a bunch of lame music-only "roms".
  View user's profile Send private message Visit poster's website
  • Joined: 25 Feb 2006
  • Posts: 874
  • Location: Belo Horizonte, MG, Brazil
Reply with quote
Post Posted: Sun Mar 18, 2007 2:26 pm
Fankly, I'm under the impression that Bohan is a chatbot.
The way he talks, it's very similar to what a chatbot like MegaHAL would say.
  View user's profile Send private message Visit poster's website
  • Joined: 01 Feb 2004
  • Posts: 1464
  • Location: Sunny ol Tamworth, New England NSW AU
Reply with quote
Post Posted: Sun Mar 18, 2007 10:44 pm
Last edited by Jacko on Sun Mar 18, 2007 11:11 pm; edited 1 time in total
Maxim wrote
Dammit, Jacko, you were supposed to wait until he said he wasn't going to make a bunch of lame music-only "roms".


oh shit, i am so sorry i have really fucked up big time, uh oh, why didn't i use my brain!!!!!??????!!!!????

in my efforts i was only trying to help out, i seriously apollogise and I have just realised the mistake I have made, please forgive me.
  View user's profile Send private message Visit poster's website
  • Joined: 04 Sep 2005
  • Posts: 220
Reply with quote
Post Posted: Sun Mar 18, 2007 11:05 pm
I lol'ed.


Well, Jacko was only trying to help :)
Besides, if he does, i don't think anyone would care...
  View user's profile Send private message
  • Joined: 04 Nov 2004
  • Posts: 273
Reply with quote
Post Posted: Sun Mar 18, 2007 11:25 pm
Yeah. When his music roms appear in rom collections, we can make a tool that sorts out the "by Bohan" files ;-)
  View user's profile Send private message Visit poster's website
  • Site Admin
  • Joined: 19 Oct 1999
  • Posts: 14727
  • Location: London
Reply with quote
Post Posted: Mon Mar 19, 2007 9:08 am
Tell you what, I'll label then in SMS Checker as

Blah blah music rom (Jacko sucks!).gg

just kidding
  View user's profile Send private message Visit poster's website
  • Joined: 01 Feb 2004
  • Posts: 1464
  • Location: Sunny ol Tamworth, New England NSW AU
Reply with quote
Post Posted: Mon Mar 19, 2007 9:26 pm
Maxim wrote
Tell you what, I'll label then in SMS Checker as

Blah blah music rom (Jacko sucks!).gg

just kidding


haha very funny Maxim, oohh I could call you something smart but I won't
  View user's profile Send private message Visit poster's website
  • Joined: 01 Jan 2005
  • Posts: 360
  • Location: Stockholm, Sweden
Reply with quote
Post Posted: Mon Mar 19, 2007 11:18 pm
Maxim wrote
Tell you what, I'll label then in SMS Checker as

Blah blah music rom (Jacko sucks!).gg

just kidding


Wasn't it you who once made a tool to make music roms?
  View user's profile Send private message Visit poster's website
  • Site Admin
  • Joined: 08 Jul 2001
  • Posts: 8648
  • Location: Paris, France
Reply with quote
Post Posted: Mon Mar 19, 2007 11:30 pm
Yes frankly I think this is going too far. Don't lock every way to let people create content. If the content is mediocre it won't stay around for long.
I'm not too fond of releasing an .exe that create ROM files from .vgm, but someone asking for the programming info shall be able to get them.
  View user's profile Send private message Visit poster's website
  • Site Admin
  • Joined: 19 Oct 1999
  • Posts: 14727
  • Location: London
Reply with quote
Post Posted: Tue Mar 20, 2007 7:52 am
Certainly, and that is what I was trying to do - I gave the info at the very start, but it seems this guy was more interested in a tool for conversion than programming info.
  View user's profile Send private message Visit poster's website
  • Joined: 04 Sep 2005
  • Posts: 220
Reply with quote
Post Posted: Wed Mar 21, 2007 4:32 pm
Ugh that reminds me that i need to make a VGM for the compo...

Or an MP3...

Or SOMETHING...

Maybe a WAV?

or an OGG?

or a MID?
  View user's profile Send private message
Ikuma
  • Guest
Reply with quote
Post Posted: Wed Mar 21, 2007 5:50 pm
is this the same Bohan guy who's asking people to send him the Little Sound DJ (LSDJ) full version ROM without paying for it???

He was bugging people on the 2a03 forums a while back, just thought you should know, no malice intended.
 
  • Site Admin
  • Joined: 25 Oct 1999
  • Posts: 2029
  • Location: Monterey, California
Reply with quote
Post Posted: Wed Mar 21, 2007 7:21 pm
Quote

little sound DJ demo version has any bugs and any questions!


Yeah, that's him alright.
  View user's profile Send private message Visit poster's website
  • Joined: 10 Mar 2007
  • Posts: 30
Reply with quote
best and right
Post Posted: Sun Apr 08, 2007 8:55 am
Hi all

Jacko am best and right.
Jacko, you using WLA and Mod2PSG2?

I know game boy and super game boy and game boy color and game gear.
I know Music Box and Little Sound DJ and WLA and Mod2PSG2.
  View user's profile Send private message Visit poster's website
  • Joined: 20 Feb 2007
  • Posts: 56
  • Location: Wellington, New Zealand.
Reply with quote
Post Posted: Sun Apr 08, 2007 9:26 am
haroldoop wrote
Fankly, I'm under the impression that Bohan is a chatbot.

Thats what I was thinking too
  View user's profile Send private message Visit poster's website
  • Joined: 04 Sep 2005
  • Posts: 220
Reply with quote
Post Posted: Tue Apr 10, 2007 7:51 pm
Someone PLEASE ban this guy... He's getting on my nerves.
  View user's profile Send private message
  • Joined: 16 May 2002
  • Posts: 1356
  • Location: italy
Reply with quote
Post Posted: Tue Apr 10, 2007 9:55 pm
SteveSMS wrote
Someone PLEASE ban this guy...
Seconded since about a month ago.
  View user's profile Send private message Visit poster's website
  • Joined: 27 Feb 2006
  • Posts: 37
  • Location: Wellington, New Zealand
Reply with quote
Post Posted: Tue Apr 10, 2007 10:29 pm
...next person who uses chinese syntaxing in english gets shot.
  View user's profile Send private message Visit poster's website
  • Joined: 01 Feb 2004
  • Posts: 1464
  • Location: Sunny ol Tamworth, New England NSW AU
Reply with quote
Re: best and right
Post Posted: Tue Apr 10, 2007 11:20 pm
Bohan wrote

Jacko, you using WLA and Mod2PSG2?


Duuuhhh, wtf does IT seriously think I am using please band this user NOW......... before sledge hammers go flying through my PC due to anger, or even worse pigs may start flying.
  View user's profile Send private message Visit poster's website
Reply to topic Goto page 1, 2  Next



Back to the top of this page

Back to SMS Power!