Greetings everyone,
I'm currently writing the sound engine for my NES game, and was wondering how to implement different instruments.
I'm no musician, but I have a decent (not expert) understanding of the physics of sound. A friend of mine is composing MIDI files on his Mac, which I then convert to a format suitable for APU playback.
So far, I have a 4-track tune playing through the Pulse 1, Pulse 2, Triangle, and Noise channels. (I haven't experimented with the DMC channel yet.)
The note frequencies are correct, but the waveforms themselves sound pretty generic at present. Right now, they're just your basic pulse/triangle waves with no modulation. The song already sounds fantastic, but I'd like to take it over the top with some sweet instruments.
So, how does one synthesize different types of instruments on the APU? Is it just a matter of selecting the right ADSR envelope, or is there more to it? Do you employ frequency and/or duty cycle modulation of any kind? I haven't got the slightest clue.
Also, are there specific values that distinguish a piano from, say, a guitar, trumpet or harp? Any insight would be much appreciated.
I'm currently writing the sound engine for my NES game, and was wondering how to implement different instruments.
I'm no musician, but I have a decent (not expert) understanding of the physics of sound. A friend of mine is composing MIDI files on his Mac, which I then convert to a format suitable for APU playback.
So far, I have a 4-track tune playing through the Pulse 1, Pulse 2, Triangle, and Noise channels. (I haven't experimented with the DMC channel yet.)
The note frequencies are correct, but the waveforms themselves sound pretty generic at present. Right now, they're just your basic pulse/triangle waves with no modulation. The song already sounds fantastic, but I'd like to take it over the top with some sweet instruments.
So, how does one synthesize different types of instruments on the APU? Is it just a matter of selecting the right ADSR envelope, or is there more to it? Do you employ frequency and/or duty cycle modulation of any kind? I haven't got the slightest clue.
Also, are there specific values that distinguish a piano from, say, a guitar, trumpet or harp? Any insight would be much appreciated.