Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #36731 > unrolled thread
| Started by | Jonas Thörnvall <jonas.thornvall@gmail.com> |
|---|---|
| First post | 2019-06-01 11:27 -0700 |
| Last post | 2019-06-02 04:37 -0700 |
| Articles | 9 — 2 participants |
Back to article view | Back to comp.lang.javascript
Javascript midiAPI sysEx message Jonas Thörnvall <jonas.thornvall@gmail.com> - 2019-06-01 11:27 -0700
Re: Javascript midiAPI sysEx message Jonas Thörnvall <jonas.thornvall@gmail.com> - 2019-06-01 14:04 -0700
Re: Javascript midiAPI sysEx message Jonas Thörnvall <jonas.thornvall@gmail.com> - 2019-06-01 14:18 -0700
Re: Javascript midiAPI sysEx message Jonas Thörnvall <jonas.thornvall@gmail.com> - 2019-06-01 15:02 -0700
Re: Javascript midiAPI sysEx message Jonas Thörnvall <jonas.thornvall@gmail.com> - 2019-06-01 15:03 -0700
Re: Javascript midiAPI sysEx message Jonas Thörnvall <jonas.thornvall@gmail.com> - 2019-06-01 15:05 -0700
Re: Javascript midiAPI sysEx message Martin Leese <please@see.Web.for.e-mail.INVALID> - 2019-06-02 09:51 -0600
Re: Javascript midiAPI sysEx message Jonas Thörnvall <jonas.thornvall@gmail.com> - 2019-06-02 08:59 -0700
Re: Javascript midiAPI sysEx message Jonas Thörnvall <jonas.thornvall@gmail.com> - 2019-06-02 04:37 -0700
| From | Jonas Thörnvall <jonas.thornvall@gmail.com> |
|---|---|
| Date | 2019-06-01 11:27 -0700 |
| Subject | Javascript midiAPI sysEx message |
| Message-ID | <48b538e8-9fc3-4edc-8618-4df02085876f@googlegroups.com> |
I could need some help get my first sysEx message constructed, but a link will also work. I did set sysEx to true in midiaccess.
//The message go here
function selectProgramMode(){
settingChange = []; // Program mode
outportarr[outportindex].send(settingChange);
}
Hex message to send
Program mode F0 42 3x 35 4E 02 00 F7
[toc] | [next] | [standalone]
| From | Jonas Thörnvall <jonas.thornvall@gmail.com> |
|---|---|
| Date | 2019-06-01 14:04 -0700 |
| Message-ID | <74553139-503e-4d72-a62e-ab669a6c2c26@googlegroups.com> |
| In reply to | #36731 |
Den lördag 1 juni 2019 kl. 20:27:55 UTC+2 skrev Jonas Thörnvall:
> I could need some help get my first sysEx message constructed, but a link will also work. I did set sysEx to true in midiaccess.
>
> //The message go here
> function selectProgramMode(){
> settingChange = []; // Program mode
> outportarr[outportindex].send(settingChange);
> }
>
> Hex message to send
> Program mode F0 42 3x 35 4E 02 00 F7
Well now the message pass but no change from combi to instrument bank. Maybe sysex not enabled in synth.
function selectProgramMode(){
settingChange=[0xf0,0x42,0x30,0x35,0x4e,0x02,0x00,0xf7];
outportarr[outportindex].send(settingChange);
}
[toc] | [prev] | [next] | [standalone]
| From | Jonas Thörnvall <jonas.thornvall@gmail.com> |
|---|---|
| Date | 2019-06-01 14:18 -0700 |
| Message-ID | <8abcb62e-ce01-4a0e-b132-4fbfbf930ec9@googlegroups.com> |
| In reply to | #36732 |
Den lördag 1 juni 2019 kl. 23:04:36 UTC+2 skrev Jonas Thörnvall:
> Den lördag 1 juni 2019 kl. 20:27:55 UTC+2 skrev Jonas Thörnvall:
> > I could need some help get my first sysEx message constructed, but a link will also work. I did set sysEx to true in midiaccess.
> >
> > //The message go here
> > function selectProgramMode(){
> > settingChange = []; // Program mode
> > outportarr[outportindex].send(settingChange);
> > }
> >
> > Hex message to send
> > Program mode F0 42 3x 35 4E 02 00 F7
>
> Well now the message pass but no change from combi to instrument bank. Maybe sysex not enabled in synth.
>
> function selectProgramMode(){
> settingChange=[0xf0,0x42,0x30,0x35,0x4e,0x02,0x00,0xf7];
> outportarr[outportindex].send(settingChange);
> }
Well i am happy it was the synth setting now i can reach any bank.
[toc] | [prev] | [next] | [standalone]
| From | Jonas Thörnvall <jonas.thornvall@gmail.com> |
|---|---|
| Date | 2019-06-01 15:02 -0700 |
| Message-ID | <6832d785-967e-48ab-ab17-e726e785cda5@googlegroups.com> |
| In reply to | #36733 |
Den lördag 1 juni 2019 kl. 23:18:57 UTC+2 skrev Jonas Thörnvall:
> Den lördag 1 juni 2019 kl. 23:04:36 UTC+2 skrev Jonas Thörnvall:
> > Den lördag 1 juni 2019 kl. 20:27:55 UTC+2 skrev Jonas Thörnvall:
> > > I could need some help get my first sysEx message constructed, but a link will also work. I did set sysEx to true in midiaccess.
> > >
> > > //The message go here
> > > function selectProgramMode(){
> > > settingChange = []; // Program mode
> > > outportarr[outportindex].send(settingChange);
> > > }
> > >
> > > Hex message to send
> > > Program mode F0 42 3x 35 4E 02 00 F7
> >
> > Well now the message pass but no change from combi to instrument bank. Maybe sysex not enabled in synth.
> >
> > function selectProgramMode(){
> > settingChange=[0xf0,0x42,0x30,0x35,0x4e,0x02,0x00,0xf7];
> > outportarr[outportindex].send(settingChange);
> > }
>
> Well i am happy it was the synth setting now i can reach any bank.
Just missing the message for drumbank and gmbank
function sendBank(){
selectSequenserMode();
bankNr=document.getElementById("selBank").selectedIndex;
alert(bankNr);
if (bankNr<6 && bankNr>1) {selectProgramMode();bankNr=bankNr-2;synthMode="instrument";}
else if (bankNr>5){selectCombiMode();bankNr=bankNr-6;synthMode="combi";}
alert(bankNr);
settingChange = [176,0,0];
outportarr[outportindex].send(settingChange);
settingChange = [176,32,bankNr];
outportarr[outportindex].send(settingChange);
settingChange = [192,0];
outportarr[outportindex].send(settingChange);
}
[toc] | [prev] | [next] | [standalone]
| From | Jonas Thörnvall <jonas.thornvall@gmail.com> |
|---|---|
| Date | 2019-06-01 15:03 -0700 |
| Message-ID | <0b315816-b644-416a-ac0d-ca920123aa76@googlegroups.com> |
| In reply to | #36734 |
Den söndag 2 juni 2019 kl. 00:02:15 UTC+2 skrev Jonas Thörnvall:
> Den lördag 1 juni 2019 kl. 23:18:57 UTC+2 skrev Jonas Thörnvall:
> > Den lördag 1 juni 2019 kl. 23:04:36 UTC+2 skrev Jonas Thörnvall:
> > > Den lördag 1 juni 2019 kl. 20:27:55 UTC+2 skrev Jonas Thörnvall:
> > > > I could need some help get my first sysEx message constructed, but a link will also work. I did set sysEx to true in midiaccess.
> > > >
> > > > //The message go here
> > > > function selectProgramMode(){
> > > > settingChange = []; // Program mode
> > > > outportarr[outportindex].send(settingChange);
> > > > }
> > > >
> > > > Hex message to send
> > > > Program mode F0 42 3x 35 4E 02 00 F7
> > >
> > > Well now the message pass but no change from combi to instrument bank. Maybe sysex not enabled in synth.
> > >
> > > function selectProgramMode(){
> > > settingChange=[0xf0,0x42,0x30,0x35,0x4e,0x02,0x00,0xf7];
> > > outportarr[outportindex].send(settingChange);
> > > }
> >
> > Well i am happy it was the synth setting now i can reach any bank.
>
> Just missing the message for drumbank and gmbank
> function sendBank(){
> selectSequenserMode();
> bankNr=document.getElementById("selBank").selectedIndex;
> alert(bankNr);
> if (bankNr<6 && bankNr>1) {selectProgramMode();bankNr=bankNr-2;synthMode="instrument";}
> else if (bankNr>5){selectCombiMode();bankNr=bankNr-6;synthMode="combi";}
> alert(bankNr);
> settingChange = [176,0,0];
> outportarr[outportindex].send(settingChange);
> settingChange = [176,32,bankNr];
> outportarr[outportindex].send(settingChange);
> settingChange = [192,0];
> outportarr[outportindex].send(settingChange);
> }
function selectSequenserMode(){
settingChange=[0xf0,0x42,0x30,0x35,0x4e,0x04,0x00,0xf7];
outportarr[outportindex].send(settingChange);
}
function selectCombiMode(){
settingChange=[0xf0,0x42,0x30,0x35,0x4e,0x00,0x00,0xf7];
outportarr[outportindex].send(settingChange);
}
[toc] | [prev] | [next] | [standalone]
| From | Jonas Thörnvall <jonas.thornvall@gmail.com> |
|---|---|
| Date | 2019-06-01 15:05 -0700 |
| Message-ID | <5ed7948d-5d09-44c8-8f4e-e29de4e580d3@googlegroups.com> |
| In reply to | #36735 |
Den söndag 2 juni 2019 kl. 00:03:41 UTC+2 skrev Jonas Thörnvall:
> Den söndag 2 juni 2019 kl. 00:02:15 UTC+2 skrev Jonas Thörnvall:
> > Den lördag 1 juni 2019 kl. 23:18:57 UTC+2 skrev Jonas Thörnvall:
> > > Den lördag 1 juni 2019 kl. 23:04:36 UTC+2 skrev Jonas Thörnvall:
> > > > Den lördag 1 juni 2019 kl. 20:27:55 UTC+2 skrev Jonas Thörnvall:
> > > > > I could need some help get my first sysEx message constructed, but a link will also work. I did set sysEx to true in midiaccess.
> > > > >
> > > > > //The message go here
> > > > > function selectProgramMode(){
> > > > > settingChange = []; // Program mode
> > > > > outportarr[outportindex].send(settingChange);
> > > > > }
> > > > >
> > > > > Hex message to send
> > > > > Program mode F0 42 3x 35 4E 02 00 F7
> > > >
> > > > Well now the message pass but no change from combi to instrument bank. Maybe sysex not enabled in synth.
> > > >
> > > > function selectProgramMode(){
> > > > settingChange=[0xf0,0x42,0x30,0x35,0x4e,0x02,0x00,0xf7];
> > > > outportarr[outportindex].send(settingChange);
> > > > }
> > >
> > > Well i am happy it was the synth setting now i can reach any bank.
> >
> > Just missing the message for drumbank and gmbank
> > function sendBank(){
> > selectSequenserMode();
> > bankNr=document.getElementById("selBank").selectedIndex;
> > alert(bankNr);
> > if (bankNr<6 && bankNr>1) {selectProgramMode();bankNr=bankNr-2;synthMode="instrument";}
> > else if (bankNr>5){selectCombiMode();bankNr=bankNr-6;synthMode="combi";}
> > alert(bankNr);
> > settingChange = [176,0,0];
> > outportarr[outportindex].send(settingChange);
> > settingChange = [176,32,bankNr];
> > outportarr[outportindex].send(settingChange);
> > settingChange = [192,0];
> > outportarr[outportindex].send(settingChange);
> > }
>
> function selectSequenserMode(){
> settingChange=[0xf0,0x42,0x30,0x35,0x4e,0x04,0x00,0xf7];
> outportarr[outportindex].send(settingChange);
> }
>
> function selectCombiMode(){
> settingChange=[0xf0,0x42,0x30,0x35,0x4e,0x00,0x00,0xf7];
> outportarr[outportindex].send(settingChange);
> }
GM DRUM BANK (X and N Series)
Message Value
Controller 0 62
Controller 32 0
Program Change *
GM BANK (X and N Series)
Message Value
Controller 0 56
Controller 32 0
Program Change 1-128
[toc] | [prev] | [next] | [standalone]
| From | Martin Leese <please@see.Web.for.e-mail.INVALID> |
|---|---|
| Date | 2019-06-02 09:51 -0600 |
| Message-ID | <qd0r9u$fd6$1@dont-email.me> |
| In reply to | #36736 |
Jonas Thörnvall wrote: > Den söndag 2 juni 2019 kl. 00:03:41 UTC+2 skrev Jonas Thörnvall: >> Den söndag 2 juni 2019 kl. 00:02:15 UTC+2 skrev Jonas Thörnvall: >>> Den lördag 1 juni 2019 kl. 23:18:57 UTC+2 skrev Jonas Thörnvall: >>>> Den lördag 1 juni 2019 kl. 23:04:36 UTC+2 skrev Jonas Thörnvall: >>>>> Den lördag 1 juni 2019 kl. 20:27:55 UTC+2 skrev Jonas Thörnvall: ... Jonas, this thread has seven posts, all by you. I must suggest that a little more thought, and a little less posting, might have produced a better result. -- Regards, Martin Leese E-mail: please@see.Web.for.e-mail.INVALID Web: http://members.tripod.com/martin_leese/
[toc] | [prev] | [next] | [standalone]
| From | Jonas Thörnvall <jonas.thornvall@gmail.com> |
|---|---|
| Date | 2019-06-02 08:59 -0700 |
| Message-ID | <ffe9da21-a74c-4cc6-a714-e19ad184961a@googlegroups.com> |
| In reply to | #36742 |
Den söndag 2 juni 2019 kl. 17:51:34 UTC+2 skrev Martin Leese: > Jonas Thörnvall wrote: > > Den söndag 2 juni 2019 kl. 00:03:41 UTC+2 skrev Jonas Thörnvall: > >> Den söndag 2 juni 2019 kl. 00:02:15 UTC+2 skrev Jonas Thörnvall: > >>> Den lördag 1 juni 2019 kl. 23:18:57 UTC+2 skrev Jonas Thörnvall: > >>>> Den lördag 1 juni 2019 kl. 23:04:36 UTC+2 skrev Jonas Thörnvall: > >>>>> Den lördag 1 juni 2019 kl. 20:27:55 UTC+2 skrev Jonas Thörnvall: > ... > > Jonas, this thread has seven posts, all by > you. I must suggest that a little more > thought, and a little less posting, might > have produced a better result. > > -- > Regards, > Martin Leese > E-mail: please@see.Web.for.e-mail.INVALID > Web: http://members.tripod.com/martin_leese Oh a contributor.
[toc] | [prev] | [next] | [standalone]
| From | Jonas Thörnvall <jonas.thornvall@gmail.com> |
|---|---|
| Date | 2019-06-02 04:37 -0700 |
| Message-ID | <2f1cda94-6468-4682-8afb-076aba2f3996@googlegroups.com> |
| In reply to | #36734 |
Den söndag 2 juni 2019 kl. 00:02:15 UTC+2 skrev Jonas Thörnvall:
> Den lördag 1 juni 2019 kl. 23:18:57 UTC+2 skrev Jonas Thörnvall:
> > Den lördag 1 juni 2019 kl. 23:04:36 UTC+2 skrev Jonas Thörnvall:
> > > Den lördag 1 juni 2019 kl. 20:27:55 UTC+2 skrev Jonas Thörnvall:
> > > > I could need some help get my first sysEx message constructed, but a link will also work. I did set sysEx to true in midiaccess.
> > > >
> > > > //The message go here
> > > > function selectProgramMode(){
> > > > settingChange = []; // Program mode
> > > > outportarr[outportindex].send(settingChange);
> > > > }
> > > >
> > > > Hex message to send
> > > > Program mode F0 42 3x 35 4E 02 00 F7
> > >
> > > Well now the message pass but no change from combi to instrument bank. Maybe sysex not enabled in synth.
> > >
> > > function selectProgramMode(){
> > > settingChange=[0xf0,0x42,0x30,0x35,0x4e,0x02,0x00,0xf7];
> > > outportarr[outportindex].send(settingChange);
> > > }
> >
> > Well i am happy it was the synth setting now i can reach any bank.
>
> Just missing the message for drumbank and gmbank
> function sendBank(){
> selectSequenserMode();
> bankNr=document.getElementById("selBank").selectedIndex;
> alert(bankNr);
> if (bankNr<6 && bankNr>1) {selectProgramMode();bankNr=bankNr-2;synthMode="instrument";}
> else if (bankNr>5){selectCombiMode();bankNr=bankNr-6;synthMode="combi";}
> alert(bankNr);
> settingChange = [176,0,0];
> outportarr[outportindex].send(settingChange);
> settingChange = [176,32,bankNr];
> outportarr[outportindex].send(settingChange);
> settingChange = [192,0];
> outportarr[outportindex].send(settingChange);
> }
Here you can try, but without Korg N364 you won't see much of a bankchange.
https://midisequenser.000webhostapp.com/
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.javascript
csiph-web