Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.javascript > #35049

Re: Javascript midi specification

Newsgroups comp.lang.javascript
Date 2018-05-20 16:35 -0700
References <9ff8956e-db98-4974-9975-2e2b41afaccd@googlegroups.com> <XnsA8E0964F4F683eejj99@194.109.6.166> <pd7g16$13a9$1@gioia.aioe.org> <XnsA8E0F336FA25Deejj99@194.109.6.166> <ed124a7e-0149-4c2e-868f-97fe9eaa9f20@googlegroups.com>
Message-ID <de66d4d3-e89e-43c6-ace9-1bb6ff83f699@googlegroups.com> (permalink)
Subject Re: Javascript midi specification
From Jonas Thörnvall <jonas.thornvall@gmail.com>

Show all headers | View raw


Den måndag 21 maj 2018 kl. 01:28:40 UTC+2 skrev Jonas Thörnvall:
> Den lördag 12 maj 2018 kl. 23:54:36 UTC+2 skrev Evertjan.:
> > "Mark-" <nospam@mapson.xyz> wrote on 12 May 2018 in comp.lang.javascript:
> > 
> > > Evertjan. wrote:
> > > 
> > >> > Does javascript also forward midi control messages?
> > > 
> > >> What is "a synth", a script, a programme or hardware?
> > >> 
> > > 
> > > He ask about MIDI (Musical Instrument Digital Interface) so "synth"
> > > would be synthesizer.
> > 
> > And is that a programme or hardware, Jonas?
> >  
> > >> sequencer? [with a "c"!]
> > >> 
> > > 
> > > Music sequencer. 
> > > 
> > > To control the synthesizer via MIDI.
> > 
> > And is that a programme or hardware, Jonas?
> > 
> > So is your Q about addressing comuter hardware from the browser js?
> > 
> > Or just generating sounds with js?
> > 
> > Asking for a friend.
> > 
> > -- 
> > Evertjan.
> > The Netherlands.
> > (Please change the x'es to dots in my emailaddress)
> 
> It is hardware Evertjan, and i think it work i do not think javascript care about what type of messages it sends, control messages or midi notes. It is just ASCII values to javascript. The format is the same, well i am planning to do an editor for my Korg N364 synth, and if i am lucky i may be able to even start it's builtin sequenser to both play/record from the script page.
> 
> To set bank and program is no problem i already set program of my soundcanvas SC-7 from the sequenser script i wrote, but editing patches and set sustain and parameters well we will see but it all just midi commands with same format.


[ KORG N264/N364 SysEx - A Quick Reference Guide ]

Compiler: Kenneth Jonsson (http://user.tninet.se/~ufn204a)
Updated:  April 29, 1998.

All pages & tables refer to the N264/N364 Reference Guide.

x = global MIDI channel: 0 through F (equals 1 through 16)

-----------------------------------------------------------------------
GENERAL N264/N364 SYSEX CODE:
-----------------------------------------------------------------------
SysEx start		F0
KORG ID number		42
MIDI channel		3x
N-series ID		35
Function code
Data
SysEx end		F7
-----------------------------------------------------------------------
DUMP REQUESTS:
-----------------------------------------------------------------------
Current program		F0 42 3x 35 10 F7 *
Current combination	F0 42 3x 35 19 F7 *

Global data		F0 42 3x 35 0E 00 F7
Pattern set		F0 42 3x 35 09 00 F7
Drumkits		F0 42 3x 35 0D 00 F7
All programs		F0 42 3x 35 1C 00 F7
All combinations	F0 42 3x 35 1D 00 F7
All sequencer songs	F0 42 3x 35 18 00 F7
All data		F0 42 3x 35 0F 00 F7

Current mode		F0 42 3x 35 12 F7

* = N264/N364 must be in prog or combi mode respectively
-----------------------------------------------------------------------
MODE SELECT:
-----------------------------------------------------------------------
Combination mode	F0 42 3x 35 4E 00 00 F7
Program mode		F0 42 3x 35 4E 02 00 F7
Sequencer mode		F0 42 3x 35 4E 04 00 F7

Global mode		F0 42 3x 35 4E 06 00 F7
Disk mode		F0 42 3x 35 4E 07 00 F7

Combi edit mode		F0 42 3x 35 4E 01 00 F7
Prog edit mode		F0 42 3x 35 4E 03 00 F7
Seq edit mode		F0 42 3x 35 4E 05 00 F7
-----------------------------------------------------------------------
ERROR / ACKNOWLEDGEMENT MESSAGES:
-----------------------------------------------------------------------
In-data format error	F0 42 3x 35 26 F7
Data load completed	F0 42 3x 35 23 F7
Data load error		F0 42 3x 35 24 F7
Write completed		F0 42 3x 35 21 F7
Write error		F0 42 3x 35 22 F7
-----------------------------------------------------------------------
PROG / COMBI / DRUM PARAMETER EDIT (CUMBERSOME!):
-----------------------------------------------------------------------
Prog write request	F0 42 3x 35 11 0b nn F7
Combi write request	F0 42 3x 35 1A 0b nn F7
Prog/combi param change	F0 42 3x 35 41 yy zz vv ww F7 *
Drum kit param change	F0 42 3x 35 53 0k ss 0p vv ww F7

b  = bank number: A=0, B=1
nn = prog/combi number: 00 through 99 (decimal)
yy = parameter number LSB (see tables 8 through 12 on page 225)
zz = parameter number MSB (               - " -               )
vv = value LSB            (see note 13 on page 220)
ww = value MSB            (         - " -         )
*  = N264/N364 must be in prog edit mode to change current prog
     parameters, and in combi edit mode to change current combi
     parameters.
k  = drum kit number: A1=0, A2=1, B1=2, B2=3
ss = index number: 00 through 59 (decimal)
p  = parameter number (see table 13 on page 225)
-----------------------------------------------------------------------
MISCELLANEOUS (NON-SYSEX):
-----------------------------------------------------------------------
Select seq song		F3 0s (s = 0 through 9)
Start seq play		FA
Continue seq play	FB
Stop seq play		FC
Seq position		F2 yy zz

Master volume		F0 7F gg 04 01 yy zz F7
Master balance		F0 7F gg 04 02 yy zz F7
Master balance center   F0 7F gg 04 02 00 40 F7

General MIDI mode on    F0 7E gg 09 01 7F
Instrument ID request	F0 7E gg 06 01 7F (see table 1-4 on page 214)

Timing clock		F8
Active sensing		FE

gg = global MIDI channel: 00 through 0F, or 7F for any channel
yy = LSB: 00 through 7F
zz = MSB: 00 through 7F

Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Javascript midi specification Jonas Thörnvall <jonas.thornvall@gmail.com> - 2018-05-12 02:52 -0700
  Re: Javascript midi specification "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2018-05-12 14:46 +0200
    Re: Javascript midi specification "Mark-" <nospam@mapson.xyz> - 2018-05-12 19:41 +0000
      Re: Javascript midi specification "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2018-05-12 23:54 +0200
        Re: Javascript midi specification Jonas Thörnvall <jonas.thornvall@gmail.com> - 2018-05-20 16:28 -0700
          Re: Javascript midi specification Jonas Thörnvall <jonas.thornvall@gmail.com> - 2018-05-20 16:35 -0700
            Re: Javascript midi specification Jonas Thörnvall <jonas.thornvall@gmail.com> - 2018-05-20 16:46 -0700
  Re: Javascript midi specification JJ <jj4public@vfemail.net> - 2018-05-13 04:49 +0700
    Re: Javascript midi specification "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2018-05-13 00:00 +0200
      Re: Javascript midi specification "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2018-05-12 15:52 -0700
        Re: Javascript midi specification "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2018-05-13 11:00 +0200
          Re: Javascript midi specification "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2018-05-13 11:04 +0200
      Re: Javascript midi specification JJ <jj4public@vfemail.net> - 2018-05-13 20:02 +0700

csiph-web