• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

Playing created midi sounds simultaneously

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have a problem and I hope to get here an answer. I want to create many midi sounds without saving them on the client pc, because this should work in an Applet. The creating sound part isn't the problem, the problem is to play these sound simultaneously. I searched now more than 3 days for an asnwer, but couldn't find one that helped me.

Here is what i have at the moment:
My Sound (found part of it in an open-spurce project):


This is where i create my sound:


Here my Temporary Main class:


I thought about Threads but I don't think if I have 20-30++ Thread, that won't be simultaneously and the perfomance wouldn't be that good. I saw examples were they played sounds simultaneously, but then they loaded the sounds from a file and when I tried it with midi it didn't work.
 
After some pecan pie, you might want to cleanse your palatte with this tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic