You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
using the example_basics1_patching on osx with OF 0.11.2.
The pitch numbers don't appear to make any sense. Trying to set the frequency of an oscillator.
100.0f >> osc.in_pitch();
gives 2.62kHz
50.0f gives 150Hz
Clearly something very wrong here!
The text was updated successfully, but these errors were encountered:
in ofxPDSP anything with in_pitch() is scaled in semitones (by default using 440hz as reference, but that can be changed), and everything that uses in_freq() is scaled in hertz.
All the high level "modules" are composed by various DSP units and usually use pitch input, while the lower level blocks use freq inputs.
you can solve this either by using pitch values, by converting freq to pitch with the pdsp::f2p() function, or by making your own modules with freq inputs (that's more advanced stuff but you can start from the ones in the 'src/module` folder)
Ahh ok... sorry for the misunderstanding.
Ideally it would be nice for all things that produce a waveform to have both in_pitch() and in_freq() by default.
But I guess can use pdsp::f2p() to solve my immediate problem.
using the example_basics1_patching on osx with OF 0.11.2.
The pitch numbers don't appear to make any sense. Trying to set the frequency of an oscillator.
100.0f >> osc.in_pitch();
gives 2.62kHz
50.0f gives 150Hz
Clearly something very wrong here!
The text was updated successfully, but these errors were encountered: