Skip to content

Commit

Permalink
euclidean controls audio
Browse files Browse the repository at this point in the history
  • Loading branch information
emicklei committed Sep 10, 2024
1 parent 6fbcbf7 commit c623242
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions dsl/eval_funcs.go
Original file line number Diff line number Diff line change
Expand Up @@ -1275,10 +1275,11 @@ onkey('c4',onoff('e')) // uses default input and default output MIDI device`,
})

registerFunction(eval, "euclidean", Function{
Title: "Music Pattern Generator: Euclidean",
Description: "euclidean creates a euclidean rythm generator",
Template: "euclidean(${1:steps},${2:beats},${3:rotation},${4:noteOrVariable})",
Samples: "",
Title: "Music Pattern Generator: Euclidean",
Description: "euclidean creates a euclidean rythm generator",
Template: "euclidean(${1:steps},${2:beats},${3:rotation},${4:noteOrVariable})",
ControlsAudio: true,
Samples: "e = euclidean(12,4,0,sequence('c e g'))",
Func: func(steps, beats, rotation, noteOrVariable any) any {
return &core.Euclidean{
Steps: core.On(steps),
Expand Down

0 comments on commit c623242

Please sign in to comment.