Generating random notes: Difference between revisions
Import snippet from LSR |
mNo edit summary |
||
| (5 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
This Scheme-based snippet generates random notes. Use as | This Scheme-based snippet generates random notes. Use as | ||
\randomNotes <var>n</var> <var>from</var> <var>to</var> <var>dur</var> | |||
to generate ''n'' random notes between pitches ''from'' and ''to'', with duration ''dur''. | to generate ''n'' random notes between pitches ''from'' and ''to'', with duration ''dur''. | ||
<lilypond version="2.24 | <lilypond version="2.24"> | ||
randomNotes = | randomNotes = | ||
#(define-music-function (n from to dur) | #(define-music-function (n from to dur) | ||
| Line 22: | Line 22: | ||
</lilypond> | </lilypond> | ||
[[Category:Pitches]] | [[Category:Pitches]] | ||
[[Category:Really cool]] | [[Category:Really cool]] | ||
[[Category:Scheme]] | [[Category:Scheme]] | ||
[[Category:Included in the official documentation]] | [[Category:Included in the official documentation]] | ||
[[Category:Snippet]] | |||