{"id":209,"date":"2023-03-25T23:57:00","date_gmt":"2023-03-25T23:57:00","guid":{"rendered":"http:\/\/course.ece.cmu.edu\/~ece500\/projects\/s23-teamd8\/?p=209"},"modified":"2023-03-25T23:57:00","modified_gmt":"2023-03-25T23:57:00","slug":"adityas-status-report-for-3-25","status":"publish","type":"post","link":"https:\/\/course.ece.cmu.edu\/~ece500\/projects\/s23-teamd8\/2023\/03\/25\/adityas-status-report-for-3-25\/","title":{"rendered":"Aditya&#8217;s Status report for 3\/25"},"content":{"rendered":"<p>My schedule changed this week as after we built the Note design structures, we realized we would have to implement the integrator step of the project in the front-end instead of the back-end, as discussed in our team status report. Because of this, I couldn&#8217;t use the output of the integrator in my Vexflow code like I&#8217;d originally planned.<\/p>\n<p>Instead, I worked on determining how long each transcription will need to be based on the number of notes in each audio. Vexflow&#8217;s library is setup so that you have to manually instantiate each measure of the musical piece before adding notes to it. So, I wrote code that took the length of the input audio and using the baseline time signature of 4\/4 determines how many measures (defined as Staves in the Vexflow API) would be required in the transcription.<\/p>\n<p>Once the number of Staves was known, I could setup a 2-d array of locations, to track which measure goes where on the output PDF. I chose that there would always be 4 Staves in each row, so the 2-d array was an N-by-4 matrix where 4*N is the total number of Staves. If the number of Staves isn&#8217;t divisible 4, there are &#8220;padding&#8221; Staves added to the ending so the output still looks neat.<\/p>\n<p>Once the Staves are instantiated, I iterate through the piece and write each note (only the pitches currently, as the integrator is incomplete); the row and column of the desired Stave is determined\u00a0 based on the index of the Note in the list recieved from the backend; for example, the 5th item in the list will correspond to the 2nd row, 1st Stave of the transcription.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>My schedule changed this week as after we built the Note design structures, we realized we would have to implement the integrator step of the project in the front-end instead of the back-end, as discussed in our team status report. Because of this, I couldn&#8217;t use the output of the integrator in my Vexflow code &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/course.ece.cmu.edu\/~ece500\/projects\/s23-teamd8\/2023\/03\/25\/adityas-status-report-for-3-25\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Aditya&#8217;s Status report for 3\/25&#8221;<\/span><\/a><\/p>\n","protected":false},"author":712,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[8],"tags":[4],"_links":{"self":[{"href":"https:\/\/course.ece.cmu.edu\/~ece500\/projects\/s23-teamd8\/wp-json\/wp\/v2\/posts\/209"}],"collection":[{"href":"https:\/\/course.ece.cmu.edu\/~ece500\/projects\/s23-teamd8\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/course.ece.cmu.edu\/~ece500\/projects\/s23-teamd8\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/course.ece.cmu.edu\/~ece500\/projects\/s23-teamd8\/wp-json\/wp\/v2\/users\/712"}],"replies":[{"embeddable":true,"href":"https:\/\/course.ece.cmu.edu\/~ece500\/projects\/s23-teamd8\/wp-json\/wp\/v2\/comments?post=209"}],"version-history":[{"count":1,"href":"https:\/\/course.ece.cmu.edu\/~ece500\/projects\/s23-teamd8\/wp-json\/wp\/v2\/posts\/209\/revisions"}],"predecessor-version":[{"id":210,"href":"https:\/\/course.ece.cmu.edu\/~ece500\/projects\/s23-teamd8\/wp-json\/wp\/v2\/posts\/209\/revisions\/210"}],"wp:attachment":[{"href":"https:\/\/course.ece.cmu.edu\/~ece500\/projects\/s23-teamd8\/wp-json\/wp\/v2\/media?parent=209"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/course.ece.cmu.edu\/~ece500\/projects\/s23-teamd8\/wp-json\/wp\/v2\/categories?post=209"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/course.ece.cmu.edu\/~ece500\/projects\/s23-teamd8\/wp-json\/wp\/v2\/tags?post=209"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}