In the attached file "bug_find_merge.sunvox", when you try to find module 03, module 02 comes up instead.
How to reproduce:
- create an empty project
- merge the attached project file "bug_find_merge_template.sunvox", which was made by adding amplifiers and removing some of them (module 01,05)
Finding modules does not work properly in a merged project
Finding modules does not work properly in a merged project
- Attachments
-
- bug_find_merge_template.sunvox
- (2.53 KiB) Downloaded 95 times
-
- bug_find_merge.sunvox
- (2.51 KiB) Downloaded 92 times
YouTube: https://www.youtube.com/@00sk0
Bandcamp: https://00sk0.bandcamp.com/
Mastodon: https://mastodon.online/@sk0
Website: https://sk0.info/
Bandcamp: https://00sk0.bandcamp.com/
Mastodon: https://mastodon.online/@sk0
Website: https://sk0.info/
- NightRadio
- Site Admin
- Posts: 3954
- Joined: Fri Jan 23, 2004 12:28 am
- Location: Ekaterinburg. Russia
- Contact:
Re: Finding modules does not work properly in a merged project
I just did as you described, then opened the FIND A MODULE window, entered "03" - as a result, module 03 was highlighted.
Re: Finding modules does not work properly in a merged project
I tried again and found that typing "03" in the search box displayed module 03, and typing only "3" displayed module 02. It seems that the modules that are displayed when only one digit is entered in the box are different in the files "bug_find_merge_template.sunvox" and "bug_find_merge.sunvox".
Looking at this alone, it seems that when you enter all the digits you can find the desired module, but the search may not work for projects where the module number is 3 digits. For example, when I try to search for module AD in the attached project file and enter "AD" or "0AD" in the search box, it does not come up (actually, the module AD is in the module A9's connection)
Looking at this alone, it seems that when you enter all the digits you can find the desired module, but the search may not work for projects where the module number is 3 digits. For example, when I try to search for module AD in the attached project file and enter "AD" or "0AD" in the search box, it does not come up (actually, the module AD is in the module A9's connection)
- Attachments
-
- sk0 - Mimosa_compo_2021_version.zip
- (49.21 KiB) Downloaded 87 times
YouTube: https://www.youtube.com/@00sk0
Bandcamp: https://00sk0.bandcamp.com/
Mastodon: https://mastodon.online/@sk0
Website: https://sk0.info/
Bandcamp: https://00sk0.bandcamp.com/
Mastodon: https://mastodon.online/@sk0
Website: https://sk0.info/
- NightRadio
- Site Admin
- Posts: 3954
- Joined: Fri Jan 23, 2004 12:28 am
- Location: Ekaterinburg. Russia
- Contact:
Re: Finding modules does not work properly in a merged project
This happened because the algorithm (iterating through all the modules sequentially) first found a module containing the string "AD" in its name (ADSR for example).For example, when I try to search for module AD in the attached project file and enter "AD" or "0AD" in the search box, it does not come up (actually, the module AD is in the module A9's connection)
Should I prioritize searching by module numbers - I'm not sure
Re: Finding modules does not work properly in a merged project
Thank you very much for the clear explanation. This seems to explain everything that is happening (it was caused by the module number changing in the merge. I didn't know I could search by module name ).
Some of my projects use 0x16d or 0x1ac modules, and therefore many of their module numbers contain alphabetic characters. It seems that there are not that many module numbers that apply to this case (among them are CE, DE, EC, AD, EE, and BA, for example), but as I frequently use module numbers for commands such as manipulating effects and have encountered this problem several times along the way, it would be nice to make it easier to search by module number.
For example, there could be a solution to separate the search input fields for module number and module name, and/or to allow the user to move back and forth between multiple candidates.
Some of my projects use 0x16d or 0x1ac modules, and therefore many of their module numbers contain alphabetic characters. It seems that there are not that many module numbers that apply to this case (among them are CE, DE, EC, AD, EE, and BA, for example), but as I frequently use module numbers for commands such as manipulating effects and have encountered this problem several times along the way, it would be nice to make it easier to search by module number.
For example, there could be a solution to separate the search input fields for module number and module name, and/or to allow the user to move back and forth between multiple candidates.
YouTube: https://www.youtube.com/@00sk0
Bandcamp: https://00sk0.bandcamp.com/
Mastodon: https://mastodon.online/@sk0
Website: https://sk0.info/
Bandcamp: https://00sk0.bandcamp.com/
Mastodon: https://mastodon.online/@sk0
Website: https://sk0.info/