Generating random notes: Difference between revisions

m Replace version="2.24.0" with version="2.24" now that the LilyWiki extension supports auto-selecting the latest release in a stable series
mNo edit summary
Line 1: Line 1:
This Scheme-based snippet generates random notes. Use as
This Scheme-based snippet generates random notes. Use as


<code>\randomNotes </code>''<code>n</code>''<code> </code>''<code>from</code>''<code> </code>''<code>to</code>''<code> </code>''<code>dur</code>''
<code>\randomNotes <var>n</var> <var>from</var> <var>to</var> <var>dur</var></code>


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''.