[LAD] Quantise MIDI note/frequency to musical scale: algorithm?

Jeanette C. julien at mail.upb.de
Fri Dec 31 09:40:45 CET 2021

Hi Sam!
Dec 31 2021, Sam Kuper has written:
> For example: if the scale is C major, and the input is C#, then what
> should the output be?
> Reasonable answers might include C or D, because these are the closest
> notes (i.e. have the smallest distance from input to output, along the
> scale).
> So, your algorithm could simply "quantize down" (yielding C in the
> example).  Or, alternatively, you might prefer an algorithm that simply
> "quantizes up" (yielding D in the example).
> But I think you - entirely reasonably - hope for an algorithm that gives
> the most musical result,
No. I am looking for something that will yield a steady result and I
don't mind which of the two. That is the behaviour found in such
scaling/quantising features on the hardware I know about. Think Novation
Launchkey Mk3, Arturia MiniBrute 2S. I haven't worked with any quantiser
modules in the eurorack world, that support scales, but I think they
also use a static mechanism.

Best wishes and thanks,


  * Website: http://juliencoder.de - for summer is a state of sound
  * Youtube: https://www.youtube.com/channel/UCMS4rfGrTwz8W7jhC1Jnv7g
  * Audiobombs: https://www.audiobombs.com/users/jeanette_c
  * GitHub: https://github.com/jeanette-c

I thought love was just a tingling of the skin <3
(Britney Spears)

More information about the Linux-audio-dev mailing list