{"id":202,"date":"2024-12-07T22:53:40","date_gmt":"2024-12-08T03:53:40","guid":{"rendered":"http:\/\/course.ece.cmu.edu\/~ece500\/projects\/f24-teamc5\/?p=202"},"modified":"2024-12-07T23:13:40","modified_gmt":"2024-12-08T04:13:40","slug":"fionas-status-report-for-12-07-2024","status":"publish","type":"post","link":"https:\/\/course.ece.cmu.edu\/~ece500\/projects\/f24-teamc5\/2024\/12\/07\/fionas-status-report-for-12-07-2024\/","title":{"rendered":"Fiona&#8217;s Status Report for 12\/07\/2024"},"content":{"rendered":"<p><i><span style=\"font-weight: 400\">Book-Keeping<\/span><\/i><\/p>\n<p><span style=\"font-weight: 400\">I made a list of the final elements we have to wrap up in the last two weeks of the semester, and met with Shravya and Peter to assign tasks.<\/span><\/p>\n<p><i><span style=\"font-weight: 400\">New Software Functionalities<\/span><\/i><\/p>\n<p><span style=\"font-weight: 400\">I adjusted the software so that the user could open an existing composition without opening an external window. In order to do so, I implemented some logic where the program opens the next available file and loops back around to the first if it reaches the end of the available songs in the folder. Again, this obviously has some drawbacks in that the user may have to iterate through many compositions before reaching the end of the list, but it is accessible and simple, two of the most important foundations of our UI.<\/span><\/p>\n<p><span style=\"font-weight: 400\">Another quick fix I made was to make the buttons different colors, at Peter\u2019s suggestion, in order to make it easier for the users to differentiate between the different buttons and memorize different commands easier. Peter also mentioned that it would be good if there was a delay between calibration and the eye-tracking beginning right away so the user could orient themselves to the UI, so I also added in a short delay for that.<\/span><\/p>\n<p><span style=\"font-weight: 400\">I also created a separate file that users could easily adjust sampling delay, gain and number of iterations for confirmation for the eye-tracking, in order for the user to be able to adjust those things as best suits them.\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400\">I had previously identified a bug in which only the first page of sheet music would appear on the secondary UI, even if the cursor was on another page. I thus added two more buttons on the screen so the user could move back and forth between the pages of the sheet music. I verified that this worked with sample compositions from this repository: [1]. (That were greater than one page).<\/span><\/p>\n<p><span style=\"font-weight: 400\">I also made it so that the rest and stack buttons would be highlighted when they were selected but before they were performed (so the user is aware of them).<\/span><\/p>\n<p><span style=\"font-weight: 400\">Finally, since I have been having so much trouble with highlighting the cursor location on sheet music, mainly due to the variable locations of any one cursor location depending on any sharps\/flats and preceding notes, etc., I decided to show the user the current cursor position on the main UI as a number (e.g. \u201cCursor at note 1.\u201d). This was not our original plan, but I still believe it to be a viable solution to ensure the user knows where in the piece they are.<\/span><\/p>\n<p><i><span style=\"font-weight: 400\">Debugging<\/span><\/i><\/p>\n<p><span style=\"font-weight: 400\">I fixed a small bug where the C sharp note was highlighted when the high-C note was confirmed and another small bug in which the number of notes did not reset to 0 when a new file was opened.<\/span><\/p>\n<p><span style=\"font-weight: 400\">Then, I did some stress testing to confirm that the logic used to build rests and chords up to three notes was completely sound. While testing the eye-tracking, I had been running into some situations in which it appeared that the logic broke, but I could not figure out why. I used a different Python script that would run the command responses on key press (rather than eye-press) to easily test this functionality. Here were the edge case bugs I identified and fixed:<\/span><\/p>\n<ul>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">When a rest is placed after a single eighth note, the eighth note is extended to a quarter note. I discovered with pretty certain confidence that this is actually a bug in the open-source sheet-music generator that we are using [1], because when I would play the composition in GarageBand, the eighth notes would play where expected even though the sheet music generator was interpreting them as quarter notes. I further verified by using another online sheet music generator, which also produced the expected value: <\/span><a href=\"https:\/\/melobytes.com\/en\/app\/midi2sheet\"><span style=\"font-weight: 400\">https:\/\/melobytes.com\/en\/app\/midi2sheet<\/span><\/a><span style=\"font-weight: 400\">. Since I have already been struggling to modify this open-source program to highlight the cursor location and this is a very specific edge case, I decided it would be a better use of my time to not try to fix that bug within the program, and instead focus on our code. I have left a note in the README identifying the bug to users.\u00a0<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Removing chords did not work successfully. I fixed this bug and verified it did not create a bug for single-note removal. Also, I verified that chords could be removed from anywhere in the piece, not just the end.<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">There were some logic errors with chords meant to have rests before them, which I fixed. I also optimized the three note chord logic to avoid bugs, although I hadn\u2019t identified any yet.<\/span><\/li>\n<\/ul>\n<p><b>Next Week<\/b><\/p>\n<p><span style=\"font-weight: 400\">After double-checking that the eye-coordinates, of which there have been some discrepancies,\u00a0<\/span><span style=\"font-weight: 400\">I plan to start performing the latency, accessibility and accuracy tests on the software.\u00a0<\/span><span style=\"font-weight: 400\">As a group, we will work on the poster and video next week so my primary goal is to finish software testing ASAP for those deliverables, but I will also work on other elements of them as needed. Additionally, I have to collaborate with Shravya once her UART code is working to integrate our two systems, but I have already set up some code for that so I do not anticipate that taking too long. For the final report, I will work on Use-Case &amp; Design Requirements, Design Trade Studies (UI), System Implementation (UI), Testing (Software), and Related Works sections.<\/span><\/p>\n<p><strong>References<\/strong><\/p>\n<p>[1]<span style=\"font-weight: 400\">\u00a0<\/span><span style=\"font-weight: 400\">BYVoid. (2013, May 9) <\/span><i><span style=\"font-weight: 400\">MidiToSheetMusic<\/span><\/i><span style=\"font-weight: 400\">. GitHub. <\/span><a href=\"https:\/\/github.com\/BYVoid\/MidiToSheetMusic\"><span style=\"font-weight: 400\">https:\/\/github.com\/BYVoid\/MidiToSheetMusic<\/span><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Book-Keeping I made a list of the final elements we have to wrap up in the last two weeks of the semester, and met with Shravya and Peter to assign tasks. New Software Functionalities I adjusted the software so that the user could open an existing composition without opening an external window. In order to &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/course.ece.cmu.edu\/~ece500\/projects\/f24-teamc5\/2024\/12\/07\/fionas-status-report-for-12-07-2024\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Fiona&#8217;s Status Report for 12\/07\/2024&#8221;<\/span><\/a><\/p>\n","protected":false},"author":932,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[6],"tags":[4],"_links":{"self":[{"href":"https:\/\/course.ece.cmu.edu\/~ece500\/projects\/f24-teamc5\/wp-json\/wp\/v2\/posts\/202"}],"collection":[{"href":"https:\/\/course.ece.cmu.edu\/~ece500\/projects\/f24-teamc5\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/course.ece.cmu.edu\/~ece500\/projects\/f24-teamc5\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/course.ece.cmu.edu\/~ece500\/projects\/f24-teamc5\/wp-json\/wp\/v2\/users\/932"}],"replies":[{"embeddable":true,"href":"https:\/\/course.ece.cmu.edu\/~ece500\/projects\/f24-teamc5\/wp-json\/wp\/v2\/comments?post=202"}],"version-history":[{"count":2,"href":"https:\/\/course.ece.cmu.edu\/~ece500\/projects\/f24-teamc5\/wp-json\/wp\/v2\/posts\/202\/revisions"}],"predecessor-version":[{"id":207,"href":"https:\/\/course.ece.cmu.edu\/~ece500\/projects\/f24-teamc5\/wp-json\/wp\/v2\/posts\/202\/revisions\/207"}],"wp:attachment":[{"href":"https:\/\/course.ece.cmu.edu\/~ece500\/projects\/f24-teamc5\/wp-json\/wp\/v2\/media?parent=202"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/course.ece.cmu.edu\/~ece500\/projects\/f24-teamc5\/wp-json\/wp\/v2\/categories?post=202"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/course.ece.cmu.edu\/~ece500\/projects\/f24-teamc5\/wp-json\/wp\/v2\/tags?post=202"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}