Site updates: printing and linking tune settings

Site updates: printing and linking tune settings

I’ve made a few subtle changes over in the tunes section that you might have noticed…

First of all, if you’ve ever used the "print" button on a tune setting, you’ll have experienced frustration with long settings: bits of the sheetmusic getting cut off. It was a problem printing tune sets too.

Well, no more! Now tune settings will print nicely even if the music wraps over more than one page. Give it a go and see.

(I can’t take any credit for this improvement. It’s all down to an option in the amazing ABCJS software that The Session uses to convert ABC to sheet music—each line of ABC notation can generate a separate sheet music image. Thank you, Paul Rosen and Gregory Dyke! https://www.abcjs.net/)

While you’re looking at individual tune settings, there’s something else you might see. Each setting has a number on the right hand side of the tabs to indicate which tune setting you’re looking at. The new addition is that now some of these numbers will be links.

If the tune setting number is a link, clicking it will take you to the associated comment by the person who added that setting.

You can see this in action on the page for the Galway Bay hornpipe:
https://thesession.org/tunes/3453

Here’s the second setting:
https://thesession.org/tunes/3453#setting16490

The number "2" on the right hand side of the tabs for that setting links to this comment:
https://thesession.org/tunes/3453#comment195352

(The title of the comment also links back to the associated tune setting.)

Or here’s the sixth setting:
https://thesession.org/tunes/3453#setting34166
…which links to this comment:
https://thesession.org/tunes/3453#comment861823

Seventh setting:
https://thesession.org/tunes/3453#setting36977
…links to this comment:
https://thesession.org/tunes/3453#comment887604

You get the idea.

Not every setting will link to an associated comment (either because there isn’t an associated comment or the association can’t be programmatically determined) but on any tune with quite a few settings, you can expect about half of the settings to have links to associated comments (and visa-versa).

Like I said, it’s a fairly subtle addition but I hope it will help to (literally) make more connections between settings and comments.

Posted by .

Re: Site updates: printing and linking tune settings

Good stuff, Jeremy, thanks!

Re: Site updates: printing and linking tune settings

Thanks, Jeremy. You read my mind. I was going to post a thread at some point asking if there was a way to connect tune settings with their comments (if they had any), as not being able to do that easily was driving me a bit nuts.

Re: Site updates: printing and linking tune settings

Am I right in thinking it’s matching the submitter to the comment and if there is more than one comment (or setting) from the same person, the logic cannot resolve it?

Re: Site updates: printing and linking tune settings

Not quite, Edgar. It’s matching the submitter to the comment but also looking at *when* both were posted: if all of that matches, then there’s a link. So it’s fine if there are multiple comments by the same person: only the one that was added at the same time as a setting will be linked up.

Posted by .

Re: Site updates: printing and linking tune settings

Thanks Jeremy. The setting to comment link is great.

Re: Site updates: printing and linking tune settings

Thanks for the useful features Jeremy.

Posted by .

Re: Site updates: printing and linking tune settings

Great idea, Jeremy—-even if you consider it a simple fix! Have been chasing back and forth among tune settings and comments for years, and now, voila—-will be very helpful. Thanks!

Re: Site updates: printing and linking tune settings

The printing of long sets is great
Thanks

Re: Site updates: printing and linking tune settings

Thank you, Jeremy!

Re: Site updates: printing and linking tune settings

Oh, there’s one other change to the site I’ve made recently that I almost forgot about…

Ever had the frustrating experience of typing a long comment into the comment form here on The Session, only to lose the contents for some reason? Maybe your internet goes down or you accidentally close the browser window.

Well now, your draft should be saved for you!

Try it here. Start typing something into the comment form and then navigate away from this page—click around elsewhere on the site or close this browser tab. When you come back to this page, your words should be waiting for you in the comment form. They only get removed when you submit the comment.

Note that this is using your browser’s local storage so nothing is sent to The Session until you actually hit submit.

Hope that’s useful!

Posted by .

Re: Site updates: printing and linking tune settings

Another nice fix, thanks Jeremy!

Re: Site updates: printing and linking tune settings

Nice fixes!
You also made all the loading icons for things like “Bookmark” and “Post” black instead of blue 🙂