It is currently Thu Mar 23, 2017 1:17 am

All times are UTC - 7 hours





Post new topic Reply to topic  [ 10 posts ] 
Author Message
PostPosted: Sat Oct 31, 2015 6:19 pm 
Offline

Joined: Thu Aug 28, 2008 1:17 am
Posts: 591
So I have a four channel sample based player with frequency scaling (phase accumulator) for the PCE. I'm in the middle of writing the support routines for interfacing with it (lib support, whatever. The player itself is finished and working.). Would anybody be interested in porting over a small/simple music engine to take advantage of it (interface with it)? The HuC6280 is 65x02 based, so something from the NES side could work.

The interface is note based. Note+octave. There's also a 32 step division between notes that can be changed or updated per channel (frequency slides and/or vibrato). Each channel can be set to +/- 16 finetune frequency steps (1/16 of a note). All interfacing it done with JSRs or macros. Volume and stereo pan volume are set routines as well, so anything like envelopes would have to be handled outside the lib.

_________________
__________________________
http://pcedev.wordpress.com


Top
 Profile  
 
PostPosted: Sat Oct 31, 2015 6:47 pm 
Offline

Joined: Sun Sep 19, 2004 11:12 pm
Posts: 17970
Location: NE Indiana, USA (NTSC)
I created a music engine that I use for my own projects. Though I have no TG16 programming experience, it should be easy to separate out the NES-specific stuff, as each channel update leaves a volume and note number (semitone + 12 * octave) in $0002-$0003. I wonder what could be done with porting the Thwaite soundtrack to TG16.


Top
 Profile  
 
PostPosted: Sun Nov 01, 2015 4:52 pm 
Offline

Joined: Thu Aug 28, 2008 1:17 am
Posts: 591
I'm writing support for frequency control right now, and I decided to provide some higher level support functions as well. Not that someone can't access the frequency of the channels manually, in note and step format, but having a ready made example that could tap into and control it - seems to be worth the effort. So.. slide-to-note, slide-to-(plus or minus)infinity/rate, and vibrato with four different waveforms defined by depth and rate. Accessing volume and pan settings on the PCE are easy, but I'll provide routines for that as well (so a coder wouldn't need any direct interfacing with the hardware itself).


Quote:
I wonder what could be done with porting the Thwaite soundtrack to TG16.

Has anyone generated TG16 roms with CA65?

_________________
__________________________
http://pcedev.wordpress.com


Top
 Profile  
 
PostPosted: Sun Nov 01, 2015 5:14 pm 
Offline

Joined: Sun Apr 13, 2008 11:12 am
Posts: 5406
Location: Seattle
Apparently CC65 just grew a PCE runtime...


Top
 Profile  
 
PostPosted: Mon Nov 02, 2015 11:10 am 
Offline

Joined: Thu Aug 28, 2008 1:17 am
Posts: 591
Wow! Thanks for the link. I'm actually surprised this didn't happen sooner.

_________________
__________________________
http://pcedev.wordpress.com


Top
 Profile  
 
PostPosted: Wed Nov 04, 2015 2:38 pm 
Offline
User avatar

Joined: Thu Jan 19, 2006 5:08 pm
Posts: 729
Location: Shelton, Washington.
A port of both Mario 1/2j (from Doppelganger's Disassemblies) and/or 3's (based on Southbird's Disassembly) sound engine with PCE enhancements sounds like a good test experiment,

Or better: a new TG16 NSF player can benefit from this.

Tip about the two extra channels: Use one of the channels for porting DMC channels with a bit of hacking, leaving a channel for a optional channel usable for NSFs with with one extra sound channel (i.e. FDS).

_________________
AKA SmilyMZX/AtariHacker.


Top
 Profile  
 
PostPosted: Mon Nov 09, 2015 9:51 pm 
Offline

Joined: Thu Aug 28, 2008 1:17 am
Posts: 591
Hamtaro126: This is more of a proof of concept kinda thing.

Edit: :)

_________________
__________________________
http://pcedev.wordpress.com


Top
 Profile  
 
PostPosted: Tue Jun 28, 2016 8:33 pm 
Offline

Joined: Thu Aug 28, 2008 1:17 am
Posts: 591
First public release: http://www.pcedev.net/audio/SamplePlaye ... _1_2_0.zip
(Note if you're browsing through the source files, tab = 2 spaces). Includes a pre-assembled rom. Though I don't have any good samples to demo it with.

Edit: Also, it doesn't have a name yet. Not sure what to call it.

_________________
__________________________
http://pcedev.wordpress.com


Top
 Profile  
 
PostPosted: Wed Jun 29, 2016 6:30 pm 
Offline
User avatar

Joined: Thu Jan 19, 2006 5:08 pm
Posts: 729
Location: Shelton, Washington.
How about SamPla,

It's as simple as a name gets

_________________
AKA SmilyMZX/AtariHacker.


Top
 Profile  
 
PostPosted: Sun Jul 03, 2016 8:57 pm 
Offline

Joined: Thu Aug 28, 2008 1:17 am
Posts: 591
I wrote a quick XM Player for PCE (missing a lot of FX) using the PCM Driver. Here are some rom examples:
http://www.pcedev.net/XMPlay/XMPlay_Pack1.zip
http://www.pcedev.net/XMPlay/HuXMPlay_Pack2.zip

The samples playing higher than 2x the driver really get crushed. No post processing was done on the samples - just straight converted.

_________________
__________________________
http://pcedev.wordpress.com


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 10 posts ] 

All times are UTC - 7 hours


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group