10-04-2018 03:01 AM
Hi guys,
I am currently working on reading Tabs from a .txt file for a guitar playing robot.
I managed to put each chord into one line.
Now I am trying to put everything into an array.
When I tried to remove the "-" and "|" characters I ran into a problem.
I don't know how to properly seperate each characters. When I would seperate the fields by one char each field i have a problem with numbers higher than 9, because if I have a 14 for example, they should be in 1 field. So I thought I just jump to the next everytime there is a "-" or "|". Haven't implemented the "|" to check if it worked so far.
But with my current method the problem is that it doesnt jump to the next array field when there is a number. Therefore the lines get "out of sync"
The "|" characters should always be in one column, thats not the case with my attempt.
LabVIEW version: latest 2018
If you know a better way to do this pls let me know.
Thanks in advance,
SkyForCe
Solved! Go to Solution.
10-04-2018 03:04 AM
10-04-2018 03:35 AM
10-04-2018 03:38 AM
I am pretty new to LabView. How do u convert your project to other LabVIEW version
10-04-2018 03:40 AM
10-04-2018 03:57 AM
Here it is a LV17 version
10-04-2018 03:59 AM - edited 10-04-2018 04:02 AM
Thanks for your solution.
Could you pls upload your VI ?
I am not sure but I think the problem with your resolution is that for example the number 14 would be split apart to 1 and 4.
Also all letters should just be deleted. Only the numbers and the spaces between are important
10-04-2018 04:03 AM - edited 10-04-2018 04:06 AM
Hi Sky,
Could you pls upload your VI ?
Sorry, didn't save that VI. But all you need can be seen in the picture…
(The learning effect is much better than just to take a ready-made VI.)
I am not sure but I think the problem with your resolution is that for example the number 14 would be split apart to 1 and 4.
Yes, my suggestion would do that.
Also all letters should just be deleted. Only the numbers and the spaces between are important
I made just a suggestion. You can improve it on your own!
Idea: You could count the "-" chars before deleting them to get the note position in the track…
10-04-2018 07:43 AM
Thank GerdW for the help,
I am gonna try to do it by counting the "-" chars.
Best regards,
SkyForCe