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


Groups > comp.lang.javascript > #36739

Re: Read in cakewalk instrument files banks and their content and hold in coherent manner.

X-Received by 2002:a5e:9241:: with SMTP id z1mr13604449iop.39.1559456769069; Sat, 01 Jun 2019 23:26:09 -0700 (PDT)
X-Received by 2002:a9d:66d8:: with SMTP id t24mr7503423otm.349.1559456768947; Sat, 01 Jun 2019 23:26:08 -0700 (PDT)
Path csiph.com!xmission!news.snarked.org!border2.nntp.dca1.giganews.com!nntp.giganews.com!4no894521itm.0!news-out.google.com!l135ni548itc.0!nntp.google.com!i64no926033iti.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail
Newsgroups comp.lang.javascript
Date Sat, 1 Jun 2019 23:26:08 -0700 (PDT)
In-Reply-To <09b80eaf-4e43-4f99-b8f7-de0440a9c4c4@googlegroups.com>
Complaints-To groups-abuse@google.com
Injection-Info glegroupsg2000goo.googlegroups.com; posting-host=213.112.1.151; posting-account=kxPkPAoAAACjJi8w0gL9bnyznPzdw9HW
NNTP-Posting-Host 213.112.1.151
References <30b489af-8a97-43be-9ef8-94da87ce7d7a@googlegroups.com> <e531b0b1-208e-419b-85bb-872955d62e50@googlegroups.com> <1ovdybefl3zg5$.1txcn41x377u4$.dlg@40tude.net> <09b80eaf-4e43-4f99-b8f7-de0440a9c4c4@googlegroups.com>
User-Agent G2/1.0
MIME-Version 1.0
Message-ID <5ab0dc7f-e55d-421b-9cee-e514eaf11967@googlegroups.com> (permalink)
Subject Re: Read in cakewalk instrument files banks and their content and hold in coherent manner.
From Jonas Thörnvall <jonas.thornvall@gmail.com>
Injection-Date Sun, 02 Jun 2019 06:26:09 +0000
Content-Type text/plain; charset="UTF-8"
Content-Transfer-Encoding quoted-printable
Lines 26
Xref csiph.com comp.lang.javascript:36739

Show key headers only | View raw


Den söndag 2 juni 2019 kl. 08:24:08 UTC+2 skrev Jonas Thörnvall:
> Den söndag 2 juni 2019 kl. 04:28:27 UTC+2 skrev JJ:
> > On Sat, 1 Jun 2019 04:26:44 -0700 (PDT), Jonas Thörnvall wrote:
> > >> 	//REMOVE EMPTY LINES FROM BANK
> > >>     Abank[current]=Abank[current].replace(/^\s*[\r]/gm,"");
> > 
> > That clears the unwanted lines, instead of removing them.
> 
> I removed replace regex with splice.
> 
> function ListBankInstruments(current){ 
>         instName=Abank[current].split("\n");[] 
>         //REMOVE FIRST LINE "BANKNAME" 
>         instName.shift(); 
>         //REMOVE LINES NOT STARTING WITH DIGIT OR EMPTY 
>         alert(instName[instName.length-1].charCodeAt(0)); 
>          
>         for (var j=instName.length-1;j>=0;j--){ 
>            ChCode=instName[j].charCodeAt(0); 
>         if (ChCode<48 || ChCode>57 || ChCode==13 ) { instName.splice(j,1); } 
>         } 
>         alert(instName.length); 
>         instOptionList(); 
> }

Sorry i exchanged... and removed

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


Thread

Read in cakewalk instrument files banks and their content and hold in coherent manner. Jonas Thörnvall <jonas.thornvall@gmail.com> - 2019-05-29 06:43 -0700
  Re: Read in cakewalk instrument files banks and their content and hold in coherent manner. Jonas Thörnvall <jonas.thornvall@gmail.com> - 2019-06-01 04:26 -0700
    Re: Read in cakewalk instrument files banks and their content and hold in coherent manner. JJ <jj4public@vfemail.net> - 2019-06-02 09:28 +0700
      Re: Read in cakewalk instrument files banks and their content and hold in coherent manner. Jonas Thörnvall <jonas.thornvall@gmail.com> - 2019-06-01 23:23 -0700
        Re: Read in cakewalk instrument files banks and their content and hold in coherent manner. Jonas Thörnvall <jonas.thornvall@gmail.com> - 2019-06-01 23:26 -0700
          Re: Read in cakewalk instrument files banks and their content and hold in coherent manner. JJ <jj4public@vfemail.net> - 2019-06-03 10:51 +0700
            Re: Read in cakewalk instrument files banks and their content and hold in coherent manner. Jonas Thörnvall <jonas.thornvall@gmail.com> - 2019-06-02 22:32 -0700
            Re: Read in cakewalk instrument files banks and their content and hold in coherent manner. Jukka Lahtinen <jtfjdehf@hotmail.com.invalid> - 2019-06-03 11:43 +0300
            Re: Read in cakewalk instrument files banks and their content and hold in coherent manner. dr.j.r.stockton@gmail.com - 2019-06-03 02:31 -0700
              Re: Read in cakewalk instrument files banks and their content and hold in coherent manner. "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2019-06-03 12:25 +0200
              Re: Read in cakewalk instrument files banks and their content and hold in coherent manner. Jonas Thörnvall <jonas.thornvall@gmail.com> - 2019-06-03 04:07 -0700
  Re: Read in cakewalk instrument files banks and their content and hold in coherent manner. Jonas Thörnvall <jonas.thornvall@gmail.com> - 2019-06-01 04:27 -0700
  Re: Read in cakewalk instrument files banks and their content and hold in coherent manner. Jonas Thörnvall <jonas.thornvall@gmail.com> - 2019-06-01 07:04 -0700
    Re: Read in cakewalk instrument files banks and their content and hold in coherent manner. Jonas Thörnvall <jonas.thornvall@gmail.com> - 2019-06-01 07:05 -0700

csiph-web