Skip to content

Category: Programming

Posts dealing with the intersection of programming and music or poetry.

NaPoGenMo 2024: Final Notes

So…very late, but I got something out there. I made heavy use of Microsoft Azure components like Logic Apps, Azure Functions, and Storage Accounts. And I got to use a lot of Python.

In the end, I put together something that generates – or attempts to generate – a poem three times a day, based on the weather from a random US city and state. The github repo only contains the python code along with a couple of unfinished sections.

There’s more that I would like to do, like automatically upload to YouTube, but for now I’m going to call this “good enough”.

My wife did offer some possible uses of the code as it stands: I could create generate poems for all the cities in one state and make that an audiobook. Or take one city and create a month’s worth of poems. Might just try that, as that takes little effort.

Anyway, I hope someone finds this interesting/useful:
https://github.com/bohara2000/NaPoGenMo2024-PoeticDigestiveSystem

Comments closed

NaPoGenMo commit: May 5, 2024 at 10:18PM

Massive number of changes made to this idea – and it’s not totally done. Lots of Azure components aren’t included. Will discuss at a later time.
By Bryant O’Hara
May 5, 2024 at 10:18PM
via GitHub https://ift.tt/AauDtgE

Comments closed

NaPoGenMo commit: April 13, 2024 at 09:36PM

All components: Changed app settings key for storage connection
DataFetcher – added POST method to route decorator and mimetype to response
VideoProducer – changed default width and height

Added a UI component – which is making me rethink the whole architecture.
By Bryant O’Hara
April 13, 2024 at 09:36PM
via GitHub https://ift.tt/Ssm4OxW

Comments closed

NaPoGenMo commit: April 12, 2024 at 10:04AM

I’m rethinking the architecture a bit. Calls to DataFetcher to retrieve audio get saved to its local directory before being uploaded to azure blob storage. This seems like too much travel across the network, so I’m creating the audio from VideoProducer. Files will be saved to the local directory, and after video rendering, they will be deleted.
By Bryant O’Hara
April 12, 2024 at 10:04AM
via GitHub https://ift.tt/ZUuSOqC

Comments closed

NaPoGenMo commit: April 11, 2024 at 10:40AM

Updated DataFetcher function app to query Freesound.org and OpenWeatherMap.

DataFetcher can now upload retrieved Freesound file to blob storage with filename of {guid}.mp3.
By Bryant O’Hara
April 11, 2024 at 10:40AM
via GitHub https://ift.tt/kLBsX39

Comments closed