Practical use of 75% duty cycle?

Discuss NSF files, FamiTracker, MML tools, or anything else related to NES music.

Moderator: Moderators

Post Reply
User avatar
FrankenGraphics
Formerly WheelInventor
Posts: 2033
Joined: Thu Apr 14, 2016 2:55 am
Location: Gothenburg, Sweden
Contact:

Practical use of 75% duty cycle?

Post by FrankenGraphics » Fri Jun 09, 2017 5:08 am

Try as might, i've yet to find practical use of the 75%positive/25% negative duty. Theoretically, a fast music engine or support chip could perhaps toggle between 25% pos/neg at rates faster than the frequency of the tone to allow for more nuances in timbre or even PWM sweeps, that's all i can think of (but if that could be achieved, we could also AM/FM the pulse channels). But am i missing something that might matter when composing?
http://www.frankengraphics.com - personal NES blog

User avatar
za909
Posts: 226
Joined: Fri Jan 24, 2014 9:05 am
Location: Hungary

Re: Practical use of 75% duty cycle?

Post by za909 » Fri Jun 09, 2017 9:53 am

There is a practical use if you want phasing effects to behave differently. For example playing the same note, but with slightly offset pitch on two channels using 25% and 75% pulse-width results in a high-pass filter-sort of PWM effect instead of the usual phasing (it's recommended to retrigger the phase on purpose when you start doing this, however, so that you can get predictable results)

User avatar
rainwarrior
Posts: 8000
Joined: Sun Jan 22, 2012 12:03 pm
Location: Canada
Contact:

Re: Practical use of 75% duty cycle?

Post by rainwarrior » Fri Jun 09, 2017 10:19 am

In general it does not have much obvious use.

Unlike the other duty settings, that one starts high rather than at 0, so if you keep its frequency low enough and continually reset phase, you can use it as a crude 4-bit PCM via its volume control. Not sure why you'd want to when there's a perfectly good 7-bit PCM already, though.

The ability to make 2 squares destructively cancel each other by putting them in phase an at 25% and 75% is also interesting. Aside from the limited musical effect this could have by carefully detuning one for short periods of time, you could also use it for timing tests via "interferometry", etc.

I've seen people use a duty macro that flips between 25% and 75% each frame for a sort of 60hz buzz + 25% tone instrument. Kind of an ugly sound for most purposes, but it is at least kind of distinctive.

tepples
Posts: 22277
Joined: Sun Sep 19, 2004 11:12 pm
Location: NE Indiana, USA (NTSC)
Contact:

Re: Practical use of 75% duty cycle?

Post by tepples » Fri Jun 09, 2017 10:56 am

rainwarrior wrote:so if you keep its frequency low enough and continually reset phase, you can use it as a crude 4-bit PCM via its volume control. Not sure why you'd want to when there's a perfectly good 7-bit PCM already, though.
Not interfering with the other sample that you're playing on $4010-$4013 channel.

User avatar
FrankenGraphics
Formerly WheelInventor
Posts: 2033
Joined: Thu Apr 14, 2016 2:55 am
Location: Gothenburg, Sweden
Contact:

Re: Practical use of 75% duty cycle?

Post by FrankenGraphics » Fri Jun 09, 2017 11:28 am

That's perhaps best reserved for short samples (perhaps percussives), and keep relatively long-ringing samples on the 7-bit side. Although.. 4-bit format will probably squeeze any punch out of the percussives
http://www.frankengraphics.com - personal NES blog

User avatar
rainwarrior
Posts: 8000
Joined: Sun Jan 22, 2012 12:03 pm
Location: Canada
Contact:

Re: Practical use of 75% duty cycle?

Post by rainwarrior » Fri Jun 09, 2017 11:39 am

tepples wrote:
rainwarrior wrote:so if you keep its frequency low enough and continually reset phase, you can use it as a crude 4-bit PCM via its volume control. Not sure why you'd want to when there's a perfectly good 7-bit PCM already, though.
Not interfering with the other sample that you're playing on $4010-$4013 channel.
Again, not sure why you'd want to other than to demonstrate that you can, but yes technically you could play a DPCM sample while using a square PCM, as long as your comfortable with the DPCM fetches interfering with your square PCM in return? :P

Post Reply