nngn
Loading...
Searching...
No Matches
drums.lua File Reference

Variables

local n< const > = audio.note
 
local n1< const > = rate / 0.375
 
local n2< const > = rate / 0.75
 
local n4< const > = rate / 1.5
 
local n8< const > = rate / 3
 
local n16< const > = rate / 6
 
local kick_f< const > = n"a1"
 
local snare_f< const > = n"e2"
 
local hihat_f< const > = n"a5"
 
local kick_dur< const > = rate / 4
 
local snare_dur< const > = rate / 4
 
local hihat_dur< const > = rate
 
local _kick< const > = function(f)
 
local _snare< const > = function(f)
 
local _hihat< const > = function(f, open)
 
local kick< const > = audio.gain(audio.db( -5), _kick(kick_f))
 
local snare0< const > = audio.gain(audio.db(-10), _snare(snare_f))
 
local snare1< const > = audio.gain(audio.db(-22), _snare(snare_f))
 
local hihat0< const > = audio.gain(audio.db(-25), _hihat(hihat_f, 0.25))
 
local hihat1< const > = audio.gain(audio.db(-32), _hihat(hihat_f, 0.25))
 

Variable Documentation

◆ _hihat< const >

local _hihat< const > = function(f, open)

◆ _kick< const >

local _kick< const > = function(f)

◆ _snare< const >

local _snare< const > = function(f)

◆ hihat0< const >

local hihat0< const > = audio.gain(audio.db(-25), _hihat(hihat_f, 0.25))

◆ hihat1< const >

local hihat1< const > = audio.gain(audio.db(-32), _hihat(hihat_f, 0.25))

◆ hihat_dur< const >

local hihat_dur< const > = rate

◆ hihat_f< const >

local hihat_f< const > = n"a5"

◆ kick< const >

local kick< const > = audio.gain(audio.db( -5), _kick(kick_f))

◆ kick_dur< const >

local kick_dur< const > = rate / 4

◆ kick_f< const >

local kick_f< const > = n"a1"

◆ n16< const >

local n16< const > = rate / 6

◆ n1< const >

local n1< const > = rate / 0.375

◆ n2< const >

local n2< const > = rate / 0.75

◆ n4< const >

local n4< const > = rate / 1.5

◆ n8< const >

local n8< const > = rate / 3

◆ n< const >

local n< const > = audio.note

◆ snare0< const >

local snare0< const > = audio.gain(audio.db(-10), _snare(snare_f))

◆ snare1< const >

local snare1< const > = audio.gain(audio.db(-22), _snare(snare_f))

◆ snare_dur< const >

local snare_dur< const > = rate / 4

◆ snare_f< const >

local snare_f< const > = n"e2"