? AY-3-8910 sound chip emulator ● SmileBASIC Source

Sign In

Register
*Usernames are case-sensitive
Forgot my password

AY-3-8910 sound chip emulator

Submitted
Updated
Author
12Me21
Public Key
TB53F344
Min. Compat.
All
Size
99KB
Rating
16 votes
Description (Unfinished I guess) Works on both the original and new 3DS, and with/without the sound DLC (but the quality is best on n3DS with advanced sound processing unit) (outdated videos) [url=https://www.youtube.com/watch?v=0Cvsf5CIynE]https://www.youtube.com/watch?v=0Cvsf5CIynE[/url] [url=https://www.youtube.com/watch?v=TuZcbnac3Kg]https://www.youtube.com/watch?v=TuZcbnac3Kg[/url] [url=https://www.youtube.com/watch?v=1ikgBqqFflU]https://www.youtube.com/watch?v=1ikgBqqFflU[/url] Instructions Controls: A: play B: pause Y: menu X: random song d-pad left/right: next/previous song touch screen: etc. Menu controls: d-pad up/down/left/right: select song A: confirm You can transfer songs (in .VTX format) using petit modem or whatever.
Categories
Keywords
65 Comment(s) sue_qwerty sue_qwerty I made a program that converts songs created in MML for SB3 into PSG files. The number of sound sources that can be used is 1 to 2. MML using the DATA instruction is supported. Some commands (P, @ML, @130 to 143, @152 to 511, $) are not supported. The conversion program adds "DATA 0" to the end of the MML slot. The commands written in the PSG file are &H00 to &H0F for sound source 1 and &H20 to &H2F for sound source 2. ASPU is required because the ARYOP instruction is used. MML is validated with the CHKMML function. Therefore, it cannot be used with SB4. Usage 1. Load MML for conversion into slot 0. 2. Load TEST-MML2PSG into slot 1. 3. Specify the first DATA to be read as MML with the RESTORE instruction. 4. OUTCH$[] variable specifies the MML channel to convert to PSG channel. MML channel: "0" to "F" PSG channel: 0 to 2 when the number of sound source is 1, 0 to 5 when the number of sound sources is 2 5. PSGNAME$ variable specifies the name when saving the PSG file. 6. Execute slot 1. Convert to PSG file of 5*60 seconds. Press X button to end conversion. 7. Playback starts when the PSG file is saved after conversion. Slot usage PRG0: Source MML PRG1: TEST-MML2PSG PRG2: GM and drum instrument sound loading, conversion log PRG3: TEST-SGPSG3(It is loaded and executed after conversion.) If TEST-SGPSG3 is executed while pressing the L or R button, the number of sound source will be 1 and the number of screen updates will increase even with o3DS. Public key: WP5QF3Q4 TEST-MML2PSG Conversion program TEST-SGPSG3 Playback program TEST-MMLINST GM instrument sound data TEST-MMLINSTD Drum instrument sound data SOLIDG_BGM1~5 Source MML(SOLIDGUNNER -Revision-、Public key: RXX2EP3) -SG_BGM1~5.PSG PSG files after conversion Public key: 4QZEE53QD TEST-SGPSG3_SB4 Playback program (for SB4) KunaitoSoft KunaitoSoft Disguised Hidden Website Avatar Taboo I didn't change my avatar for 180 days Website First Year My account is over 1 year old Website Any new songs added? sue_qwerty sue_qwerty I was able to speed up the decoding of lh5 used in .VTX files. ASPU is required because the RINGCOPY command is used. See the images below for changes. 12Me21 12Me21 Power User Syntax Highlighter Received for creating the code syntax highlighter on SBS Night Person I like the quiet night and sleep late. Express Yourself This is a lot faster, nice ralsei ralsei Forum Leader Hidden Achievements Second Year My account is over 2 years old Website Expert Programmer Programming no longer gives me any trouble. Come to me for help, if you like! Programming Strength
nice
>:]
the_squat1115 the_squat1115 Minecraft Is Awesome! I love Minecraft! Express Yourself Intermediate Programmer I can make programs, but I still have trouble here and there. Programming Strength Video Games I like to play video games! Hobbies Excluding the Atari 2600. That console is a 4-bit one. ralsei ralsei Forum Leader Hidden Achievements Second Year My account is over 2 years old Website Expert Programmer Programming no longer gives me any trouble. Come to me for help, if you like! Programming Strength There are no programmable video games systems that use 4-bit processors. Every system is at least an 8-bit. Edit:However, the graphics ARE 7-bit. Yttria Yttria Head Admin If you looked a little farther down from the forum post you plagiarized, you would find https://atariage.com/forums/topic/54061-is-the-2600-4bit-or-6bit/?do=findComment&comment=656729
When you look at "bits", it gets very misleading.
The LSDJ manual (https://www.littlesounddj.com/lsd/index.php) claims that the Gameboy sound chip has 4-bit waveforms on 4 channels--so as far as audio there certainly are "4-bit" sound chips. But "X-bit" per se is rarely meaningful, even as a style, since stylized music tagged most "8-bit" is fake and cheats and what they really meant is "sounds bad." What I've gathered from 12Me21 spamming oscilloscope visualizations is that usually you tag music with the sound chip, which I guess if you listen to real chiptune for long enough, have distinctive sounds. https://www.youtube.com/results?search_query=AY-3-8910
the_squat1115 the_squat1115 Minecraft Is Awesome! I love Minecraft! Express Yourself Intermediate Programmer I can make programs, but I still have trouble here and there. Programming Strength Video Games I like to play video games! Hobbies I recommend it if you want to put pretty cool 8-bit songs to your game. I highly recommend it to 8/4-bit fans! HTV04 HTV04 Intermediate Programmer I can make programs, but I still have trouble here and there. Programming Strength Avatar Taboo I didn't change my avatar for 180 days Website Second Year My account is over 2 years old Website This doesn't really work outside of the program, though. Also 4-bit what the_squat1115 the_squat1115 Minecraft Is Awesome! I love Minecraft! Express Yourself Intermediate Programmer I can make programs, but I still have trouble here and there. Programming Strength Video Games I like to play video games! Hobbies The 4-bits were used by the Atari, Intellivision, ColecoVision, and other ones. ralsei ralsei Forum Leader Hidden Achievements Second Year My account is over 2 years old Website Expert Programmer Programming no longer gives me any trouble. Come to me for help, if you like! Programming Strength No, those consoles were 8-bit. HTV04 HTV04 Intermediate Programmer I can make programs, but I still have trouble here and there. Programming Strength Avatar Taboo I didn't change my avatar for 180 days Website Second Year My account is over 2 years old Website How do I remove the bottom controls in order to make the progress show on one display? I’m planning to port this to SB4 and make it into a subprogram so it runs in the background. Killias12 Killias12 Beginner Programmer I'm just starting out! I'm still trying to grasp the basics. Programming Strength Pokemon Is Awesome! I love Pokemon! Express Yourself Video Games I like to play video games! Hobbies For the better menu you might want to make it that you select the file from the folder or make it like a file explorer in the style of windows or an old DOS program Killias12 Killias12 Beginner Programmer I'm just starting out! I'm still trying to grasp the basics. Programming Strength Pokemon Is Awesome! I love Pokemon! Express Yourself Video Games I like to play video games! Hobbies I like all of these songs rn 12Me21 12Me21 Power User Syntax Highlighter Received for creating the code syntax highlighter on SBS Night Person I like the quiet night and sleep late. Express Yourself More songs: 7ZVXK3LJ (254 files, 704KB) (Source: https://bulba.untergrund.net/music_e.htm [ZX Spectrum Tracker Music v5.1] Albums\May Be My Bank v5.1) I need to add a better menu now.... KunaitoSoft KunaitoSoft Disguised Hidden Website Avatar Taboo I didn't change my avatar for 180 days Website First Year My account is over 1 year old Website Nice library of songs! 😊 I like it! Killias12 Killias12 Beginner Programmer I'm just starting out! I'm still trying to grasp the basics. Programming Strength Pokemon Is Awesome! I love Pokemon! Express Yourself Video Games I like to play video games! Hobbies Good job on the update! I love the new bottom screen design and the new feature! 12Me21 12Me21 Power User Syntax Highlighter Received for creating the code syntax highlighter on SBS Night Person I like the quiet night and sleep late. Express Yourself I'm almost done fixing the visualizer synchronization. Now it should work sue_qwerty sue_qwerty This is so great. I want to make the program of the sound generator such as this. 12Me21 12Me21 Power User Syntax Highlighter Received for creating the code syntax highlighter on SBS Night Person I like the quiet night and sleep late. Express Yourself thanks! sue_qwerty sue_qwerty It was finally completed. Supports only PSG files. key:D3E3338S Killias12 Killias12 Beginner Programmer I'm just starting out! I'm still trying to grasp the basics. Programming Strength Pokemon Is Awesome! I love Pokemon! Express Yourself Video Games I like to play video games! Hobbies You did a great job on this! Thank goodness I kept the older versions of the sound chip emulator. 12Me21 12Me21 Power User Syntax Highlighter Received for creating the code syntax highlighter on SBS Night Person I like the quiet night and sleep late. Express Yourself Wow, nice! I think the envelope might be too loud, though. It's also probably best to use a hard-coded lookup table for the volumes since it's not perfectly logarithmic: sue_qwerty sue_qwerty >Killias12 Thank you. Changed to be able to play VTX files (requires VTX.LIB). key:7328YE9Y VTX files are internally converted to PSG files. Therefore, it takes time to start playback. sue_qwerty sue_qwerty 12Me21> Thank you. I measured the AY-3-8910 and YM2149F that output the envelope. I changed the volume table to the measured value, it may be a little better. key:7328YE9Y reference images I used "(AY+YM)/2". amihart amihart This is pretty cool. I got me an AY-3-8912 recently and have been playing around with making music with it. What a coincidence. 12Me21 12Me21 Power User Syntax Highlighter Received for creating the code syntax highlighter on SBS Night Person I like the quiet night and sleep late. Express Yourself Yeah, I have one but I haven't used it in a while. I've been meaning to do testing to make my emulator more accurate but I haven't gotten around to it yet. amihart amihart I'm interested in making my synth able to play those .VTX files. Is there documentation somewhere I can read for this file format? How did you figure it out? 12Me21 12Me21 Power User Syntax Highlighter Received for creating the code syntax highlighter on SBS Night Person I like the quiet night and sleep late. Express Yourself The documentation I used was: https://raw.githubusercontent.com/asashnov/libayemu/master/contrib/vtx_format.txt For decompressing the data, I ported https://raw.githubusercontent.com/asashnov/libayemu/master/src/lh5dec_old.c to SB. amihart amihart Thanks, much appreciated. 12Me21 12Me21 Power User Syntax Highlighter Received for creating the code syntax highlighter on SBS Night Person I like the quiet night and sleep late. Express Yourself And the music data itself is stored as: <the values of register 0 for every frame>, <register 1>, <resister 2>, ... <resister 13> For register 13 specifically, it should be updated whenever the value is not 255 (rather than whenever its value changes) snail_ snail_ QSP Contest 1 Contest Participant I participated in the first SmileBASIC Source QSP Contest! Helper Received for being very helpful around SmileBASIC Source Achievements Amazing Contributor Someone thinks I'm an awesome person who has done so much for the community! Achievements Syntax error in 0:30 after the selection screen (N3DS DLC) snail_ snail_ QSP Contest 1 Contest Participant I participated in the first SmileBASIC Source QSP Contest! Helper Received for being very helpful around SmileBASIC Source Achievements Amazing Contributor Someone thinks I'm an awesome person who has done so much for the community! Achievements You forgot to change the EXECs before releasing again 12Me21 12Me21 Power User Syntax Highlighter Received for creating the code syntax highlighter on SBS Night Person I like the quiet night and sleep late. Express Yourself Darn lol It's fixed now 12Me21 12Me21 Power User Syntax Highlighter Received for creating the code syntax highlighter on SBS Night Person I like the quiet night and sleep late. Express Yourself Graphics work without the sound dlc now (except not on o3DS yet...) ralsei ralsei Forum Leader Hidden Achievements Second Year My account is over 2 years old Website Expert Programmer Programming no longer gives me any trouble. Come to me for help, if you like! Programming Strength Nice. >:] KunaitoSoft KunaitoSoft Disguised Hidden Website Avatar Taboo I didn't change my avatar for 180 days Website First Year My account is over 1 year old Website I love it! I recommend that for chiptune lovers and ZX Spectrum fans. 😋🎧🎤 HTV04 HTV04 Intermediate Programmer I can make programs, but I still have trouble here and there. Programming Strength Avatar Taboo I didn't change my avatar for 180 days Website Second Year My account is over 2 years old Website Is it possible to incorporate this into a game? 12Me21 12Me21 Power User Syntax Highlighter Received for creating the code syntax highlighter on SBS Night Person I like the quiet night and sleep late. Express Yourself technically maybe yes, but it's probably not a good idea I wonder how hard it would be to convert these songs to MML.... HTV04 HTV04 Intermediate Programmer I can make programs, but I still have trouble here and there. Programming Strength Avatar Taboo I didn't change my avatar for 180 days Website Second Year My account is over 2 years old Website How could I put it in a game? 12Me21 12Me21 Power User Syntax Highlighter Received for creating the code syntax highlighter on SBS Night Person I like the quiet night and sleep late. Express Yourself In its current state that's not really possible, because it basically runs constantly and there isn't anywhere to put your game code where it would execute at a consistent speed HTV04 HTV04 Intermediate Programmer I can make programs, but I still have trouble here and there. Programming Strength Avatar Taboo I didn't change my avatar for 180 days Website Second Year My account is over 2 years old Website Okay. I hope that in a future update this will be possible, though. HTV04 HTV04 Intermediate Programmer I can make programs, but I still have trouble here and there. Programming Strength Avatar Taboo I didn't change my avatar for 180 days Website Second Year My account is over 2 years old Website Would it be possible to recreate an NES sound chip (like 2A03)? 12Me21 12Me21 Power User Syntax Highlighter Received for creating the code syntax highlighter on SBS Night Person I like the quiet night and sleep late. Express Yourself 5 It might be possible, but probably not at decent quality. Killias12 Killias12 Beginner Programmer I'm just starting out! I'm still trying to grasp the basics. Programming Strength Pokemon Is Awesome! I love Pokemon! Express Yourself Video Games I like to play video games! Hobbies The most recent update is great and the compression is so good because I tried something similar but it is so horrible that it made my files smaller by just 1 kb so the compression you used is great! Your program is great! 12Me21 12Me21 Power User Syntax Highlighter Received for creating the code syntax highlighter on SBS Night Person I like the quiet night and sleep late. Express Yourself Switched from .PSG to .VTX, much smaller file sizes now you can probably send songs with petit modem in a reasonable amount of time also added progress bar and you can use the touch screen to skip to different parts of the song (might be a bit slow) also hopefully I can make the compression algorithm much faster, since I just ported it from C and it's not really optimal in SB.
1 2