new samples - midi

Working on a theme for LMMS? Post progress and get feedback.
can you add midi samples to new lmms version?

my programm
https://djdnkey.blogspot.com/2018/11/mi ... ator.html
samples
https://djdnkey.blogspot.com/2019/01/mi ... mples.html

Code: Select all

public class Player {
   private MidiChannel[] channels = null;
    private Synthesizer synth = null;

    public Player() {
        try {
            synth = MidiSystem.getSynthesizer();
            synth.open();
            channels = synth.getChannels();
        } catch (MidiUnavailableException ex) {
            Logger.getLogger(Player.class.getName()).log(Level.SEVERE, null, ex);
        }
    }

    public void close() {
        synth.close();
    }

    public void playSound(int instrument, int note,int vol) {
        channels[0].programChange(instrument);

        
        channels[0].noteOn(note, vol);
        
        try {
            Thread.sleep(50 * 10);
        } catch (InterruptedException ex) {
            Logger.getLogger(Player.class.getName()).log(Level.SEVERE, null, ex);
        }
        
        channels[0].noteOff(note);
        
    }
}


padaboo wrote:
Wed Jan 09, 2019 9:58 am
can you add "midi samples" to new lmms version?
No, the codebase of LMMS is c++. It is not possible to add JAVA to the program. Also, if you want to participate with code, you need to get your own repository, and you can read all about connecting to the system here:
https://github.com/LMMS/lmms/wiki

Who is online

In total there are 2 users online :: 0 registered, 0 hidden and 2 guests (based on users active over the past 5 minutes)
Most users ever online was 173 on Fri Apr 19, 2019 11:04 am

Users browsing this forum: No registered users and 2 guests