how to get the frequency for an OSC in a scriptnode synth?
-
this is how i'm doing it and it works fine but has no effect on unisono/detune. is there another way to get the actual frequency not just of the midi note to be played but including all the detune ing and pitch mod calculations? LFO has no effect on the oscillator that way either... and I haven't yet thought about polyphonic aftertouch info or MPE, portamento etc.
-
@Morphoice calculate it all in your script and attach it to the note id event data, then use that in scriptnode
-
@aaronventure that's how I thought to do it. But the scriptnode oscillator get's the data readily calculated from somewhere, I thought there's a way to tap into that from scriptnode
-
@Morphoice so right now your faust code is actually taking the MIDI information directly. You can play with the frequency not being connected to anything and still hear the correct frequency being played.
Changing the freq makes no difference in this case.So how to get this working?
- Place the Faust synth in a no midi container
- add a midi node and get the note number
- add a converter and convert from note number to frequency
- use a unscaled_pma for the frequency (adjust the add knob for detuning)
- use the output of the pma for the frequency.
This is how it should work and you can add a detune parameter manually. There is a public pitch_mod however I did not manage to use it correctly but in theory it should receive the value from the pitch mod...
-
@oskarsh this is where I'm at at the moment,
took the frequency directly from the midichain
then did the calcuations for bending and pitch tuning (coarse & fine) in FAUSTHiseSnippet 4797.3oc6c07baijcGTRMkDG+wNqmYmbKrbksJIOxT3SRh3xkkr9XrpQxVVTimM0lTJPDMEQLH.G.P8wt0T0bK41dM6kT6g7GwdJqqopbImxeB6dIGyNopbexq6F.rAH3mhRV1wZWOhn6W28u98d8qeu90fBed.1wDadjuiU613.AgbytumacruuqmPtBGdQarPtagpcgSPyMZZX4HrylB4tK5qb7CLN1F+JWq5XgmdQaCeeroPtby9EDhxs3bBze9gm7TCaCGfl3hDDnMZWqVVAcKc+09RKa6sMLwGZ0hiZ001otqyFt1tc..MKRTnsQ8WabB94FDxlAI7LC+lB4d.xPQwrQ4xU0MqqpIo2vnhY8iUz0vlxpJXcroYEEyiazPHW9sLsBb8pEXDf8ExM2ScMunVS2ybXCvqr7sfoF4AIgZvHyJdaWaSxTjTpvFMsrMi4T9.eCww2lkw29DzdVlVwk2k+8SnUTraK3Yf4lII7lMA7j3gmHG7x.R43fzbLH8wnZ08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