Bad Diode on Nostr: Did a bit of optimization and now things are running smooth with 6 voices/grains. To ...
Did a bit of optimization and now things are running smooth with 6 voices/grains. To assist benchmark changes I added a toggleable debug screen with some collected timers.
On the PD the audio callback size seems to be 256 samples, which at 44100Hz give me a budget of 5.8ms per audio frame. I’m cutting it a bit close at the moment, but this DSP code could definitely be improved. I’m doing the entire DSP in F32 since the CPU has a nice floating point unit but I’m guessing it would still be better to work on the native S16.
#PlayDate
Published at
2026-03-31 10:00:11 UTCEvent JSON
{
"id": "fe221b384eb73b40552137f5864662229f1492426e26f58c2d2f1563ab17776b",
"pubkey": "5b62aaf10b19cfbeddb582cf04411ac0ea59208fc9d4d85f179fa7766327736d",
"created_at": 1774951211,
"kind": 1,
"tags": [
[
"imeta",
"url https://assets.merveilles.town/media_attachments/files/116/323/154/508/305/165/original/743f7b4274c3675b.jpeg",
"m image/jpeg"
],
[
"t",
"playdate"
],
[
"proxy",
"https://merveilles.town/@bd/116323202617509191",
"web"
],
[
"proxy",
"https://merveilles.town/users/bd/statuses/116323202617509191",
"activitypub"
],
[
"L",
"pink.momostr"
],
[
"l",
"pink.momostr.activitypub:https://merveilles.town/users/bd/statuses/116323202617509191",
"pink.momostr"
],
[
"-"
]
],
"content": "Did a bit of optimization and now things are running smooth with 6 voices/grains. To assist benchmark changes I added a toggleable debug screen with some collected timers.\n\nOn the PD the audio callback size seems to be 256 samples, which at 44100Hz give me a budget of 5.8ms per audio frame. I’m cutting it a bit close at the moment, but this DSP code could definitely be improved. I’m doing the entire DSP in F32 since the CPU has a nice floating point unit but I’m guessing it would still be better to work on the native S16.\n\n#PlayDate\nhttps://assets.merveilles.town/media_attachments/files/116/323/154/508/305/165/original/743f7b4274c3675b.jpeg\n",
"sig": "bb6e730be91175a629ec802b0110d904972bf3b1aa1fbdc03f2d7a471fe18d2819df376a6f2a2bda23cc6305d0c82d5eadb5c4af09394e525d4aa8d077426e21"
}