Scriptnode osc pitch question
-
Hi guys!
I have a Scriptnode Synth with only one scriptnode oscillator(poly).
If I change the pitch and I play a note it is changing but as I leave the pitch knob alone the osc plays the original pitch again not lookiong at the pitch knob info.
How can I switch this off? I want my osc on that pitch I set with the knob and follow the notes with it. -
@darkInteger the oscillator automatically processes MIDI events and sets the frequency to the root frequency. If you don't want that behaviour, you can disable this function by putting the node into a
container.no_midi
node.https://docs.hise.audio/scriptnode/list/container/no_midi.html
-
@Christoph-Hart
Thank you!
Whai if I want the midi info and the pitch info combined? -
I'd imagine if you want to set a knob as your new pitch "centre" and still have the oscillator change pitch when you play notes... you're going to need some way to take a knob value that isn't part of the oscillator.... add it to your midi frequency that is being generated.... put the oscillator in a no midi container... and then send the added signals to the pitch knob of the oscillator.
I'm talking in theory - haven't actually done this myself. I assume it is possible!
-
@Orvillain I‘m using the freq ratio parameter to scale the frequency determined by the midi note
-
@Christoph-Hart is it possible to combine a knob value and the midi value?
-
@darkInteger Why not? Add a new modchain node, add two math_add nodes, plug your parameter into one and MIDI into the other. then add core_peak and plug that wherever you want
-
@aaronventure THX for the hint!
All works good until I add the math.add node.
First I convert the midi2Freq which I connect to the osc freq and that is working.
But as I add the math.add node the peak node is up at the max value all the time. -
@darkInteger What are you trying to achieve? If you want to have the oscillator react on MIDI input but add an "offset" (like +- 1 octave or semitones or slight detune), use the freq ratio knob for this and it will combine the MIDI freq and this factor internally.
That's usually how it works and most sound generating nodes in scriptnode have that freq ratio knob so that you can use this paradigm.
-
@Christoph-Hart I am building a sound fx generator kinda synth, where I want to control the pitch via Midi and with a value knob to have like big sweeps across the freq spectrum.
Basically I want to have the midi info as freq and add the value (-3000 - 3000 Hz) realtime.
-
@Christoph-Hart the peak node is the problem.
I had to set the min-max values for the add node.
I put a peak node after and its value is always at max, I can't set its min-max.
Is there another way to send the modulation signal? -
Use a pma_unscaled node
HiseSnippet 1435.3ocyX0raaaDDdosWk3eRZBRZOqC8fCPfgTZZZA5gHaYqTgV4HX5ZjatqIW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6ZiWmBn6L3Xgs0m4C8Z.OgKbKZ7ImNaT4orCxX3YOlbV+ClZ8oBbC4BVOpSkmzwm+KkwCbWpmK63PY.DdALc0NA.FSFARzSHSze50A8XWjetKOtkol6g06xd0l4H94wdqryhV1DEW3n2NTqbg5Y1S4fIQfYLibAguXZPHmLUMNTBm6cnp.KneW7F1l48sqSwHUHTYY7L92kKs+E8kE7uPE1OV+aFfTqHPd++7wCj0n8BczBOmwjBmzhUu2aurf58daqxodJcaa6Y07qakkXkODVntuOeqz0qNkBuSxgewjFO2UD3AsLrSHz5SbNWtYv7eoM+hI2dtGT1yFZtMZ6StQMGmp1hCkyiScuRlyluZT5ISJMc90uqjgwr4R4Op+XTqRQoedQ+PiR5G1HBL0O.KPTVR8Gbx8hCDu.L2aLUu35J8GxBtBRvMjtqE8pUywrycOcZCR+OsGJnsQAVK3X1rkadHkCsP3.G7VSEoLPjtPH9YXa8YpYjfx31hIlmiuSX50cKkch7W+ELi3EW85rXGXX4qzsRoYZs9yYyv+q27l+tXB1O+fceWDS61zs0Zl0nY4ZeYKxMuxWkd.2gOmjrpn8qoZKeRxuuShWucn+YyCAyoqrEz7dURW2QoF4xhd0zp8mD8o3EocYV9piSZ3EMtaGMCTgRF8OotJsGNtdSxYy5BwBeGaYk+nJrwmT0M9UUciOspa7qq5FeVU232T0M9sW8FwWuKoYF7sL.Fe+8hKBZrmjchS7k.j+CqAIQz.
-
@Christoph-Hart THX!!!!!
Works perfectly! -
@Christoph-Hart How would you go about getting the Freq Ratio knob in a core.oscillator to work with a Pitch Modulator in the tree?
I have a Waveform generator with a purple voice start constant pitch mod (for detune).
I have a polyphonic script node network using the core.oscillator as a modsource to introduce AM.
If I detune the the pitch mod to anything other than +-12, it sounds awful. Lower notes sound like there's a slow LFO and higher notes sound like there's a fast LFO.
I thought I found the fix - I added a core.pitch_mod to the modchain and connected that to the Freq Ratio Knob.
There's only one problem.
You can't compile a dsp network with the core.pitch_mod. What other node could I use to achieve the same thing?
Thanks!