Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
sound:psg:mml:squirrel:manual [2020/11/29 11:46] – [EXAMPLE [EXP]] arkhan | sound:psg:mml:squirrel:manual [2020/11/30 05:38] (current) – [HOW TO USE SQUIRREL [H2U]] arkhan | ||
---|---|---|---|
Line 86: | Line 86: | ||
| | ||
| | ||
- | |||
- | ---- | ||
- | | ||
- | =====TABLE OF CONTENTS===== | ||
- | |||
- | - What is Squirrel? | ||
- | - Contents | ||
- | - How To Use [H2U] | ||
- | - Example in detail | ||
- | - Macros/ | ||
- | - Waves & Envelopes | ||
- | - Drums [DRM] | ||
- | - COMMAND REFERENCE | ||
- | - Preset Reference | ||
- | - Sound effects! | ||
- | - Other Stuff | ||
- | |||
- | If you are wondering, yes I put some nerdy D&D references in the " | ||
- | |||
---- | ---- | ||
+ | =====SQUIRREL STUFF===== | ||
====WHAT IS SQUIRREL? [WIS]==== | ====WHAT IS SQUIRREL? [WIS]==== | ||
Line 116: | Line 98: | ||
If you do use this in a game ever, all we ask is that you credit us for it, AND SPREAD THE WORD | If you do use this in a game ever, all we ask is that you credit us for it, AND SPREAD THE WORD | ||
- | .......and send me half the money! | + | .......and send me half the money! |
- | | + | |
---- | ---- | ||
- | |||
====CONTENTS OF SQUIRREL [CON]==== | ====CONTENTS OF SQUIRREL [CON]==== | ||
< | < | ||
Line 214: | Line 194: | ||
Step 3: | Step 3: | ||
======= | ======= | ||
- | The compiler (assuming all went well), will spit out an .ASM file or 2, depending how long your song | + | The compiler (assuming all went well), will spit out an .ASM file or 2, depending how long your song turned out. It will also have a snginit.c. |
- | turned out. It will also have a snginit.c. | + | From here you are able to use the squirrel.c program and play the song! You need not actually open the .asm or snginit.c files. |
- | and play the song! You need not actually open the .asm or snginit.c files. | + | |
- | fully functional automagically. | + | |
- | made in the same directory as your .mml file. | + | |
+ | Leave all the hard stuff up to Squirrel! | ||
+ | |||
+ | The ASM files will be made in the same directory as your .mml file. | ||
+ | |||
+ | < | ||
---------------- | ---------------- | ||
Compile it with: | Compile it with: | ||
Line 226: | Line 208: | ||
OR | OR | ||
huc squirrel.c | huc squirrel.c | ||
+ | </ | ||
You'll get an .iso or a .pce! run it in an emulator and rejoice at your glorious music. | You'll get an .iso or a .pce! run it in an emulator and rejoice at your glorious music. | ||
- | A make file (make.bat) is included. | + | A make file (make.bat) is included. |
- | to change which file it will build. | + | |
- | Thats it! No fiddling with ASM, or having to program anything. | + | Thats it! No fiddling with ASM, or having to program anything. |
- | programmers! | + | |
---- | ---- | ||
====EXAMPLE [EXP]==== | ====EXAMPLE [EXP]==== | ||
Line 254: | Line 235: | ||
--Please reference the included file (/ | --Please reference the included file (/ | ||
- | **You use .TRACK to section off each individual song. The name following it is up to you. | + | You use .TRACK to section off each individual song. The name following it is up to you. You can have more than one .TRACK in a file. |
- | You can have more than one .TRACK in a file. Insanity' | + | |
+ | Insanity' | ||
Each one is played in code with psgPlay(track# | Each one is played in code with psgPlay(track# | ||
Line 261: | Line 243: | ||
'' | '' | ||
- | **Next, you define each .CHANNEL' | + | Next, you define each .CHANNEL' |
- | global, entire song specific stuff. | + | |
- | over-ridden by anything a specific channel does (Such as change it's tempo). | + | Macros get defined in channel 0 also. You will get to learn about macros in a little bit. |
- | channel 0 also. You will get to learn about macros in a little bit. | + | |
- | Also note, the volume that is set in channel 0 is the global volume for the ENTIRE sound circuit. | + | Also note, the volume that is set in channel 0 is the global volume for the ENTIRE sound circuit. You can give each channel its own volume, and panning along with this. |
- | You can give each channel its own volume, and panning along with this. | + | |
Think of it like this, a stereo mixer board: | Think of it like this, a stereo mixer board: | ||
Line 275: | Line 255: | ||
Channel 1 thru 6: CHANNEL VOLUME (V) and PANNING (P#,#) | Channel 1 thru 6: CHANNEL VOLUME (V) and PANNING (P#,#) | ||
- | imagine the volume command being a knob, and you have one for each channel, and then you have one | + | imagine the volume command being a knob, and you have one for each channel, and then you have one more, a very large one, which then increases the entire thing in unison. :) |
- | more, a very large one, which then increases the entire thing in unison. :) | + | |
- | Channels 1 through 6 are your actual song channels. | + | Channels 1 through 6 are your actual song channels. |
- | would like. | + | |
< | < |