What's new

Playing a pad that is not affected by the arpeggiator script ...

berto

Senior Member
hello. I am trying to figure this out but it's not working
i thought if i use this script :
On note ignore_event($EVENT_ID) disallow_group($ALL_GROUPS) allow_group(pad) play_note(EVENT_NOTE, EVENT_VELOCITY, -1, -1) disallow_group($ALL_GROUPS) allow_group(arpeggiated sound) {kontakt arpeggiator script follows....} end on

this should do... but it does not
what am i missing?

i also tried it on a tab before the arpeggio script (using all the PGS codes in the correct way... but it does not work either)

thank you in advance
 

EvilDragon

KSP Wizard
Best thing to do would be edit the arpeggiator script to only respond to events that have, say, $EVENT_PAR_3 set to a certain value (say 1), and then from the preceeding script slot you send regular note event to be your pad (that is, you don't use ignore_event() at all, instead you just use set_event_par_arr($EVENT_ID, $EVENT_PAR_ALLOW_GROUP,...) to disallow/allow group(s) you want to play). Then you create new event with play_note() that get $EVENT_PAR_3 set to 1 and that's only gonna be played by the arp script.
 
OP
B

berto

Senior Member
Thread starter
  • Thread Starter
  • Thread Starter
  • #5
Best thing to do would be edit the arpeggiator script to only respond to events that have, say, $EVENT_PAR_3 set to a certain value (say 1), and then from the preceeding script slot you send regular note event to be your pad (that is, you don't use ignore_event() at all, instead you just use set_event_par_arr($EVENT_ID, $EVENT_PAR_ALLOW_GROUP,...) to disallow/allow group(s) you want to play). Then you create new event with play_note() that get $EVENT_PAR_3 set to 1 and that's only gonna be played by the arp script.
sorry i am bit new to this $EVENT_PAR_ALLOW_GROUP i always use allow_group

so in script tab 1 i write:

set_event_par_arr($EVENT_ID, $EVENT_PAR_ALLOW_GROUP, 0,$ALL_GROUPS)
set_event_par_arr($EVENT_ID, $EVENT_PAR_ALLOW_GROUP,1, $pad_group)
set_event_par($EVENT_ID,$EVENT_PAR_3,0) {like this?}

in the arp script i start with:

$note_id:=play_note(EVENT_NOTE,EVENT_VELOCITY,-1,-1)
set_event_par_arr($note_id, $EVENT_PAR_ALLOW_GROUP, 0,$ALL_GROUPS)
set_event_par_arr($note_id, $EVENT_PAR_ALLOW_GROUP,1, $arp_group)
set_event_par($note_id,$EVENT_PAR_3,1)

if(get_event_par,($note_id,$EVENT_PAR_3)=1
{arp script on note ....}
end if

i am not understanding how to use the $EVENT_PAR_3....

thank you...
 

EvilDragon

KSP Wizard
You set $EVENT_PAR_3 to 1 for notes you want to trigger via arpeggiator. Then you wrap the whole note and release callbacks into:

Code:
if (get_event_par($EVENT_ID, $EVENT_PAR_3) = 1)
...
end if

And then the arp script will only respond to events that have $EVENT_PAR_3 set to 1.
 
Top Bottom