Hi !
Featured games (90)
games approved by the League of Dukes
Games in Showcase (788)
Games in Android Showcase (234)
games submitted by our members
Games in WIP (860)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  Any Java FM Synthesis libraries?  (Read 2421 times)
0 Members and 1 Guest are viewing this topic.
Offline andreja6

Junior Newbie

« Posted 2018-05-16 06:39:05 »

I have been working on a game which saves all level info into a GZipped level file (through implementing Serializable).
Its been working well, but i wanted to add some Background Music.
I originally tried using WAV's, but the file size was way too big for it to be at all feasible
I am currently working on MOD support, but I would LOVE the option to make FM Synthesis (Like on the Sega Genesis) through software. CPU's have gone a long way since they were 7 MHz, so I am wondering if there is library that can do this?
Offline nsigma
« Reply #1 - Posted 2018-05-16 17:48:11 »

JSyn, Beads, Minim, a few things on here by philfrei, and the audio engine inside PraxisLIVE all come to mind!  Cheesy  For the PraxisLIVE engine, there's a bit playing around with FM here

Praxis LIVE - hybrid visual IDE for (live) creative coding
Offline philfrei
« Reply #2 - Posted 2018-05-16 18:55:35 »

Are you hoping to use the Java Sequencer and have it play using the FM synthesizers that are on sound cards (or maybe they are standard now on OS)? That would make most sense, but I haven't really investigated that option very deeply.

What I've done was to write a custom FM synthesizer and event system that generates the audio on the fly. But the library is pretty gnarly to use, and I haven't put enough time into creating a way to import MIDI and run it with my event system. (On a wish list of projects to get to.) The concept I have is to write pieces on my DAW using NativeInstruments FM7 (now 8?), then import and play back via the parallel patches I created within Java. (I've got about 3 dozen of my patches recreated, so far, that are also on the FM7 and my DX7S.)

Probably too grandiose a vision. Was originally thinking, though, that this could be a respectable path to creating very lightweight scores that also allow dynamic response to game state. As long as mixes are under a few dozen synth parts at any moment, it doesn't seem to be too big a drag on cpu (over playing multiple SF/X and score). (Does anyone else think this would be a worthwhile tool to follow through with building? Collaborators?)

Anyway, that is what I am up to. You can hear some sounds that I've enabled in a game I never finished, Hexara (sound track is an ambient generated atmosphere, not a song), and this proof-of-concept app live-mixes various sequencer motifs: Circle-Sound. Oh, the real time response is also shown off in the Java theremin which uses an FM synthesis algo to generate the sounds.

music and music apps:
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline philfrei
« Reply #3 - Posted 2018-05-17 19:10:03 »

I should have started with a link to what Java includes in its api for sequencers! (instead of assuming you already knew about it)

Here is the start of a pretty good tutorial on the javax.sound.midi library. I'm guessing that the instructions for accessing a client's built in FM sounds would be embedded in here somewhere. Also, I recall there were instructions as to creating a custom bank of sounds and using them.

music and music apps:
Pages: [1]
  ignore  |  Print  

hadezbladez (2127 views)
2018-11-16 13:46:03

hadezbladez (807 views)
2018-11-16 13:41:33

hadezbladez (2099 views)
2018-11-16 13:35:35

hadezbladez (416 views)
2018-11-16 13:32:03

EgonOlsen (3451 views)
2018-06-10 19:43:48

EgonOlsen (3680 views)
2018-06-10 19:43:44

EgonOlsen (2272 views)
2018-06-10 19:43:20

DesertCoockie (3002 views)
2018-05-13 18:23:11

nelsongames (3072 views)
2018-04-24 18:15:36

nelsongames (3852 views)
2018-04-24 18:14:32
Deployment and Packaging
by philfrei
2019-02-17 20:25:53

Deployment and Packaging
by mudlee
2018-08-22 18:09:50

Java Gaming Resources
by gouessej
2018-08-22 08:19:41

Deployment and Packaging
by gouessej
2018-08-22 08:04:08

Deployment and Packaging
by gouessej
2018-08-22 08:03:45

Deployment and Packaging
by philfrei
2018-08-20 02:33:38

Deployment and Packaging
by philfrei
2018-08-20 02:29:55

Deployment and Packaging
by philfrei
2018-08-19 23:56:20 is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!