Crabman wrote:Another question:
Is it possible to replace samples that are somewhere "in the middle" instead of just deleting them?
Not really... I know it is not really user friendly...
Right now,the free number(after deleting a sample) just disappears
That is normal.
and when i try to move the sample (i want to replace) to another position it just shifts all following sample forward
that is how I have chosen to design the interface. It was difficult for me (beginner) with tkinter, that is limited in widgets, to make something more elegant... I'll try later to use something like
http://tkintertreectrl.sourceforge.net/ and to allow drag and drop with something like
https://github.com/petasis/tkdnd but for now it is already enough difficult to make it works on Windows/Linux/Mac just using the base library.
It is intentional that when you use the '<', '<<', '<<<', '>>>', '>>' and '>' buttons, it just shifts the samples to not use new sample numbers.
If you want to change the sample number, edit it directly in sample number box. This change will always preserve the order of your samples (making previous sample numbers decrease, or following increase, if necessary). I recommend you to use the 'up' and 'down' buttons of the sample number box instead of directly typing the sample number, because each time you will hit a key to edit the value it will update all the list if necessary. This is not so convenient, I agree. I should do something to update the list only when you finish typing the number, but it is not my top priority.
or even seem to delete them when i move the sample backwards in the list.
Really? do you mean there is a bug? I will have a more closer look. In first quick tests I cannot reproduce this strange delete on move forward.
Edit:
in resume, to do what you want:
1) delete the sample (e.g. number N)
2) import the sample you want to replace it (e.g. with number K+1)
3) move the sample you want to the sample number following the one you deleted (e.g. N+1, then all your following samples will have there value increased by one)
4) change the sample number of the last sample (that is now K+1) to K.
This works properly if you do not have numbering holes else it will be a pain you will need to change the sample numbers over each hole...
I'll think to how to do this in a simple way (for the user and for the development)