Home Forums General Programming getModulatorByIndex

Tagged: 

This topic contains 4 replies, has 2 voices, and was last updated by zeoka zeoka 3 years, 5 months ago.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #14412
    zeoka
    zeoka
    Participant

    Hi
    I have two methods (one for osc1 and one for osc2) and tried to reduce one of them
    a script work like that :
    two mods( pitch and detune) * 4 (*24 when finished !) and a group name attached to one script
    those scritps are recalled in another method where a modulator “trigsel” switch sounds and “refresh” the group name NO PROBLEMO

    I have tried getModulatorByIndex for the osc1 method and that’s working only when i switch the sound using “trigsel”, when i move a detune or pitch nothing happens
    EDIT not working at all in fact
    Is there a panel demo where i can get it ?

    Just tried getModulatorByVstIndex but get error…

    • This topic was modified 3 years, 5 months ago by zeoka zeoka.
    Attachments:
    You must be logged in to view attached files.
    #14419
    atom
    atom
    Moderator

    The index passed to getModulatorByIndex is an internal one, it is not the vstIndex or the customIndex, you can safely use it only in a for() loop when iterating all modulators OR keep that indexing constant acroos the panel lifetime.

    #14423
    zeoka
    zeoka
    Participant

    Thank you so byIndex is wrong that’ sure

    i need vstIndex but this is not working
    attemp to call method getModulatorByVstIndex

    do i can : panel:getModulatorByVstIndex(“variable”):getModulatorValue() ?

    or just panel:getModulatorByVstIndex(“variable”):setModulatorValue(x,false,false,false) ?

    • This reply was modified 3 years, 5 months ago by zeoka zeoka.
    #14427
    atom
    atom
    Moderator

    There never was a method like that or i removed it, you can use getModulatorWithProperty() and using the property “vstIndex”.

    #14430
    zeoka
    zeoka
    Participant

    Thank you Atom ! i get it

    i saw getModulatorByVstIndex in the changelog

Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.

Comments are closed.