Tumgik
#audio loop
Unmute the loop!
216 notes · View notes
judacris · 1 year
Text
DANCE MODE FOREVER.
24 notes · View notes
bbsprint · 5 months
Text
DEV01: New Music Track System
i'm not very good at audio. i can't make music and my sound design is mid-ish at best (maybe). this also applies to the low level portions of working with audio: me and waveforms don't get along so well
so could you imagine the face i had when the moment came where i wanted to add proper introlooping to the tracks in the game?
i'm using unity's audio system, which means the most i can do is limited by its boundaries. i could have used fmod as it is amazing from all the things i've read and heard. fmod studio looks awesome. but there are chances that i would need to rework how absolutely everything worked in the audio side and i didn't want to spend too much time doing that (remember: my current next milestone is nano plus! it's meant to be quicker!). as a matter of fact, i probably wouldn't later in development because i am content with a solution i came up while digging how some people looped their tracks seamlessly.
Tumblr media
there's this Unity addon called IntroLoop. i originally was going to use it for the game, but the way it stored metadata and how it worked with its player could pose a problem and, again, i did not want to rewrite too much to implement this particular bit, as well as some opinionated ways-of-working a friend had warned me about from using it. not that it's bad, it just probably would've been kind of a pain
IntroLoop uses somewhat low-level components of the Unity audio engine to make sure the audio loops properly, such as directly reading from dsptime and scheduling sound plays. it works very well from prior experience. however they do say webgl has issues with it because of course, webgl is very unstable of a platform for unity and precision anything after all. (partially a joke. but there's so many unsupported things in webgl that it's crazy)
my approach uses something different based on how i've seen other people handle seamless loops. one person in unity answers had come up with the solution of using two tracks with a little bit of overlap between them so when changing the audioclip and the position of the sound the loop would sound seamless.
i thought that using two tracks was kind of wasteful, so i went and added 3-4 seconds of the loop's start to the tracks of the game that had an introless loop. below is an approximate of where the loop ends and the trailing bit for the next loop to start
Tumblr media
i then take the desired loop end's samples (original end length), store them in notepad, paste the loop's tail, and put it in a new track metadata class that incorporates all metadata i want for the track in one place, like name, album cover, description, attributable link, and now loop start and end samples
Tumblr media
no spoilers! this is a new track. the metadata still needs some polish.
with this approach, when the playhead's sample position exceeds the sample end, i just subtract its position by the length of the looping section and with the little bit of leeway given by the extra seconds any delay will be compensated for with the builtin overlap, and sounds very good (as in, PERFECT) for my purposes.
you probably noticed i'm saying samples instead of seconds of time. i wanted the loop to have zero cracks or pops when using this overlap mechanism, and i am afraid of floating points for many reasons. it just so happens the song time variable from the AudioSource in Unity has its timer in seconds, stored as a floating point value. these fears got me scared enough to instead choose what i consider a more reliable way of counting time in audio: samples.
all songs in bbsprint, ingame at least, are locked at a 44.1k Hz sample rate. if any song happens to be higher Hz than that, i will override it. it saves space and for the game it doesn't have to be that high quality; leave that for the OST release, but more importantly it allows this system to work with all tracks
it is also worth mentioning that this method probably disallows an OUTROloop (as in, letting the audio play, no loop, and having it end gracefully!) depending on how some tracks are structured, maybe you'd have to make the looping tail a section way too long so it's still structurally sound to achieve the effect.
i also have not tried testing whether the audio actually works well with this compensation in webgl, which is the most finnicky of all the build targets i have available.
however, this works for me and i am glad it does as well as it does, at least in desktop being profiled thru the unity editor, which... yeah, let's say that it adds quite the overhead compared to a standalone build (which gives me strong hope).
2 notes · View notes
Video
youtube
11 notes · View notes
Text
My boss fell asleep with her phone playing a tiktok on loop in her hand, and this is my personal hell. It's a 3 second loop of a bass drop followed by squeaking metal like a rusty chair, I have no idea what it's for and I can't turn it off without waking her up and getting yelled at. I'm ready to chew both my arms off, and I'm not even physically stuck here.
7 notes · View notes
hiratelier · 5 months
Text
Tumblr media
MMMMM energon nugget
'scuse my handwriting; I tried to make it look neat haha
2K notes · View notes
burstfoot · 7 days
Text
Tumblr media
(credit to @towerofrabble for the original joke)
Tumblr media
385 notes · View notes
hypno-hues · 14 days
Text
Blank
Make yourself comfortable, and put on some quality headphones. Because you might be here a while.
Full HD version: Patreon
286 notes · View notes
horsegirlrehab · 5 days
Text
youtube
Tumblr media
270 notes · View notes
dailyloopdeloop · 16 days
Text
Tumblr media
DAY 20: go kitty go!
239 notes · View notes
Note
I hope you know that you have the BEST laughingstock content, boss
Tumblr media
THANK YOU have some more <3
Tumblr media
474 notes · View notes
upon-the-snow · 7 months
Text
Tumblr media
this scene made me feel shrimp emotions so here
496 notes · View notes
humming-fly · 11 months
Audio
Tumblr media Tumblr media
Hey Ace good news this has filled me with such violent wanderlust that I couldn’t sleep until I finished this gif to pair with it thanks for the recc
728 notes · View notes
Video
youtube
4 notes · View notes
mintygreencake · 10 days
Text
I will never not cackle about the fact that Vega got bodied so bad the mf got a factory reset. Been waiting on his downfall, mhm, now what you gonna do mister windows 95?
Tumblr media
97 notes · View notes
Text
Tumblr media
XII - THE HANGED MAN
60 notes · View notes