Author [EN] [PL] [ES] [PT] [IT] [DE] [FR] [NL] [TR] [SR] [AR] [RU] [ID] Topic: So I kinda cracked CV3's music programming  (Read 324 times)

0 Members and 1 Guest are viewing this topic.

Offline TheouAegis

  • Amateur Auteur of GMvania
  • Master Hunter
  • *****
  • Posts: 1857
  • Gender: Male
  • Awards The Retro Gamer: Has a heated passion for the oldschool VG Titles. The Great Defender will always defend the object of his or her fandom. Hack Master makes creations out of CV parts. (S)he makes Dr. Frankenstein proud.
    • GMvania Developer's Blog
    • Awards
  • Likes:
So I kinda cracked CV3's music programming
« on: August 16, 2022, 10:14:03 PM »
0
I'm partly just giving up because I've been working on it for so many days now, but I'm also genuinely satisfied with what I came up with.

First thing's first: I mapped out - I'm pretty sure - every variable used in Akumajou Densetsu's audio engine. You can find it on the Data Crystal wiki over at RomHacking. I don't know yet what changes to the audio engine were made for Castlevania 3, but I didn't really care about that right now.

As it turns out, the audio engine was more extensive than I had anticipated. I'm not sure how it compares to other games on the Famicom or NES, but I certainly wasn't anticipating al segno, coda, ritenuto, or a couple other musical terms I've long since forgotten since I was last in school. I mean, they weren't called that explicitly, but my brief refresher on musical terminology lead me to those terms.

Notes could be encapsulated inside a volume envelope or pitch envelope. Envelopes could be loaded once and disabled when not wanted. There was even some sort of note sustaining going on - as in one note would stop and a previous note would play in its stead. Yeah, it was pretty complex! Because of all this, some notes could be defined by 1 byte, while others required 5, 7, or even 9 bytes to define!

There was no Triangle Wave channel. The standard Square Wave channels were hardly audible at times, even with other audio channels disabled. Disabling the wave channels allowed me to really enjoy the DPCM drum kit, but I didn't really look too deep into the drum stuff or the sound effects.

Anyway, I know that none of this is interesting to 99% of the people out there, but it was just a hobby I took up in recent weeks. I don't plan on actually modifying CV3/AkuDen music myself, but maybe someone else out there could use this.

https://gmvania.blogspot.com/2022/08/cv3-audio-system-notes.html
(click to show/hide)
Your mom has had more floppies put in her than a Commodore 64!


Follow my lack of progress on my game at my blog:
http://gmvania.blogspot.com

Offline TheouAegis

  • Amateur Auteur of GMvania
  • Master Hunter
  • *****
  • Posts: 1857
  • Gender: Male
  • Awards The Retro Gamer: Has a heated passion for the oldschool VG Titles. The Great Defender will always defend the object of his or her fandom. Hack Master makes creations out of CV parts. (S)he makes Dr. Frankenstein proud.
    • GMvania Developer's Blog
    • Awards
  • Likes:
Re: So I kinda cracked CV3's music programming
« Reply #1 on: August 19, 2022, 11:09:41 PM »
0
Update: I added Castlevania 3 (U) audio mappings to the RAM Tables on Data Crystal. Sorry, no programming tips for Castlevania 3, although I don't think very much changed between CV3j and CV3u. The Triangle channel required some new code to be added in and a couple new variables were also added, which meant I had to spend all morning trying to figure out how Konami coded the Triangle channel. Two of the new variables were devoted entirely to cutting a triangle note off 1 frame earlier than normal. And I thought I had problems with micro-optimization! Still, I suspect my notes from the previous post still hold even for the Triangle channel.

Yet another unproductive day; but I spent some time ;) with my wife, cracked CV3u's audio, and mapped out a bunch of variables I had overlooked before. All in all, it was a far cry from my least productive day.  :)
Your mom has had more floppies put in her than a Commodore 64!


Follow my lack of progress on my game at my blog:
http://gmvania.blogspot.com

Offline mercurius

  • Newbie
  • *
  • Posts: 3
  • Only at the Castle Gate...
    • Awards
  • Favorite Game: Castlevania: Aria of Sorrow (GBA)
  • Likes:
Re: So I kinda cracked CV3's music programming
« Reply #2 on: August 23, 2022, 12:24:45 PM »
0
I should say that this is some wonderful and interesting stuff. I wish you could continue with this.

Offline X

  • Xenocide
  • Master Hunter
  • *****
  • Posts: 9243
  • Gender: Male
  • Awards SuperOld Dungeonite: Members who have been around since the oldOLD days. The Unfazed: Never loses his/her calm, even in the most heated arguments. The Retro Gamer: Has a heated passion for the oldschool VG Titles.
    • Awards
  • Favorite Game: Super Castlevania IV (SNES)
  • Likes:
Re: So I kinda cracked CV3's music programming
« Reply #3 on: August 23, 2022, 05:38:55 PM »
0
Most likely TheouAegis will continue on. I've not seen him quite on these things, just take a bit of a break every now and then.
"Spirituality is God's gift to humanity...
Religion is Man's flawed interpretation of Spirituality given back to humanity..."

Tags: