How to use GitHub to host music and sfx

Find detailed help from the AAO community, or write your own tutorials.

Moderator: EN - Forum Moderators

User avatar
Starora
Posts: 128
Joined: Fri Sep 22, 2017 11:22 pm
Spoken languages: English

Re: How to use GitHub to host music and sfx

Post by Starora »

This is a very useful guide, but may need updating due to a couple of small changes to Github.
I'll post my findings here in case anyone is looking for some answers, because it took quite a few days, and a lot of experimenting for me to figure this stuff out for myself (particularly the second bit).

Firstly, the sync button appears to now be called "Fetch Origin", which ought to be pointed out, as it is really not very obvious if you are trying to get GitHub to work for the first time.
Spoiler : Here's an image highlighting where the sync/Fetch Origin button is located on the desktop app. :
Image
Secondly, the example URLs are now incorrect.
The URL required for the trial editor now follows the format https:// github.com/<username>/<repository name>.github.io/raw/main/<filename>.<filetype> (ignoring the <, >, and that one space after the https://, which I had to add to stop it from automatically turning itself into a hyperlink), thus, following the example in the original post (assuming that the judge has given his repository the same name as his username, as specified in the tutorial), the first example would become https:// github.com/udgey/udgey.github.io/raw/main/Courtroom Lobby.mp3 -- which is rather a long URL, and becomes even longer if your file name is complicated...
...But it just so happens that there is a trick to automatically getting the URL without too much trouble! Just go onto GitHub on your browser, and get up the information page about the file which you want to get the URL for - it should look like the image below:
Spoiler : :
Image
See the "Download" button which I have conveniently highlighted in green? Just right-click it, and select "Copy Link" -- it'll give you the exact link you need, which you can paste wherever it is needed! Easy! (And you no longer need easy-to-remember file names!)

I hope that this helps!
Image
Image
Rhenium186
Posts: 7
Joined: Wed Jan 20, 2016 9:37 pm
Gender: Male
Spoken languages: English

Re: How to use GitHub to host music and sfx

Post by Rhenium186 »

Hello,

Does the part about username matching the Github username refer to music alone or all aspects of getting data from Github? And does it mean getting data from desktop to one’s Github page, or from one’s Github page to the trial. Reason being I can get an image from Github in a trial (I usually use Imgur for this, here it is just for testing purposes), but I have trouble with music.

I can copy the link and put it into the browser, getting the music opened/downloaded. But when I put the link into the music or sound portions of trial editor, it doesn’t play, either in the trial editor or during playtest.

Actually, I am not sure if it’s the username that’s making the problem or if it is something else.
123fendas
Posts: 305
Joined: Sat Mar 07, 2015 12:02 pm
Gender: Male
Spoken languages: Svenska, English
Location: Sweden
Contact:

Re: How to use GitHub to host music and sfx

Post by 123fendas »

Rhenium186 wrote: Sun Jan 30, 2022 3:02 pmDoes the part about username matching the Github username refer to music alone or all aspects of getting data from Github?
All aspects
Rhenium186 wrote: Sun Jan 30, 2022 3:02 pmAnd does it mean getting data from desktop to one’s Github page, or from one’s Github page to the trial.
from desktop to one’s Github page
Rhenium186 wrote: Sun Jan 30, 2022 3:02 pmI can copy the link and put it into the browser, getting the music opened/downloaded. But when I put the link into the music or sound portions of trial editor, it doesn’t play, either in the trial editor or during playtest.
That, I can't explain
Rhenium186
Posts: 7
Joined: Wed Jan 20, 2016 9:37 pm
Gender: Male
Spoken languages: English

Re: How to use GitHub to host music and sfx

Post by Rhenium186 »

Did I make a mistake in the editor rather than GitHub? The values for track volume, loop start time and sound volume are currently at their default values (100, 0, 100).
I have tried changing loop start time value, to for example, 10000 and 30000, but it didn’t seem to make a difference.

Here are several Imgur images showing the trial editor and one showing GitHub. Links I used as well as description what I can hear while playtesting are written on them.
https://imgur.com/a/jx8NwH2
123fendas
Posts: 305
Joined: Sat Mar 07, 2015 12:02 pm
Gender: Male
Spoken languages: Svenska, English
Location: Sweden
Contact:

Re: How to use GitHub to host music and sfx

Post by 123fendas »

Rhenium186 wrote: Mon Jan 31, 2022 7:44 pm Did I make a mistake in the editor rather than GitHub? The values for track volume, loop start time and sound volume are currently at their default values (100, 0, 100).
I have tried changing loop start time value, to for example, 10000 and 30000, but it didn’t seem to make a difference.

Here are several Imgur images showing the trial editor and one showing GitHub. Links I used as well as description what I can hear while playtesting are written on them.
https://imgur.com/a/jx8NwH2
Don't use links like "https://github.com/Rhenium186/Rhenium18 ... 20test.mp3". Use links like "https://rhenium186.github.io/second%20test.mp3".

Weird that that image link works, though.
Rhenium186
Posts: 7
Joined: Wed Jan 20, 2016 9:37 pm
Gender: Male
Spoken languages: English

Re: How to use GitHub to host music and sfx

Post by Rhenium186 »

The music is now working correctly. I was using the wrong link(s), just like you said.

Thank you for your help.
Post Reply