Unity movement and localization
fun political rock songs!
It's a good thing I didn't try to debug the non-working
localization/beeping-cube code in class. There were multiple
things I did wrong; this is what happens when you try to take shortcuts
while coding in front of a class (and not doing a very good job of it!).
I noticed that none of my RTcmix functions were working in the
'localizebeep' script. Well duh, I forgot to put this line
in the Awake() function:
RTcmix = GameObject.Find("RTcmixmain").GetComponent();
It's the line that locates the appropriate
RTcmix code so that the functions will run.
It stll wasn't running, but I noticed that I forgot to put this line:
did_start = true;
at the end of the Start() function. That's obviously needed to let Unity
know that the RTcmix code is running.
Finally, still no sound (and this one is a whopper). I forgot
to include the entire OnAudioFilterRead() function!
void OnAudioFilterRead(float[] data, int channels)
{
if (!did_start) return;
// compute sound samples
RTcmix.runRTcmix(data, objno, 1);
}
so no sound would be processed in the localizebeep script! (Also
note that the third parameter for the RTcmix.runRTcmix() function
is set to "1" instead of the default "0". This allows the
OnAudioFilterRead() function to process input sound instead of
just synthesizing an output sound.)
A link to the finished and working localization/beeping-cube
project is down below in the "Class Patches" section.
Fortunately the second half of the class was great fun.
Links to the pieces I played are below.
Links
Music Links
- Soon
-- The song with the lyrics about growing a garden, thinking of
it being perverted to the Roosevelt condo/developer situation.
- guns
-- The ultra-orthodox follies in Roosevelt.
- gods
-- Climate change, personal stuff.
- I Gotta Guitar
- paraclaus
-- You'd better watch out...
- Secret Meetings
-- More local Roosevelt politics.
- FDT
-- Yeah. These done shortly after the horrible 2016 election.
- Republicans
-- I've had enough! With a music-video, too.
- unhinged
-- What can I say? Another with a fun music video.
- Lies
-- Words by Donald Trump. Even more video-ness!
- springfield
-- What did happen to the dogs and cats of Springfield?
Class Patches