Skip to content

Category: Programming

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

Chapbooks, Chapbooks, Chapbooks

I have a lot of ideas rolling around in my head regarding chapbooks; some involving speculative poetry and some not.

I’ve recently completed a project whereby I used ChatGPT to generate poems based on weather data for random American cities, so it would make perfect sense to have the next chapbook use that project as a starting point.

It really wouldn’t be hard to pick either a specific state and compose a predetermined number of poems based on a single day’s weather within that state.

Or I could focus on a single city and create a chapbook based on a 14-day weather forecast. This approach would allow for a deeper exploration of a city’s weather patterns over time.

Either these projects would basically be looking at these places as if they were under an x-ray light, missing large amounts of detail we normally take for granted, but capturing glimpses of patterns that would not be seen any other way—at least that’s the hope.

Either option would start with a raw set of poems to work with within a week or two. What will take longer, though, will be putting together an editing process that gives me more control over the finished pieces. I want the chapbook(s) to serve as proofs-of-concept, demonstrating the combination of artificial intelligence and human creativity to enhance and inspire the artistic process.

The heart in the iron…
(composed by me with AI using an Allpoetry account devoted to such experiments)

Moreover, I envision incorporating multiple media into the chapbook to complement the poems:

  • Photographs and videos (real and surreal)
  • soundscapes
  • spoken text. etc.

I would also explore the possibility of adding interactive elements, such as QR codes that link to multimedia to the poems, giving them literally more dimensions.

Who knows – maybe this will captivate someone’s imagination by inviting readers to engage with weather and poetry and technology in a new and profound way.

Alrighty then…enough dreaming. Time to get to doing.

Comments closed

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