@Oli-Ullmann Yes, I do exactly like that
Posts
-
RE: Right click on a windows tabletposted in Scripting
@ulrik So back to the main question:
Is it possible to, via scripting, delete a band?
It would we good to know how to that. -
RE: Right click on a windows tabletposted in Scripting
@pgroslou thank you but he use only the screen
-
RE: Right click on a windows tabletposted in Scripting
@David-Healey I'll tell him, thank you David!
-
RE: Right click on a windows tabletposted in Scripting
@David-Healey I will ask him and come back with an answer
-
RE: Right click on a windows tabletposted in Scripting
@David-Healey According to the user it's not possible, I don't own a tablet my self so I could check
-
Right click on a windows tabletposted in Scripting
I'm working on a project that will be compiled as a Stand Alone instrument and will be used on a windows tablet.
Unfortunately you can't use event.rightClick, and not click + ctrl
So in a draggableFilter it's not possible to delete a band, is it possible to via scripting, delete a band, preferably the selected one? -
RE: How to get numbers from stringsposted in General Questions
@dannytaurus @Oli-Ullmann @ustk thank you all for the help, all your suggestions work great!
-
How to get numbers from stringsposted in General Questions
I have a function that iterate over strings like
strings = ["brass", "001", "127", "flute"]How can I find the string numbers from this array?
I have tried "typeof", of course that's not going to work, eval(), etc....
I even tried to let all strings passEngine.getMidiNoteName(string)and it log "0" for all letter strings but it works for the "number" strings
How do you do it? -
RE: Changing Sample Start Modposted in General Questions
@David-Healey said in Changing Sample Start Mod:
@ulrik said in Changing Sample Start Mod:
But the sample map xml files are also changed when saving the project, if I open the maps in a text editor I can see the changes are made
Aha I misunderstood. So it's autosaving them, hmm that's unexpected.
Yes indeed it is.
@ulrik said in Changing Sample Start Mod:
So if I understand right, it doesn't matter as long as it's referring to the right ch1
Needs testing in a compiled plugin.
Ok I have tested it in a stand alone, and that works fine
@ulrik said in Changing Sample Start Mod:
The user can change all samples in range between 0 - 5000 smpl, that is already fixed
In that case I would just use sample start mod and a constant modulator or set the start offset in the note on callback, rather than changing the sample properties at run time.
Yes I have been thinking in that direction as well, but I also have a script that already make use of the SampleStartMod, so that will add up to the Sample Start setting I guess.
But I think it would be the best way to use Sample Start Mod for this purpose as wellThank you David for the feedback, it's much appreciated!
-
RE: Changing Sample Start Modposted in General Questions
@David-Healey said in Changing Sample Start Mod:
@ulrik said in Changing Sample Start Mod:
And it seems the "embedded map" is still referring to the right .cr1 file.
Yes
@ulrik said in Changing Sample Start Mod:
Could you explain?
The changes are saved with the project but not with the sample map.
But the sample map xml files are also changed when saving the project, if I open the maps in a text editor I can see the changes are made
But since your use case is for the user to be able to edit the start any way then this doesn't matter because they can't save the sample map once it's embedded.
That is great to hear.
But while working with the project the sample maps are changed and it leads to the message that it's bad practice to load embedded samplemaps.
So if I understand right, it doesn't matter as long as it's referring to the right ch1@ulrik said in Changing Sample Start Mod:
A feature for the user to adjust the sample start
Do you want them to be able to set the start at any point of the sample? How many samples are we dealing with?
The user can change all samples in range between 0 - 5000 smpl, that is already fixed
-
RE: Changing Sample Start Modposted in General Questions
@David-Healey said in Changing Sample Start Mod:
If you change any sample map property then the sample map has changed, when you save the project it will save this as an embedded sample map unless you save the sample map xml.
And it seems the "embedded map" is still referring to the right .cr1 file.
...unless you save the sample map xml
Could you explain?
It is in fact saving the changes already when saving the project -
RE: Changing Sample Start Modposted in General Questions
@David-Healey said in Changing Sample Start Mod:
What's the reason for changing these properties dynamically
A feature for the user to adjust the sample start
Do you have any thoughts about how to do it another way?
-
RE: Changing Sample Start Modposted in General Questions
@David-Healey said in Changing Sample Start Mod:
Usually the sample start mod is fixed in the sample map and you control the position used with a modulator in the Sample Start chain.
Hi David
Yes I know that, what is your recommendations regarding this?
Because as soon as I change the Sample Start, or the Sample Start Mod and save the project the changes will be applied to the sample map as well.
So when I load the project again I'll get theSampler1:! Loading embedded samplemaps is bad practice. Save the samplemap to a file instead.even though the samples for that map are saved as Monolith.
Do I get that message because the sampler doesn't recognize which monolith it should use for that map or...?
Even if I load that sample map after changing the Sample Start or Sample Start Mod, it will still load the right .ch1 file so why is it compiling about loading embedded samplemaps?
Sorry if I don't understand the logic behind this -
RE: Changing Sample Start Modposted in General Questions
@ulrik Also if changing Sample Start, it will be stored in the sample map when saving project
-
Changing Sample Start Modposted in General Questions
I noticed that if I change the SampleStartMod in the sampler, and then save the project, the change will automatically be written into the loaded sample map.
Sampler1: The sample map has unsaved changes so it will be embedded into the sampler.This will lead to this message when loading the project next time.
Sampler1:! Loading embedded samplemaps is bad practice. Save the samplemap to a file instead.And as I understand it, that is a no no no...
In my project I have a script that will change the SampleStartMod if meeting some conditions, and this will change as soon as those conditions is true.
- What is the recommendation regarding this ...bad practice...?
- What will happen when the project is compiled and the SampleStartMod is changed via the script?
- Do I need to set a static SampleStartMod length and resave all samplemaps with that setting?
-
RE: Cross script communication with broadcastersposted in Scripting
@David-Healey said in Cross script communication with broadcasters:
Move the knob on the interface and the knob in the second MIDI process will move
works here as well
and trigger its callback, outputting to the console.
doesn't trigger here
Now change the value of the combobox, this will set the Interface knob's value and trigger its callback, but the knob in the second processor doesn't get the message.
Same here