Java-Gaming.org Hi !
Featured games (90)
games approved by the League of Dukes
Games in Showcase (769)
Games in Android Showcase (230)
games submitted by our members
Games in WIP (856)
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 1520 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 https://youtu.be/3cQ-8wZwsmY?t=21m53s

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: http://adonax.com
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: http://adonax.com
Pages: [1]
  ignore  |  Print  
 
 

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

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

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

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

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

nelsongames (1709 views)
2018-04-24 18:14:32

ivj94 (2533 views)
2018-03-24 14:47:39

ivj94 (1758 views)
2018-03-24 14:46:31

ivj94 (2836 views)
2018-03-24 14:43:53

Solater (971 views)
2018-03-17 05:04:08
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

Deployment and Packaging
by philfrei
2018-08-19 23:54:46
java-gaming.org 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‑gaming.org
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!