exNoops v0.1.1 Exnoops.Drumbot View Source
Module to interact with Github's Noop: Drumbot
See the official noop
documentation
Link to this section Summary
Link to this section Functions
Link to this function
get_pattern(pattern) View Source
Query Drumbot for a pattern
's data
Examples
iex> Exnoops.Drumbot.get_pattern("nipnop")
{:ok,
%{
"name" => "nipnop",
"beatsPerMinute" => 92,
"stepCount" => 16,
"tracks" => [
%{
"instrument" => "snare",
"steps" => [0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0]
},
%{
"instrument" => "clap",
"steps" => [0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1]
},
%{
"instrument" => "cowbell",
"steps" => [0, 0, 0, 1, 0, 0, 1, 0, 0, 1, 0, 0, 1, 0, 0, 0]
},
%{
"instrument" => "kick",
"steps" => [1, 1, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0]
}
]
}}
Link to this function
get_patterns() View Source
Query Drumbot for patterns
Examples
iex> Exnoops.Drumbot.get_patterns()
{:ok,
[
"oontza",
"bossanoopa",
"nipnop",
"botthisway",
"funkee",
"shlojam",
"botorik",
"swoop",
"schmaltz",
"bouncy"
]
}