Tonal Samples in DefleMask

Samples in the YM 2151 Module of DefleMask are a great tool for when you want to add more elements to your music. Whether it be power chords, strings, piano notes, drums, etc. – you can take advantage of this feature to give more meat and personality to your music. However, if you are like me, maybe you never completely understood how to use the feature that allows you to manipulate the pitch of the sample. Today, I’ll give you a hint on how to use it. Let’s take a look at it!


Command 20 manipulates the sample’s playback speed using the formula ‘delta*(31250/255)hz = sample hz‘. Now, use this formula every time you want to change the note might be a little annoying, so here´s a little cheat sheet.

CommandSemitonesExampleExample
Original SampleC4G#5
8C+1C#A
94+2DA#
9D+3D#B
A7+4EC
B1+5FC#
BB+6F#D
C6+7GD#
D2+8G#E
DF+9AF
EC+10A#F#
FA+11BG
One Octave Lower42-12C3G#4
46-11C#A
4A-10DA#
4E-9D#B
53-8EC
58-7FC#
5D-6F#D
63-5GD#
69-4G#E
6F-3AF
76-2A#F#
7D-1BG
Two Octaves Lower21-24C2G#3
23-23C#A
25-22DA#
27-21D#B
29-20EC
2C-19FC#
2E-18F#D
32-17GD#
35 -16G#E
38-15AF
3B-14A#F#
3E-13BG
Disclaimer: These values were calculated using a piano sample at 440Hz. If you use samples with a different tune, you might need to adjust the second digit.

Even when you can reach up to three octaves down from the original pitch, I would not recommend getting more than one octave low (I just included the values for two octaves). That is because, depending on the sample, sometimes the timbre can be lost. Also, you can only reach eleven semitones upwards. Since this command (20) changes the sample’s playback speed, it’s natural that it sounds better when you get higher than when you get lower.

You can use this feature to tune your kicks, snares, or percussions in general. It will just be a matter of moving the samples a few semitones.

I made a little cover of Petzold’s ‘Minuet in G’ (attributed to Bach) to show you how this works. I understand this isn’t the main focus of the module nor the program, but here’s the result:


I hope you find this useful! See you next time!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: