[LAD] python-alsa-midi – new Python interface to ALSA sequencer

2021-12-31 Thread Jacek Konieczny
Hi, When working on my hobby project, a Raspberr-Pi based wireless foot switch for my VOX Adio Air GT guitar amplifier, I hit, once again, the same problem: there is not good Python library for use with ALSA MIDI sequencer. Those that can be found on PyPI are either very outdated an

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

2021-12-31 Thread Jeanette C.
Gopod morning Fons! Dec 31 2021, Fons Adriaensen has written: ... There is code doing this [quantise frequency to scale] in zita-at1 (the autotuner). It has some refinements such as an optional preference for the previous note. I will look this up and isolate it - it may be difficult to find as

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

2021-12-31 Thread Jeanette C.
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,

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

2021-12-31 Thread Sam Kuper
On Thu, Dec 30, 2021 at 11:38:52PM +0100, Jeanette C. wrote: > But, how to best quantise chromatic notes to a given musical scale > like C minor or B Dorian? I would probably need some method to do it > for both MIDI notes and in frequencies. It sounds to me like you are asking for an algorithm

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

2021-12-31 Thread Fons Adriaensen
On Fri, Dec 31, 2021 at 12:58:31AM +0100, Jeanette C. wrote: > OK, the project I'm working on is a monophonic step sequencer. You will > find similar functionality in some master control keyboards, softsynths > and other DAWs. It's mostly for convenience's sake or to help people > with less