[sdiy] Introducing my new M116 Multi-Scale Quantizer !

Didier Leplae didierleplae at yahoo.com
Tue Sep 21 16:02:35 CEST 2021


Yes, yes. It makes perfect sense to me now. 

The way that my code had worked was that the output only changed to the next interval once the input reached the next interval, if that makes sense.

> On Sep 21, 2021, at 8:48 AM, Jean-Pierre Desrochers <jpdesroc at oricom.ca> wrote:
> 
> 
> Both incoming and outputed ‘data’ have the same amount of steps or intervals related to the selected scale.
> For example a Triad scale will have 3 intervals for both the incoming CV and the quantized output.
> A pentatonic will have 5 intervals for both too. Etc..
>  
> De : Didier Leplae [mailto:didierleplae at yahoo.com] 
> Envoyé : 20 septembre 2021 19:26
> À : The SynthiMuse
> Cc : Jean-Pierre Desrochers; synth-diy mailing list
> Objet : Re: [sdiy] Introducing my new M116 Multi-Scale Quantizer !
>  
> I haven’t carefully looked through all of what you guys have written yet, but now I think I get it! If you have set a pentatonic scale, for example, you would divide the incoming voltage equally in 5 within a 1 v range (for 1v/oct) regardless of the specified intervals. Then the outputting voltages conform to whatever scale you have selected. 
>  
> That makes great sense and don’t know why I didn’t think of it. 
>  
>  
>  
>  
> 
> 
> On Sep 20, 2021, at 4:43 PM, The SynthiMuse via Synth-diy <synth-diy at synth-diy.org> wrote:
> 
> 
> It all looks really good Jean-Pierre, but it's too late in my day to get my head around it. :-)
>  
> One key difference in my method is that I quantized my incoming control voltage to a midi number then did all my scale work and tables with just midi note numbers.
>  
> If I have anything that I can add, I certainly will. 
> I think you 'trump' me on scales: your unit has 25, the synthimuse only had 10 plus a user assigned one.
>  
> Gerry
>  
>  
> On Mon, 20 Sep 2021, 21:52 Jean-Pierre Desrochers, <jpdesroc at oricom.ca> wrote:
> The way I ‘vote’ the good quantized output vs the incoming ADC value is the following way:
> Each scales have a number of possible steps so I constructed a lookup table
> of 25 elements (scales) with each a number of steps (thresholds).
> unsigned char const ADC_step_divisions[25] = {12,6,5,5,7, 7,3,3,3,3, 6,8,7,5,5, 7,7,7,7,7, 7,7,7,7,7};
> So if I’m in the 2nd  scale I know I’ll have 6 steps to compared with the incoming ADC value
> Here is part of my code:
> for(x = 0; x < ADC_step_divisions[ScaleCounter]; x++) // ADC_step_divisions[] = 3,5,6,7,8 or 12
>   {
>  
>    y = scale_ADC_threshold_values[ScaleCounter][x] + octave;           
>    z = scale_ADC_threshold_values[ScaleCounter][x+1] + octave;
>    
>    if( (ADCValue >= (scale_ADC_threshold_values[ScaleCounter][x]) + octave ) &&
>       (ADCValue < (scale_ADC_threshold_values[ScaleCounter][x+1] + octave) ) )
>     .
>     .
>     .
> This way I quickly know where the ADC input is located in the scale cells
> then I can output the right quantized output.
> The selected output then is used to calculate the right MIDI note to send.
>  
> JP
> 
>  
> De : The SynthiMuse [mailto:synthimuse at gmail.com] 
> Envoyé : 20 septembre 2021 16:30
> À : Didier Leplae
> Cc : Jean-Pierre Desrochers; synth-diy mailing list
> Objet : Re: [sdiy] Introducing my new M116 Multi-Scale Quantizer !
>  
> In the example of a pentatonic scale, the octave range would be divided in to 5 steps.
> If the input value was exactly at the midway point, it would take the middle note of the scale.
> If the input was half way between 2 notes, it would first look down one step to see if there was an allowable note. If no note was there,  it would look up one step. If no note was found it would look down two steps, if no note was found, it would look up two steps and so on. It would keep widening it's search up and down until it found a valid note to output.
> In the synthimuse, I added a randomisation to the first step so it didn't always go the same way. Sometimes it would start looking down, other times it would start looking up.
> The only thing I didn't like about this approach is that it can take an indeterminate number of steps to get a note. 
> For a 12 tone chromatic scale : 1 step
> For a worst case 1 tone scale, it could take up to 11 steps.
> The routine above was some of the cleverest in the design but I can't take credit for it. A colleague gave me the algorithm when I described the problem to him. :-)
> Gerry
>  
>  
> On Mon, 20 Sep 2021, 20:44 Didier Leplae, <didierleplae at yahoo.com> wrote:
> I’m not sure how successive approximation works. 
> But if you are hunting for the nearest note and some are further apart than others, won’t the result still be that some notes take longer to reach than others?
>  
>  
> 
> On Sep 20, 2021, at 2:19 PM, The SynthiMuse <synthimuse at gmail.com> wrote:
> 
> 
> Hi Didier
>  
> I'm not sure how Jean-Pierre dealt with this issue but in the Synthimuse, I gave each note in the scale equal weight and 'hunted', by successive approximation to find the note that equated closest to the input value. 
> The SM had ( who knows, it may have again if I can get my finger out :-)  ) an analog input so it's similar to the situation that Jean-Pierre is dealing with.
> Gerry
>  
> On Mon, 20 Sep 2021, 19:45 Didier Leplae via Synth-diy, <synth-diy at synth-diy.org> wrote:
> That’s really beautiful! I have a question for you.
> 
> I was working on a eurorack quantizer a while back but never finished. On mine, if I were doing like you are in the demo, feeding a slow triangle LFO into the quantizer, and having it set to a scale with some uneven intervals (for example any diatonic scale) then the time that each note holds is also uneven (proportional to the size of the interval. 
> I’m guessing you have programmed yours to compensate for this. Can you explain a bit about how that works? Also, how does this play out if you input a sequence with uneven durations for example?
> 
> > On Sep 20, 2021, at 8:54 AM, Jean-Pierre Desrochers <jpdesroc at oricom.ca> wrote:
> > 
> > Thank you Roman !
> > 
> > JP
> > 
> > ******************************************************
> > 
> > -----Message d'origine-----
> > De : Roman Sowa [mailto:modular at go2.pl] 
> > Envoyé : 20 septembre 2021 05:46
> > À : Jean-Pierre Desrochers; synth-diy at synth-diy.org
> > Objet : Re: [sdiy] Introducing my new M116 Multi-Scale Quantizer !
> > 
> > Always a pleasure to watch.
> > Thanks for posting it.
> > 
> > Roman
> > 
> > W dniu 2021-09-17 o 20:55, Jean-Pierre Desrochers pisze:
> >> Hi all !
> >> 
> >> After around  4 months of work..
> >> 
> >> Introducing my new *M116 Multi-Scale Quantizer* !
> >> 
> >> It contains 25 selectable scales listed here:
> >> 
> >> */Semi-Tones/*
> >> 
> >> */Whole-Tones/*
> >> 
> >> */Pentatonic major/*
> >> 
> >> */Pentatonic minor/*
> >> 
> >> */Heptatonic major/*
> >> 
> >> */Heptatonic minor/*
> >> 
> >> */Triad major/*
> >> 
> >> */Triad augm./*
> >> 
> >> */Triad minor/*
> >> 
> >> */Triad dimin./*
> >> 
> >> */Augmented/*
> >> 
> >> */Diminished/*
> >> 
> >> */Athar Kurd/*
> >> 
> >> */Kumoi/*
> >> 
> >> */Hon-Kumoi-Joshi/*
> >> 
> >> */Egyptian/*
> >> 
> >> */Nikriz/*
> >> 
> >> */Persian/*
> >> 
> >> */Hebrew/*
> >> 
> >> */Dorian Mode/*
> >> 
> >> */Phrygian Mode/*
> >> 
> >> */Lydian Mode/*
> >> 
> >> */Mixoydian Mode/*
> >> 
> >> */Locrian Mode/*
> >> 
> >> */Gypsy/*
> >> 
> >> It also offers:
> >> 
> >> 0 to +8.00vdc CV IN / OUT span
> >> 
> >> Lag control on quantized output
> >> 
> >> 12 transpose keys from G to F#
> >> 
> >> Gate IN / OUT connectors
> >> 
> >> MIDI output (16 channels)
> >> 
> >> You can watch a Youtube demo HERE 
> >> <https://www.youtube.com/watch?v=UxPzGvb0HrQ>.
> >> 
> >> 
> >> The fact that all generated quantized notes are ‘IN TUNE’
> >> makes this module very ‘musical’..
> >> 
> >> I’m very happy !!!
> >> 
> >> Thanks for watching.
> >> 
> >> JP
> >> 
> >> 
> >> _______________________________________________
> >> Synth-diy mailing list
> >> Synth-diy at synth-diy.org
> >> http://synth-diy.org/mailman/listinfo/synth-diy
> >> Selling or trading? Use marketplace at synth-diy.org
> >> 
> > 
> > 
> > _______________________________________________
> > Synth-diy mailing list
> > Synth-diy at synth-diy.org
> > http://synth-diy.org/mailman/listinfo/synth-diy
> > Selling or trading? Use marketplace at synth-diy.org
> 
> 
> _______________________________________________
> Synth-diy mailing list
> Synth-diy at synth-diy.org
> http://synth-diy.org/mailman/listinfo/synth-diy
> Selling or trading? Use marketplace at synth-diy.org
> _______________________________________________
> Synth-diy mailing list
> Synth-diy at synth-diy.org
> http://synth-diy.org/mailman/listinfo/synth-diy
> Selling or trading? Use marketplace at synth-diy.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://synth-diy.org/pipermail/synth-diy/attachments/20210921/0bf59abb/attachment.htm>


More information about the Synth-diy mailing list