Chat

Author Topic: DMF Player for PC-Engine (source code)  (Read 1813 times)

Offline Delek

  • Salí para ver
  • Administrator
  • Hero Member
  • Posts: 1770
    • Delek's Website
    • Email
DMF Player for PC-Engine (source code)
« on: May 22, 2015, 03:35:37 PM »
Very interesting project by MooZ:

https://github.com/BlockoS/dmf-player
« Last Edit: October 23, 2015, 06:56:30 PM by Delek »

Offline MooZ

  • Newbie
  • Posts: 3
  • Delek FTW
DMF Player for PC-Engine (source code)
« Reply #1 on: October 23, 2015, 06:36:47 PM »
Hello (sorry for necroposting)

I'm the author of this project. I had a question regarding effects replay.
For example, what happens if the current instrument has a volume envelope and the current row effect is a tremolo ?
Does the tremolo overrides the instrument envelope ?

For the moment I'm doing some kind of reverse engineering of the VGM output but it's slow and kinda painful.

Offline Delek

  • Salí para ver
  • Administrator
  • Hero Member
  • Posts: 1770
    • Delek's Website
    • Email
DMF Player for PC-Engine (source code)
« Reply #2 on: October 23, 2015, 06:55:11 PM »
Welcome MooZ!  :)

What DefleMask does while processing the envelope is:
updatedVolume=envelopeValue-(soundChip.maxVolume-currentVolume[channel]);

currentVolume is just the volume column values or the tremolo/volume slides output. Hope it helps!

Offline MooZ

  • Newbie
  • Posts: 3
  • Delek FTW
DMF Player for PC-Engine (source code)
« Reply #3 on: October 23, 2015, 07:12:20 PM »
Thanks!

I assume the same kind of formula applies to tone and frequency.

Offline MooZ

  • Newbie
  • Posts: 3
  • Delek FTW
DMF Player for PC-Engine (source code)
« Reply #4 on: December 09, 2015, 06:58:21 PM »
I have another question about Volume fade effect.
Is the following formula correct ?
volume = volume + (fade / 4);