Skip to content

Create a drum machine with random sounds and midi patterns generated by AI and machine learning algorithms!

Notifications You must be signed in to change notification settings

vah7id/drum-randomizer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DRUM RANDOMIZER

Create a drum machine with random sounds and midi patterns generated by AI and machine learning algorithms!

Try out the MVP

Overview

This experimental project will help musicians to create random (experimental) drum patterns by using machine learning to organize the sounds and generate the patterns (16n) based on similar sounds in each genre.

Patterns

Patterns dataset is already imported in the project includeing 32 notes per each drum rack(row)!

1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,3,1,1,1,1 -0.30617907643318176,-0.7179029583930969,-1.0683232545852661,-1.6860641241073608

  • First column holds the pattern code (32 comma-separated integers)
  • Second column is the point of this pattern in the latent 4D space (4 comma-separated float values)
  • Third column is the t-SNE mapping from the latent space into 2D projection (2 comma-separated float values)

Sounds

Rightnow we're just using some default sounds which you can find and add your own audio elements in the resource directory! resources/elements/index.ts.

{ title: 'Bell Tree', destination: '{AUDIO_DIRECTORY}', tag: 'Bell' }

Technologies

We're using Tone.js as audio library to setup drum rack, sampler and sequencer, d3.js to draw the sounds graph!

-----

Missions

This project uses t-SNE method and magenta as open source research project to classifiy and organize the sounds and in the next step the mission will be find the best pattern based on genre for each group of sounds by AI algorithms!

Upcoming features:

  1. Make some grooves to drum machine patterns real-time using magenta machine learning tools
  2. Audio visualizer while drum is playing based on genre and tempo!
  3. Save the project as midi our audio file
  4. Provide some output audio effects like delay or reverb
  5. Make an open source drum audio library

-----

Installation & Running

In the project directory, you can run:

npm start

-----

Refrences

Make music and art using machine learning
Generating and Controlling Expressive Drum Performances
t-SNE method, t-distributed stochastic neighbor embedding
Drum machine Concepts

-----

Contribution

Contributions welcome seriously!!!

As a Developer

If you're interested to work on AI or machine learning part to find the best algorithm and method to get and organize the similar sounds you're welcome to make a PR with enough description!

As a Musician

If you are musician you can contribute to this project by importing new sounds dataset which could be recorded one-shot sounds! Report bugs or issues

-----

Licence

(The MIT License) Copyright (c) 2021 @vah7id Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the 'Software'), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

About

Create a drum machine with random sounds and midi patterns generated by AI and machine learning algorithms!

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages