EvilDragon
KSP Wizard
Yes, you would use play_note() two times, and store each one to a variable to get the event ID, which you can then use to set_event_par_arr(<event-ID>, $EVENT_PAR_ALLOW_GROUP, <value>, <group-idx>).
Ok thanks is there any example on how to do that? Have ist to ne different variables for each play Note()?Yes, you would use play_note() two times, and store each one to a variable to get the event ID, which you can then use to set_event_par_arr(<event-ID>, $EVENT_PAR_ALLOW_GROUP, <value>, <group-idx>).
if both groups need to play the same notes..Another Question: Is there any possibility to let play samples of two different groups at the same time?
So like when you press one key it plays Sample 1 in Group 1 and Sample 2 in Group 2?
of course, just load both groups.Another Question: Is there any possibility to let play samples of two different groups at the same time?
So like when you press one key it plays Sample 1 in Group 1 and Sample 2 in Group 2?
Hey thank you very much, would have taking me some hours for sure to figure that out. The 3rd approach is the nearest to what I'm aiming for. I want to have kind of Drop Down menus to control which groups are played when you hit one key. Do I have to define every group with add_menu_items ? Or is there a better way to do this?if both groups need to play the same notes..
and
if you don't use any allow_group code it will always play all groups that are loaded....
if you want to play 2 specific groups only (ex: group 22 and 32) only just do this:
on note
disallow_group(ALL_GROUPS)
allow_group(22)
allow_group(32)
end on
if you want to be able to select the groups to play and change them, just do 2 menus that contain all the available groups like:
declare ui_menu $layer1
declare ui_menu $layer2
i:=0
while(i<NUM_GROUPS)
add_menu_items($layer1,group_name(i),i)
add_menu_items($layer2,group_name(i),i)
inc(i)
end while
and then :
on note
disallow_group(ALL_GROUPS)
allow_group( $layer1)
allow_group( $layer2)
end on
not sure i understand your question...Do I have to define every group with add_menu_items ? Or is there a better way to do this?
How can I make it that per drop down menu 1 group is triggered and than both play when you press a key?
Hey thank you so much for the detailed comments helps me really to understand whats going on. What I'm basically going for is a kind of preset browser like you find in in Native Instruments Analog Dreams 2.0 or Pharlight, Straylight and so on. So at the end i want to be able to choose two different sounds to mix between /manipulate.not sure i understand your question...
in this:
i:=0
while(i<NUM_GROUPS)
add_menu_items($layer1,group_name(i),i)
add_menu_items($layer2,group_name(i),i)
inc(i)
end while
the group_name refers to the name you write on each group and NUM_GROUPS is the total amount of groups you have
in my example i used add_menu_items in a while loop and both menus will be able to load all the groups (you would have to do a little trick to not load the same group in both, it would not work properly)
if you had 10 menus for ten layers at once, you could still use only one while loop to add all the groups names to each menu , i only used 2 menus...
the allow_group code i pasted is the one to use to permit the chosen groups to play
on note
disallow_group(ALL_GROUPS)
allow_group( $layer1)
allow_group( $layer2)
end on
when you select a different group in layer_1 menu, the value will be carried out in the layer_1 variable in allow_group, so it will allow the chosen group...
but on ui_control( $layer1)
you will have to purge (unload) all samples and then load only the chosen ones by the menu,
on ui_control( $layer1)
i:=0
while(i<NUM_GROUPS)
purge_group(i,0) {this purge all groups}
inc(i)
end while
purge_group($layer1) {this will re-load layer 1 samples}
purge_group($layer2) {this will re-load layer 2 samples}
end on
and the same on layer2 control
Ok thanks. Also another question is there any way to "highlight" buttons when hovering over them with the mouse?if you use sublime text all the variables will be compiled correctly so out of speed i almost never use $ % etc... so yes you would have to declare $i
Try to do different shading on the six images of a button in photoshop and check the resultsOk thanks. Also another question is there any way to "highlight" buttons when hovering over them with the mouse?
Ok done this. How can I trigger that picture of the button when mouseover?Try to do different shading on the six images of a button in photoshop and check the results
Thank you that really helped. Now I wanted to make several buttons to select the right zones, is this possible? I don't want a selector menu cause they look a little ugly. XDYes, it's possible ...
Home - Community
Join the NATIVE INSTRUMENTS community and learn more about your products with producers, creators and Djs from around the world.www.native-instruments.com
I already know this post, but it's not what I'm searching for. Of course I want to control my groups but without creating a ui_menu. Just to clarify that again.Found with the forums search engine; when you don't know, this method with the right keywords will become your friend.
Home - Community
Join the NATIVE INSTRUMENTS community and learn more about your products with producers, creators and Djs from around the world.www.native-instruments.com