The code for my app I am creating for my final is not working. *Due tomorrow*

I am creating an app called music matcher for my STEM final that is due tomorrow and I am running into some problems in the coding process. My first problem is that the song names are not matching the songs and here is the code I have for it:

My second problem is that I cannot transfer the name of the song that is currently playing. I am able to transfer the whole list but I want only the one specific song playing to show up not the whole list. Many tutorials I have watched transfer the users input never the information off of a list. This is my current code for that:

Please do not judge me if I made a vital error that was obvious, this is my first time ever coding my own personal app and I am still confused on how to code.

(Canned Reply: ABG- Export & Upload .aia)
Export your .aia file and upload it here.

export_and_upload_aia

.

Sorry it’s taking really long to upload.

Probably because the songs are big.

Here's how to manage pairs of song names and their file names:

Keep a dictionary with names as keys and files as values, and make a copy of the keys of the dictionary as your working song list.

Don't delete from the dictionary, it's just for permanent reference.

That should eliminate any synchronization problems.

Also, the Player component handles long sounds better than the Sound component.

P.S. Good night!

Thank you, night.

Hi

  1. You are deleting the songs that have been played from your List but the random selection remains for the original length of list.

  2. Instead of separate Lists, store the path and song title in the same list, separated with '|'

Tiny Example:

1 Like

Thank you so much it worked.

My current problem is that I do not know how to send the current song playing over to a different screen when I hit the like or dislike button.

Dear @Luke-1 , let me suggest you to not use multiple screens (you'll fall into several problems) but to use virtual screens, instead (i.e. making visible/invisible horizontal and/or vertical layouts).
The annexed.aia shows you how to change between virtual screens applying fading options by means of an extension, called "phase", made by @shreyash :+1:
SmoothFade.aia (1.4 MB)

This is working great I just need to find out how to pass the information from one label to another when I click a button but that sounds easy.

blocks2

Ya I did that but I need to make it a list

LIsts can be shown by using textboxes. You can assign the rows of a text box from the elements of a list, then show the text box whose height and width can be set according to the dimension you need (or want).

In addition, whether you want to perform cursor controls on a text box, you can use another powerful extension from @Taifun (TaifunTextbox1).
Best wishes for your "due tomorrow" :+1:

1 Like