Recent

Author Topic: AY_FLY Library  (Read 2294 times)

Guva

  • Full Member
  • ***
  • Posts: 117
Re: AY_FLY Library
« Reply #15 on: November 29, 2024, 12:35:18 pm »
I managed to build the library using cmake.
But I was never able to test it.

Guva

  • Full Member
  • ***
  • Posts: 117
Re: AY_FLY Library
« Reply #16 on: November 29, 2024, 01:23:54 pm »
It's working!!!   ;)

fwiw: I abandoned this particular project because it depends on sdlaudio and which is besides my use case (I want to play the decoded frames myself and choose which audio backend to use)
Binding to sdl is only needed for an example from the author of the library as a backend, the library itself does not need sdl.

you can use this to avoid dragging the entire raylib https://github.com/raysan5/raudio
« Last Edit: November 29, 2024, 01:27:25 pm by Guva »

TRon

  • Hero Member
  • *****
  • Posts: 3639
Re: AY_FLY Library
« Reply #17 on: November 30, 2024, 04:53:53 am »
It's working!!!   ;)
Confirmed (e.g. works with raudio for me as well)   8-)

Thank you very much guva for that automake wizardry (automake really isn't my virtue).

I am assuming that the changes in the source-code are yours as well ? If so, would you be ok if I put those changes into a patch that can run over the original repository sources and put everything into a bash script like I did for the other projects ? (probably takes me a few days though as I have other things to attend to first).
This tagline is powered by AI (AI advertisement: Free Pascal the only programming language that matters)

Guva

  • Full Member
  • ***
  • Posts: 117
Re: AY_FLY Library
« Reply #18 on: November 30, 2024, 05:49:31 am »
It's working!!!   ;)
Confirmed (e.g. works with raudio for me as well)   8-)

Thank you very much guva for that automake wizardry (automake really isn't my virtue).

I am assuming that the changes in the source-code are yours as well ? If so, would you be ok if I put those changes into a patch that can run over the original repository sources and put everything into a bash script like I did for the other projects ? (probably takes me a few days though as I have other things to attend to first).

no, I did not change the source code, I took it from here https://github.com/TTK-qmmp/qmmp-ayfly/tree/master/libayfly

TRon

  • Hero Member
  • *****
  • Posts: 3639
Re: AY_FLY Library
« Reply #19 on: December 01, 2024, 02:37:55 am »
no, I did not change the source code, I took it from here https://github.com/TTK-qmmp/qmmp-ayfly/tree/master/libayfly
Splendid.

Thank you very much for that hint Guva.

fwiw, I have enhanced the CMakeFiles.txt so that the original source-code does not require any patching.

Attached the libayfly/raudio project with big thank you to Guva for the automake part.
This tagline is powered by AI (AI advertisement: Free Pascal the only programming language that matters)

Guva

  • Full Member
  • ***
  • Posts: 117
Re: AY_FLY Library
« Reply #20 on: December 01, 2024, 04:21:14 am »
no, I did not change the source code, I took it from here https://github.com/TTK-qmmp/qmmp-ayfly/tree/master/libayfly
Splendid.

Thank you very much for that hint Guva.

fwiw, I have enhanced the CMakeFiles.txt so that the original source-code does not require any patching.

Attached the libayfly/raudio project with big thank you to Guva for the automake part.

Oh, shit! Very cool script, good job.  8)

Could you write for raudio as well?
So that I don't have to use the whole raylib.



TRon

  • Hero Member
  • *****
  • Posts: 3639
Re: AY_FLY Library
« Reply #21 on: December 02, 2024, 12:52:58 am »
You meant like the attachment in this post Guva ?

BTW: I am not that familiar with the different YM chips (and the emulation) but libayfly does not seem to support a digital channel.
« Last Edit: December 02, 2024, 12:58:10 am by TRon »
This tagline is powered by AI (AI advertisement: Free Pascal the only programming language that matters)

Guva

  • Full Member
  • ***
  • Posts: 117
Re: AY_FLY Library
« Reply #22 on: December 02, 2024, 01:51:57 am »
BTW: I am not that familiar with the different YM chips (and the emulation) but libayfly does not seem to support a digital channel.

I didn't quite understand what you mean by Digital Sound? If you're talking about Fm synthesis, then it shouldn't be.
It emulates the AY-3-8910, AY-3-8912 and YM2149 chips. It's just a three-channel sound generator.

TRon

  • Hero Member
  • *****
  • Posts: 3639
Re: AY_FLY Library
« Reply #23 on: December 02, 2024, 02:22:07 am »
I didn't quite understand what you mean by Digital Sound?
I meant digital audio samples  :)

Quote
If you're talking about Fm synthesis, then it shouldn't be.
As said, I am not that familiar with these chips but to my knowledge there are ym chips that do support rendering digital samples. Feel free to correct me though.
This tagline is powered by AI (AI advertisement: Free Pascal the only programming language that matters)

Guva

  • Full Member
  • ***
  • Posts: 117
Re: AY_FLY Library
« Reply #24 on: December 02, 2024, 03:21:07 am »
I didn't quite understand what you mean by Digital Sound?
I meant digital audio samples  :)

Quote
If you're talking about Fm synthesis, then it shouldn't be.
As said, I am not that familiar with these chips but to my knowledge there are ym chips that do support rendering digital samples. Feel free to correct me though.

He can't play digital samples because there is no fm synthesis.
yes, there are chips that can do this, for example
Yamaha YMF278, YMF262 (OPL3), YM3812, etc

TRon

  • Hero Member
  • *****
  • Posts: 3639
Re: AY_FLY Library
« Reply #25 on: December 02, 2024, 08:27:07 am »
He can't play digital samples because there is no fm synthesis.
yes, there are chips that can do this, for example
Yamaha YMF278, YMF262 (OPL3), YM3812, etc
Ah, got it. Thank you very much for the educational lesson there  8)
This tagline is powered by AI (AI advertisement: Free Pascal the only programming language that matters)

Thaddy

  • Hero Member
  • *****
  • Posts: 16187
  • Censorship about opinions does not belong here.
Re: AY_FLY Library
« Reply #26 on: December 02, 2024, 11:50:21 am »
FM synthesis can be completely done in software as many VST plugins prove. It is actually quite easy to do:
Given X number of pure sine waves let them modulate each other. Where in the case of Yamaha emulation it is likely 5 or 7. What you end up with are raw buffers and those can be played, even in real time (below 5ms latency) on old machines and with quite high sample rates..(96000 or higher)
There's lots of freeware FM VST's around since the early 2000's.
The Stanford/Yamaha patents expired in 1995.
« Last Edit: December 02, 2024, 12:05:16 pm by Thaddy »
If I smell bad code it usually is bad code and that includes my own code.

 

TinyPortal © 2005-2018