From c0af952fc6708dc7adf606b8c6fea92ff2e3bdb6 Mon Sep 17 00:00:00 2001 From: Robert Bendun Date: Mon, 29 Aug 2022 21:45:17 +0200 Subject: [PATCH] Improved rhythm of primes example --- examples/rhythm-of-primes.mq | 26 ++++++++++++++++++++++++-- 1 file changed, 24 insertions(+), 2 deletions(-) diff --git a/examples/rhythm-of-primes.mq b/examples/rhythm-of-primes.mq index 75f9693..806e158 100644 --- a/examples/rhythm-of-primes.mq +++ b/examples/rhythm-of-primes.mq @@ -1,7 +1,29 @@ ------------------------------------------------------------- +-------------------------------------------------------------- Inspired by Marc Evanstein video "The Rythm of The Primes" Link: https://www.youtube.com/watch?v=8x374slJGuo ------------------------------------------------------------- + +This program will iterate over natural numbers, playing chords +based on which prime divides given number. This results in +following execution: + +step: 2 3 4 5 6 7 8 9 10 + 1 1 1 1 1 + 2 2 2 + 3 3 + +where each index corresponds to specific note from scale. +Assuming scale [c;d;e] example above would be + +step: 2 3 4 5 6 7 8 9 10 + c c c c c + d d d + e e + +which would resolve into: + +play c d c e (c & d) c d (c & e) + +-------------------------------------------------------------- var Length = 20;