LuisMayo / objection_engine

Library that turns comment chains into ace attorney scenes, used in several bots
MIT License
107 stars 20 forks source link

More music to choose from #95

Open Meorge opened 2 years ago

Meorge commented 2 years ago

In addition to the "Trial" and "Pursuit" tracks, I thought it might be nice to potentially have cross-examination and objection themes play. My branch cross-examination-music currently has:

as "relaxed" tracks (that play at the beginning of a clip), and

as "tense" tracks that start playing after an Objection.

This is sample output from it, showcasing the different themes:

https://user-images.githubusercontent.com/9957987/201011340-2d062f61-31d9-4eca-bf9e-57fa4008d1a6.mp4

Unfortunately, right now it switches the "tense" track every time there's an Objection... that's (probably) something I'd need to fix, because otherwise in a heated conversation it might keep switching between tracks really quickly. Shouldn't be too hard of a fix, though - probably just has to do with reworking how the if last_audio != new_audio logic around line 550 of anim.py works a little bit.

LuisMayo commented 2 years ago

That could bring more variety. I understand your intention is to keep the same music flow as before, isn't it?

It starts on relaxed, it goes to pursuit/cornered/action music and there is no coming back then. Or were you thinking about like a 2 layer objection system where there is a "cornered" track and a "more cornered" one? :P

I agree that the re-starting music issue should be fixed. As you suggested that line may be the culprit, it shouldn't be too hard to do it

Meorge commented 2 years ago

That could bring more variety. I understand your intention is to keep the same music flow as before, isn't it?

It starts on relaxed, it goes to pursuit/cornered/action music and there is no coming back then. Or were you thinking about like a 2 layer objection system where there is a "cornered" track and a "more cornered" one? :P

Yes, for now I was thinking it'd be best to keep the same music flow (a "relaxed" phase and then a "cornered" phase), but where the actual track played for each could be a random choice. It'd be really neat if we could figure out an algorithm for changing the music appropriately more, but it's something I've been thinking about for a while and I haven't been able to come up with a good method.

I agree that the re-starting music issue should be fixed. As you suggested that line may be the culprit, it shouldn't be too hard to do it

I'll try to get that fixed today!