I do agree that some gunpowder is produced by different ingredients.
Additional research on smokeless powder produced the following findings.
Black powder, commonly known as gunpowder, is the old charcoal, sulfur, saltpeter mix that burns badly and creates huge amounts of smoke.
Smokeless powder, which is not completely smokeless, is based on the explosive capabilities of certain organic compounds called "nitrocellulose".
Nitrocellulose is a highly flammable compound formed by nitrating cellulose through exposure to nitric acid or another powerful nitrating agent.