PreenFM > preenfm2 and preenfm3

global tune, midi-offset for presets and more...

(1/2) > >>

lokki:
some suggestions:

-it would be great to have a global tuning setting, something like 435 to 448 in the global menu that tunes the preenfm to a reference a. nowadays more and more music is 442.
-a preset based midi offset would be great, in the range of -24 to +24 halftones (-+ 2 octaves). this is a feature found on many hardware synths, and would be very handy.

-i added cc3 to the matrix source, easy enough. but i thought it could be nice to have a user_cc value that you can set in the global menu and that will then be available in the modmatrix. that way everybody can define an individual cc for modulation, again very handy. i tried to implement this, but failed :-(

i would attempt the first two, but would need some ideas as to where the midi to frequency is happening in the code, global-tune would just be a constant fractional value added to the midi note.

for preset based midi offset the main question is where to put it in the menu...from there again it would only be an offset added to midinote...

lokki:
i see now, that there is a possibility to adjust tuning when you use a scala file.

still think that a global tune based on a=440 would be very useful.

lokki:

--- Quote from: lokki on August 13, 2017, 11:08:14 PM ---for preset based midi offset the main question is where to put it in the menu...from there again it would only be an offset added to midinote...

--- End quote ---

it should go after the filter type in the engine menu i think. so i have to search for it in the code... :-)

Xavier:

--- Quote from: lokki on August 13, 2017, 11:08:14 PM ---.... would need some ideas as to where the midi to frequency is happening in the code, global-tune would just be a constant fractional value added to the midi note.

--- End quote ---

Here is the newNote function where the frequency array is used.
https://github.com/Ixox/preenfm2/blob/master/src/synth/Osc.cpp#L180
(+ glideToNote function just bellow).

In the Osc.cpp init function, it should be easy to modify frequencies. Multiply all 128 values by 442/440 and you'll get a 442 hertz reference.

The array is one of the pre-generated array in :
https://github.com/Ixox/preenfm2/blob/master/waveforms/waves.c

Xavier

lokki:
thanks for the heads up. i think i did global tune! have to check tomorrow with the unit. while i was at it, i also tried the midi-offset thing i described. i added another parameterrowengine for the midi offset and it compiles fine. so the ui part should work. i'm not sure how to get a variable from my new entry though. where is for example oscillator->detune (used in Osc.cpp) defined? i don't see how the detune menu affects this variable (or where). 

sorry for the maybe silly questions.

Navigation

[0] Message Index

[#] Next page

Go to full version