Offset and LFO
Offset and LFO
Hi, I'd like to begin to use LS with SFZ patches in my gigs, but to achieve this goal I have to wait until some opcodes will be implemented.
The opcodes are: offset, and a basic LFO implementation(lfoN_freq, lfoN_wave, lfoN_pan, lfoN_cutoff, lfoN_resonance).
I want to make a donation to support the LS's development and the new server host, so let me know how much I have to add for these opcodes.
thank you
The opcodes are: offset, and a basic LFO implementation(lfoN_freq, lfoN_wave, lfoN_pan, lfoN_cutoff, lfoN_resonance).
I want to make a donation to support the LS's development and the new server host, so let me know how much I have to add for these opcodes.
thank you
Re: Offset and LFO
donation done
Re: Offset and LFO
Hi nicop,
Thank you very much for you donation and sorry for the late response!
I've just implemented the offset opcode. Please, give it a try and let me know if it is not working as expected.
I'll try to implement the other opcodes, too.
Thank you very much for you donation and sorry for the late response!
I've just implemented the offset opcode. Please, give it a try and let me know if it is not working as expected.
I'll try to implement the other opcodes, too.
Re: Offset and LFO
Today I tested (a little) the offset opcode and it seems to work without problems, maybe in the weekend I'll test it deeper.grishata wrote: I've just implemented the offset opcode. Please, give it a try and let me know if it is not working as expected.
I'll try to implement the other opcodes, too.
For the other opcodes, I sent you and Andreas a PM about them, let me know what do you think about it.
Thanks again for developing such a powerful tool

Nicola
Re: Offset and LFO
Hi Nicola,
I've just implemented the opcodes lfoN_delay, lfoN_freq, lfoN_pan, lfoN_cutoff, lfoN_resonance. Note that the last four commits include a lot of changes, so the code should be considered experimental. Let me know if you find any bugs.
I've just implemented the opcodes lfoN_delay, lfoN_freq, lfoN_pan, lfoN_cutoff, lfoN_resonance. Note that the last four commits include a lot of changes, so the code should be considered experimental. Let me know if you find any bugs.
Re: Offset and LFO
I've just implemented and the last one - lfoN_wave with the following options:
0: triangle
1: sine
2: pulse 75%
3: square (pulse 50%)
4: pulse 25%
5: pulse 12.5%
6: saw up
7: saw down
0: triangle
1: sine
2: pulse 75%
3: square (pulse 50%)
4: pulse 25%
5: pulse 12.5%
6: saw up
7: saw down
Re: Offset and LFO
Many thanks to Grigor! Now I can start using my library with LS 
I tested the opcodes and, for what I was able to check and understand, there are no problems.
I notice that the LFO's value is being reset on every "note on": If I play a note with a drum sound (like a hi-hat) with a lfoN_pan, I hear the same panning every time I play that note.
it is possible to not reset it? Or to not stop the LFO after the "note off"? So each time I play that note I'll hear a different panning for that sound.
thanks!

I tested the opcodes and, for what I was able to check and understand, there are no problems.
I notice that the LFO's value is being reset on every "note on": If I play a note with a drum sound (like a hi-hat) with a lfoN_pan, I hear the same panning every time I play that note.
it is possible to not reset it? Or to not stop the LFO after the "note off"? So each time I play that note I'll hear a different panning for that sound.
thanks!
Re: Offset and LFO
You are welcome.nicop wrote:Many thanks to Grigor! Now I can start using my library with LS
I think this is the expected behavior, right?nicop wrote: I notice that the LFO's value is being reset on every "note on": If I play a note with a drum sound (like a hi-hat) with a lfoN_pan, I hear the same panning every time I play that note.
The LFO is part of the voice - it is triggered when the voice is triggered and is stopped when the voice is killed. I'm not sure exactly what behavior you are trying to achieve. Is there an existing opcode for that? If I understand you right you want to be able to specify the initial phase of the LFO (lfoN_phase - Sets the initial phase of the LFO N /0 to 360 degrees/) to be randomly chosen by the sampler for every voice (on every note on event) - maybe a new opcode like lfoN_phase_random? Or do you want the phase to be dynamically changed for every note on in a specific way?nicop wrote: it is possible to not reset it? Or to not stop the LFO after the "note off"? So each time I play that note I'll hear a different panning for that sound.
Re: Offset and LFO
Yesgrishata wrote: I think this is the expected behavior, right?

Yes, that's exactly what I'm trying to achieve.grishata wrote: Or do you want the phase to be dynamically changed for every note on in a specific way?
I'm thinking of a LFO that runs indipendently and feeds the instrument's parameters.
I searched in the LS SFZ Reference, and maybe the only way to do that, is to implement lfoN_phase_onccX , so I can send a midi cc to LS with an external program.
Re: Offset and LFO
I've just implemented lfoN_phase and lfoN_phase_onccX.