drummer

class roqba.drummer.ContFrame(confirm, vol, pan, pan2, ctl, ctl2, meta)
confirm

Alias for field number 0

ctl

Alias for field number 4

ctl2

Alias for field number 5

meta

Alias for field number 6

pan

Alias for field number 2

pan2

Alias for field number 3

vol

Alias for field number 1

class roqba.drummer.Drummer(composer, meter=[0, 0, 0, 0, 0, 0])[source]
cont_frame(state, density)[source]

assembles the frame for the cont-voice

create_pattern(patt=None)[source]

creates a drum pattern from a given (bass-)pattern

as a fallback this method will create a (generic) pattern using the underlying meter

empty_pattern()[source]

initializes a empty pattern-dict

keys are:
  • low (bass-drum function)
  • high (snare-function)
  • cont (continuous => hi-hat/ride cymbal function)
  • tuned (should allow melodies (from tom-tom upwards))
  • mark (special marker (crash, splash, etc))
generate()[source]
high_low_seq()[source]

creates a pattern consisting of the sequence of low-high changes

format to be defined

mark_frame(state, density)[source]

assembles the frame for the mark-voice

push_value(val)[source]

append a value to all keys of the pattern

smoothen()[source]

post - creation method to smoothen loop-related duplications

roqba.drummer.random() → x in the interval [0, 1).