AJ | Pact | logo
PACT
Prism Fission

Prism Fission

9 September 2017

CreativePact (32 posts)

In this CreativePact, following a couple of months in the creative doldrums, I will be working to complete Prism Exhilarated, a unique media music release by ‑otron.

Geometry4U sax fail, Python tasks

22/09/17
AJ Pact | Prism Fission | Geometry4U sax fail, Python tasks

Today was intended to be the culmination of editing the Pee Wee Ellis sax material, but after a short stint synching the material to the backing track I realised that it wasn't to be. The material and the track were not going to gel.

In this case, it's really how the sax material fitted with the geometry speech blocks, given that the length of the latter's phrases vary between its options. The free-flowing nature of the recording session also contributed, as I couldn't ascertain at the time that Pee Wee's phrases were not fitting in with the backing.

And I'm ok with that, not all recordings can work and I have the flexibility to reject what I feel doesn't work. This, however, does leave a unique process gap. I'm thinking that a process based around an already existing part is the way to go, we shall see.

With some time remaining in this pact session I decided to tick off some small Python tasks, the main one being to separate my script into separate code files. This is done by creating a module locally, which is imported like a standard or third-party module.

I decided to go one step further and create my own package, which is just a collection of separate code files bundled together. The package, which I called pefuncs (Prism Exhilarated functions), at the moment contains just one code file, peae.py (Prism Exhilarated Audio Engine). In that file is all the audio unpacking and construction code I have developed thus far.

Moving that code into its own file did require a rejigging of certain variables, which were no longer in scope. The variable holding my album configuration data in particular required special attention: I ended up defining a variable in peae.py and assigning the config data to it shortly after it loads, thereby giving access to both main script file and audio engine.