PLAY et STOP " Midi Player 1 "
-
how to integrate PLAY and STOP into the interface for the midi player?
-
@d-healey could you help me please?
-
@tsempire I've never used the MIDI player and don't know much about it. I can see in the API browser there is a play and a stop function, so I suggest starting there.
-
@d-healey how to call with play?
I create a button in the interface?
-
@tsempire Yeah if you want to use a button then use a button.
-
now I don't know how to interact with the Play du Midi
-
@tsempire said in PLAY et STOP " Midi Player 1 ":
now I don't know how to interact with the Play du Midi
You need a reference to the MIDI player. In your button callback you can call the play function on that reference and pass in the timestamp.
-
@d-healey who means I have to copy and paste this into onInit ?
const var MIDIPlayer1 = Synth.getMidiProcessor("MIDI Player1");
-
@tsempire You probably want this one
-
@d-healey I think, so I have to put or “getMidiPlayer”?
-
@tsempire I don't quite understand the question.
-
@d-healey I have to put or getMidiPlayer ?
-
@tsempire That's the same question :)
Instead of
const var MIDIPlayer1 = Synth.getMidiProcessor("MIDI Player1");
I think* you need
const var MIDIPlayer1 = Synth.getMidiPlayer("MIDI Player1");
-
@d-healey sorry with my english with google translate :-S
So I did what I suggested, it made me wrong?
-
-
@tsempire That error is telling you that you are a missing semi-colon
;
-
This post is deleted! -
@d-healey campris ); or I missed it :-)
now when I press the Play button the midi doesn't start?
-
@tsempire I think you need to start with something simpler. There are basic concepts that you are missing.
-
@d-healey thank you very much, I succeeded with the help of an external friend.
I've been using HISE for 3 days now and I think I've learned a lot without knowing anything about coding.
in my opinion you should give the codes to understand the logic for people like me who don't understand.
thank you for the help