Coding DM1's Score

If you are NERD and wanna have something WILD, start Coding of Music with DM1.

Posted by Sponge K. on August 10, 2019

DM1 is Drum Machine App for iOS, which I introduced in previous post.

It's fantastic and I like it very much. But I still cannot understand how to save its scores, which I created by tapping the pad. It can export 2 types of audio file format: WAV and AAC (Advanced Audio Coding).

What I want to do is saving simple "score data" and reuse and arrange them by just changing sound-source, tempo, effect, etc. Additionally I want to generate as many patterns of beats as possible, and analyze them by using computing power.

Firstly I would like to record these scores by straightforward way: just writing down and express them with 0/1.

DM1 has 2 modes: 16/32. To make this trial simple, let's start with 16-steps-score.

Track-1 (Instrument): KICK<

STEP 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
0/1 1 0 1 0 0 0 0 0 1 0 1 0 0 0 0 0

Now Track-1 was coded to [010100010100000].

To convert a binary number to a decimal number...

[010100010100000] = [10400]

Now the track was coded and expressed as number [10400].

So do this calculation repeatedly, 8 times additionaly, to convert all tracks to codes.

Result of calculation is less than 216=65,536

Therefore align them to 5 digits number.

TrackCode
KICK10400
SNARE02056
HHCLOSED37538
HHOPEN08738
CLAP04626
RIMSHOT28086
COWBELL00514
TOM46774
CYMBAL41120

Finally link all those 9 numbers with "-".

"10400-02056-37538-08738-04626-28086-00514-46774-41120"

Conclusion

Now we accomplished standardization of expression of coding with DM1. I can manage and save my composions in order.

We can generate many patterns and teach them to AI by using Deep Learning, we can enjoy new rythm composed by AI.


RELATED POSTS

DM1
Track-making with DM1.