Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #36739
| Newsgroups | comp.lang.javascript |
|---|---|
| Date | 2019-06-01 23:26 -0700 |
| 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> |
| 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> |
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
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