Showing posts with label Export MIDI Clip. Show all posts
Showing posts with label Export MIDI Clip. Show all posts

Friday, April 28, 2023

The Technical Side of Grace Notes: Midi and the Missing Sheet Music

     Still celebrating the first brand new posting of my own piano arrangement (Stepping On The Clouds).  Part One of this "Technical Side of Grace Notes" article dealt with how I learn a new song and the process of creating the finished video and blog post.  Today we'll finish with getting the Midi file on Blogger, and acknowledging the missing sheet music.  Then, I'll have a solid reminder against the future and my failing memory.  :^)

    In the previous post, I explained how to save all three elements from Ableton.  The full SET, so I can always re-create the Midi and .wav files.  Just in case.  Plus, of course, the actual Midi and .wav files.  We already applied the .wav file to the video, for a clean audio track with no ambient noise.

    The Midi file I do for it's own sake, for those readers who want it.  Either just to play with Midi on their own setup, or to use Midi as a controllable process for learning how to play my arrangements.  If you downloaded the Midi in order to learn the song, I strongly recommend using Midiano.com as a teaching tool.  It plays my music more "true" than just about anything out there.  It has a visual keyboard you can watch to see the notes as they fall, and the ability to slow down the playback for easier learning.  Plus many other options.

    Not that I have any illusions about my skill level.  There are a ton of musicians on YouTube that put me to shame.  But as my Mom said, there are also plenty of people who are at the perfect level to learn and appreciate what I can offer.  So I don't let all those better players prevent me from putting my two cents in!  

    I'd call my complexity level simple to middling.  There are at least three sites out there that link to my playing as the ideal way to play a specific song.  One of them is even using my sheet music AND my video (it was for Amazing Grace). 
    They were kind enough to give full credit, and to rate the complexity at "Intermediate".  That's higher than I'd expect, and it's very kind of them to share my music.  It validates Mom's advice.

    The real struggle with the Midi wasn't in creating the file, but in getting it onto Blogger in a way that's easy for readers to download.  On the original Grace Notes, I was paying a... large percentage of income... to have a dedicated site to use Wordpress, which I loved.  It had a lot more versatility than Blogger.  But hosting the site got drastically more expensive every single year.  Now I use Google Blogger.  Blogger itself is free.  And a basic Google Workspace is only $12.00 per month.  I still have my custom url, Crewman6.com, and that's a low once-a-year fee.  

    To get to the point, Wordpress offers many options, and you can easily attach just about ANY kind of file for download. Blogger, oddly, only offers Video, Images, or links to other web pages.  Having other filetypes, like Midi, requires a workaround. So here's the gist of it:

    Put the Midi file in your Google Drive, give access to anybody with the link, and copy the link.  Then go to Google Drive Direct Link Generator.  Follow the instructions there to paste your link, then create a direct download link to your Google Drive file.  This is extremely important.  If you try to link to the URL generated by Google Drive, it will open an entirely new webpage, loading it in OVER your blog post.  Then it will attempt to play the midi file in your browser.  Then it will tell you the browser can't play that file, and offer to let you download the file.  THEN you can finally select to download the file.

    That's a huge pain, and the reader winds up on a completely different page, no longer on your post.  Using Google Drive Direct Link Generator is awesome, and free.  It lets you put the modified link on any text or image in your Blogger post, and anybody who clicks the link will be able to simply download the file.  I like choosing where to save downloaded files, so use the "Save As" option.  You might have your downloads default to a single directory for all downloads.  Either is fine.  The point is, the viewer easily downloads the file, without disrupting their reading.  

    Next up, those missing sheet music pages.  On the old Grace Notes blog, I used MidiSheetMusic to both play, and generate sheet music.  It did a great job, but is outdated now and doesn't work with any Midi generated by Ableton.  (Resaving from another Midi player doesn't help either.)  Now I'm in the process of finding another program that can convert Midi to Sheet music, and allow me to make image files of the sheet music.  Originally, those images were saved into .pdf files and uploaded to the blog for anybody that wanted to download.  That's still the plan, but it's been difficult to find software that does exactly what I need.

    I thought I'd solved the problem with MuseScore, which is free to download, converts Midi to sheet music, and allows printing.  Unfortunately, my play-by-ear style seems to confuse Musescore, and when it plays the music back, it completely messes up the order of notes.  Especially if they're played very close together to accentuate the melody.  You know... kind of like a "Grace Note"...  

    Not sure why it struggles with that, because it's sleek and sophisticated software that I like a lot.  Unfortunately, it's not the only one that struggles with my midi.  So far the rule is, if it understands my playing properly, it either offers no sheet music generation, or the function is only available with purchase of the full software.  All the free players that generate printable sheet music have been unable to play the files correctly.

    My favorite, Midiano, plays my stuff perfectly, but as of yet, has no option to create sheet music.  That's not really what Midiano's about, anyway.  My second favorite is a paid software called Notation Musician.  They have a free version, so I KNOW it can play my music perfectly, exactly as intended.  They also generate sheet music.  But the free version does not allow print output.  Yes, I could do screengrabs page by page, but I want to do this the right way.  I'll save up until I can buy the software properly.

    That said, it's $90.00 to purchase, and our budget is very finely balanced to buy food, fuel, pay insurance and taxes.  There's not a lot of leeway for fun things that don't 'earn their keep' monetarily.  So it may take a while to buy Notation Musician.  When I do, I'll go back to any posts as needed and add sheet music downloads.  For now, you're welcome to convert my Midi into sheet music in any way that works for you.  Again, I recommend Midiano.  It's an amazing learning tool, and one of the few players that interprets my playing exactly as intended.

And that's where I'm at, in terms of continuing on Grace Notes.  The last two 'technical' posts were intended to act as memory storage, in case I forget how to do these steps, but I published them just in case any of it might be useful to someone else.  If anybody other than my wife or my mom read these last two posts in their entirety, I'll be totally amazed.  :^D


Wednesday, April 26, 2023

The Technical Side of Grace Notes: Creating the Video and Sharing the Midi Files

     Yesterday marked a huge milestone here.  I finally posted my first brand new page of my own arrangement on piano, with a downloadable midi file of the piano arrangement.  It's been months in the process, learning and relearning all the associated elements. Writing this post is both a celebration... and my crib notes on the general process, in case I forget how to do it all again.  :^)

    I use M-Audio's Hammer 88 to play the songs.  I'm a strictly 'play-it-by-ear' type, so there's no music notation, no hours scribbling my music on notes.  Just sounding out different ways of playing, trying alternatives, and bit by bit designing an arrangement that appeals.  Once the idea is in my head, the hard part is memorizing that arrangement, and practicing until I can play the song (nearly) perfectly.  

    I'm in my 60's, and Covid really messed up my focus and comprehension.  It literally took 3 months to be ready to record.  Then stage fright kicks in.  Hours of playing/recording on Sunday.  More hours on Monday.  Tuesday I sat down, did a practice run-through, and the second attempt was as close to perfect as I'll probably ever get.  So that's the video you see.  (The song in this case is "Stepping On The Clouds.")

   Ableton Live Lite 10 came free with the Hammer 88.  So that's how I play and record the music.  Nothing fancy.  Once Ableton was installed and working, and a few technical set-up issues resolved, it was ready.  To record, I click the round "Record" button, start playing.  When I make a mistake, click "Stop", then "Play", then "Stop".  From trial and error, this activates a blue bar on the midi recording track, which I can then click to make Ableton's notation window pop open.  Click anywhere on the notation (inside the window that just popped up).  Select All (hold down CTRL and type "A".)

    Then I hit the DEL key, and for good measure, also hit the Backspace key.  Now it's a clean slate again.  Click the "Record" button again, and start playing.  Once the whole song is recorded satisfactorily, stop the recording, open the notation window and select All again.  
        {Without selecting ALL, the EXPORT features stay grayed out and don't activate.}

Then, under the FILE dropdown menu, first save the entire process as an Ableton Set (.als file).  Next, still on the File Menu, select EXPORT Midi, and save the midi version of the song.  Lastly, STILL on the File Menu, select EXPORT Audio.  I like to save the file in a ".wav" file format.  Mp3 is more popular, but Wav plays back at a constant speed.  It's not compressed so you can reliably count on the bitrate being stable.  I set it at 44000, 32-bit, and select "Normalize."  It's best if you first set your audio levels to not go over 0 decibels.  If the audio levels go into the red zone, it's set too loud.

    If it's time to record the video as well, I like to start recording, and keep playing even when I make mistakes and have to start over. (Tripod tip: Make sure you're pointing at the piano and frame the image as nicely as you can.  Don't forget to remove unsightly elements like the trash can under the keyboard...)
So, don't stop recording the video.  Keep recording nonstop, through every attempt.  There's a clear visual cue because every restart, the Ableton track needs to be stopped and reset before starting to play again.  When a good recording is achieved, upload the video to your computer.  To find the beginning in-point when editing, start at the end of the video, and scrub backwards until you come to the starting point of your perfect rendition.  Delete all the 'bad' footage in front of that, trim the end a bit if needed, to get your perfect video ready for audio.

    I use HitFilm Express to edit.  It's a free video editor, does a good job, and was easy to learn the bare minimum to create these videos.  Having already imported the video and trimmed it to just the 'good' part, now IMPORT the .wav file.  Drag it to the track just underneath the video.  You should see the video track, including the audio that recorded on the video track, PLUS the .wav audio file you just dragged under the video.

    Make sure both audio tracks are active.  Play the video, and see how close the two audio tracks are to playing in sync.  Make note of how close, which one starts first, then DRAG the .wav left or right to align with the video's audio track.  It's like lip syncing.  You may have to expand the visible track range, to give finer control over how much you move left or right.

    Do this until the Video audio track and the .wav audio are perfectly matching.  Then UNCHECK the video audio.  It's a little speaker symbol on the left.  Play the video again.  Now only the .wav audio track should be playing, and it should be perfectly synced with the fingers moving as they play the piano.
NOTE: if the .wav needs to move farther left than the video track will allow, select all and drag everything to the right to give yourself a bit of working room.

    Once the video and .wav are synced and the original video audio turned off, trim the ends again if needed. If both tracks aren't fully left-justified to the 0:00 starting point, select All and drag them to the 0:00 time marker.  Export the video as an mp4 file on your hard drive, and upload the video to YouTube.  On Blogger, it's easy to click the video button and select your YouTube video for insertion on the blog post.

I treat the audio this way to clean the original video-recorded audio.  Audio recorded directly in your video (I use my cell phone) is fuzzy, and picks up all the ambient noise.  Dogs barking, phones ringing, people talking... the .wav created from Ableton is crisp, clear, and clean of ambient noise.  It's like you recorded in a studio, with proper microphones.

This is a good stopping point.  I'll finish up in the next post.  We'll take a look at getting Midi onto Blogger in a way that's easily downloadable.

Sunday, March 5, 2023

MuseScore: Midi Import Panel Project Delayed

    "Midi Sheet Music" no longer consistently reads my newest MIDI files.  I spent several days recently searching for a replacement.  The big find was Midiano.  It shows scrolling sheet music, a piano keyboard, and both parts highlight the active notes as the MIDI file is playing.  It does the job with a LOT of bells and whistles.  That solved most of the problem.

    MUSESCORE PRINTS SHEET MUSIC... ODDLY
    The missing element was the ability to print the sheet music as .pdf files that I can share.  Of everything I tried, MuseScore was the best, but the formatting was odd.  It had clef symbols sprinkled all over the pages.  I wasn't too thrilled with the dots over the notes either, but that was small stuff.   The profusion of treble and base clefs throughout the sheets confused and annoyed me.  Not that I read sheet music... 

    Actually, I can struggle through the notes, piece by piece, but the rest of it is beyond me.  In the mid-60's, I took 3 years of first-year lessons.  Yes, that means I took the same first-year instruction three times.  Every time Dad got a new assignment, or my instructors moved, the new piano teacher insisted I start over... "to learn HER way."  By the third year, I was fed up and quit taking lessons.  Now I play by ear.

WHY CAN'T I FIND THE MIDI IMPORT PANEL?

    Anyway, spent a lot of time yesterday trying to find a better alternative.  MuseScore had the cleanest output, best-looking pages.  It imports MIDI without the sustain pedal, which is a strike against, but as far as sheet music it was the best free software out there.  Some forum conversations mentioned a "Midi Import Panel".  It's supposed to appear at the bottom of the screen, every time you open a Midi file.

    Not true.  It NEVER showed up.  Searched the context menus, the preferences, all the options I could find, nothing.  So I googled Midi Import Panel.  Long story short... it's gone.  There's are a lot of sites, even Google-recommended question/answer lists, that give instructions how to access it, and how to use it.  But they all apply to the previous version of MuseScore, not the current version.

    There's a GITHUB MU4 Task, "Restore Midi Input Panel".  It was opened on June 7, 2022, and closed on Sep 1, 2022.  The end result was to push it forward to a future revision.  The task was deemed too complex, and it was agreed that the panel would be restored in a future 4.x version of MuseScore.  As of today, March 05 2023, the panel is still not restored.

    So:      MuseScore 4 does NOT have the Midi Import Panel. 

               MuseScore 3 DOES!!!

GET 3.6.2 TO ACCESS THE IMPORT PANEL
    Those options seem kind of critical.  It's hard to understand why they simple left it out.  On the other hand, it's a very complex program, provided completely free.  I can't really complain about free.

There was another forum discussion where several people opted not to update yet.  Someone mentioned using both.  I already had version 4 installed, and tried installing version 3.  It worked just fine.  As a matter of fact, the highest revision to 3 I could find was version 3.6.2, so the link above goes to the first site I found that offered it.  Let me say it again:  MuseScore 3.6.2 DOES have the Midi Import Panel.

    It did exactly what it was supposed to.  Now I'm ecstatic.  It automatically splits my piano track into a treble and bass clef, which I like.  And it no longer has the excess clefs all over the sheets.
    One minor thing, and this is my own fault.  I use a lot of keyboard real estate.  Hit the deep low notes, and often go 2 or 3 octaves up as well.  In the sheet music, there are a LOT of lines stacked up representing how far below Middle C to play.  That's okay with me.  I hope it doesn't bother anybody who tried to play my arrangements.  With my limited understanding of sheet music, this makes more sense than having the treble and bass clefs floating all over the place.

PLAY IT LIKE YOU FEEL IT!
    Last caveat:  Professional musicians have told me, and many websites I've read also state that MIDI to sheet music conversion is error prone, and inaccurate.  As far as I can tell, it shows the notes I play, the way I play them.  Anybody advanced enough to read the notation... and anybody who loves southern gospel playing... can figure out the rest.  You just play it like you feel it.


Sunday, February 5, 2023

Ableton Live 10 Lite Export Midi Clip Grayed Out

 Ran into a new snag, and solved it, both on the same day.  That's rare enough, but in this case, after failing to find a fix with Google, I solved it accidentally.

While going through Google, found some solutions, but they must have been obsolete.  The same context menus on my window didn't have the same options.  It sort of made sense that maybe the midi track needed to be selected, but none of the section's I tried to select made a difference.  I was mainly trying to select by right-click, and then looking for the export midi option.  The context menu never changed.  The "File" menu drop-down offered "Export Midi Clip", but it was grayed out.  

Skipping a lot of in-between steps, at one point my finger twitched, the mouse happened to be gliding over the exact right location, and the entire midi track showed up on the bottom row.  After the track is visible, the main "File" dropdown menu shows"Export Midi Clip" in dark text, no longer greyed out.  I tried saving a midi file, and it worked perfectly.

So here's what's been working for me:  I play from the Hammer 88, and record in Ableton.  Or, load a "Live Set" from the hard drive.  Then I play the melody.  Not long, just enough to hear and confirm it's there.  THEN, on the column with your active voice (in my case, the MiniGrand_64), left click on the row with a "square" symbol (See images).  The song track will show up at the bottom, with the red squiggly line.  Now, you can select the drop-down menu "File", and Export to Midi will no longer be grayed out.  I'm not sure if you should select the entire track (CTRL-A) before exporting, it seems to work whether you do or not.  But it's possible selecting only a portion of the track will only export that portion as a midi file.


And... Google Drive

Kind of a side-issue here, but as long as I'm keeping a journal of my learning experiences, I finally figured out Google Drive.  It was stupidly easy, once I quit trying to overcomplicate things.

Due to audio conflicts on my desktop computer - Youtube, several games, Ableton, Windows 10 didn't want to share resources - I wound up getting a small laptop computer that was dedicated to running Ableton.  (Yay for Amazon Lightning Deals on used computers!)  While that pretty much solved the ongoing battle with audio drivers and hardware settings, it meant file transfers between computers took an extra step.  Tonight it finally hit me, no need to do anything fancy.  Don't have to 'install' anything stand-alone.  Just log in on a browser and drag files into Drive.  

Can't believe all that time I've been using USB sticks.  

Recent Posts