Myriad Forum « Script: MIDI channels with problem »
 Welcome, Guest.
 You can read all messages, but to be able to post,
 please Login or Register.
May 25th, 2013, 4:05pm 
   Myriad Forum
   Melody Assistant / Harmony Assistant
(Moderator: Forum Administrator)
   Script: MIDI channels with problem
« Previous topic | Next topic »
Pages: 1  Reply | Notify of replies | Print
   Author  Topic: Script: MIDI channels with problem  (Read 2450 times)
olemalm
Board Newbie
*






   
WWW | Email

Gender: male
Posts: 23
Script: MIDI channels with problem  
« on: Sep 14th, 2012, 11:43pm »
Quote | Modify

This script - MIDI/Display MIDI channels - works OK with up to 16 channels defined. Can anyone fix this bug when it is used with more than 16 channels:
error: attempt to concat a nil value
  <string "|MidiChannels.myf|0|29|Item ? ? ? 1 Method In...": line 31>

 
Have tried to change all instances of
for i=1,16 do
to a value of  
for i=1,32 do
but the same error pops up!
I'm not clever with scripts - needs help  
offline

Ole Malmgren
Bamberg, DE
muddle
Board Senior Member
****





   
WWW |

Posts: 258
Re: Script: MIDI channels with problem  
« Reply #1 on: Sep 17th, 2012, 3:58am »
Quote | Modify

Hi olemalm, could you clarify the situtation further?   HA  uses the midi standard of 16 channels. The script doesn't have to handle more than that.
If you mean more than 16 TRACKS  then when I use the midi channel script on  such a file,  it lists  the midi channel number and the several intruments that may be on that channel.  
 It doesn't list which midi out port they are using,  ( which is how you get more tracks than there are midi channels.
ie.  you can set channels 1-16 on one midi out port, and channels 1-16 again on another midi out port.)  but the script does not produce an error.  
I wondered if you were getting an error because you had two midi channels the same on one port, but it didn't fail when I tried that either.
 
A thought strikes ...  If you have a file with a full set of midi channels on on port, and another full channel set on another port and you get this error,  could you try temporarily deleting more and more staves  and see if the error goes away.  I'm thinking it could  occur at max values.  
 
cheers,  Muddle
offline

Mp3's of User Instruments :- http://aaronlawrence.fastmail.fm/Music/userins.htm
You tube videos using HA or Virtual Singers:- http://www.youtube.com/user/TheMuddleglum#g/u
olemalm
Board Newbie
*






   
WWW | Email

Gender: male
Posts: 23
Re: Script: MIDI channels with problem  
« Reply #2 on: Sep 21st, 2012, 6:15pm »
Quote | Modify

Hi Muddle, thanks for reply. Yes, you're right - when I remove staves and are "down" at 16 staves the script (Disply MIDI channels) works OK. I am using GPO4 via 2  internal ports - i.e. 2 MIDI outports with totally 21 channels (and 9 digital channels for vocals in VS). Have also discovered that in 'File/View document info/MIDI channels' all my channels are listed, I only have to sort out what is Outport 1 and 2....
 
Another question: When using script 'Garritan assistant' for keyswitch and conversion of dynamic expressions - the expressions change from black to BROWN (also on printed score). I would like to change this shift of colour so the expressions stay black. Do you know of a way to setup this?
 
All the best, Ole M
offline

Ole Malmgren
Bamberg, DE
muddle
Board Senior Member
****





   
WWW |

Posts: 258
Re: Script: MIDI channels with problem  
« Reply #3 on: Sep 22nd, 2012, 1:24am »
Quote | Modify

Hi again Ole,  I had a look at the script and ....Whoa!  .. the Garritan script is serious stuff !  
He has organised it well with lots of comments so  I discovered  where the colour is being changed.
 
You could alter this by  deleting the lines whenever  they call for a change of colour.  
For example the Dynamic markings are changed in  the file "Dynamics.mys"  at line 300  
Alas, there are other places ( and probably in other  sub files of the script) where the same is done.  
 
However, you mention the brown colour change as though its the one that most concerns you, and I see it refers to the global definition "(COLOR_RGB_GPO)"    
 
I  found the value for this definition/label in the file "common.mys" .
 
It's near the start and the label is  >>    COLOR_RGB_GPO="D58B2F"  
 
I changed this to  COLOR_RGB_GPO="000000"  and when I ran the script again the dynamics stayed black.
 
That may do what you want.  Note that it may change the colour of the new parameter curve associated with it.  
 
The alternative is to track down all references to that  definition and remove the ones you dont want to action for dynamics etc.
Or you can enter a new definition with different colour values below the COLOR_RGB_GPO="D58B2F"  and change all the dynamics etc throughout   the script files to refer to this new definition instead..  
 Hmm, it might be rather easier  to just change  one value  and put up with a dark parameter curve when using GPO!  
 
 The  only odd thing I noticed was that trying to run the script,  while the script editor  was open,  crashed HA.  
Never seen that before.  Maybe something I was doing wrong.  
Also,  you have to save your the change to common.mys  and restart the  Garritan script normally for the change to take effect.
 
Instead of making dynamics  totally black you might still want some indication that you have made the change. ( thats why he did it in the first place)  You could try some low value colour change?  Perhaps add a little to the red ( first 2 )  until there is just enough to see if you look closely , but it doesn't worry you when printed.    eg   COLOR_RGB_GPO="440000"  .
 If you don't know hex then the easiest way  would be to try  values from say 22 to 88,    increasing them both together.  
 
NOTE ...it might be wise to first  copy the whole Garritan scripts folder to somewhere else so that you can  return it if all goes wrong.  
 
Hope that's some help anyway . Cheers, David.    
 
 
 
offline

Mp3's of User Instruments :- http://aaronlawrence.fastmail.fm/Music/userins.htm
You tube videos using HA or Virtual Singers:- http://www.youtube.com/user/TheMuddleglum#g/u
olemalm
Board Newbie
*






   
WWW | Email

Gender: male
Posts: 23
Re: Script: MIDI channels with problem   GarrAssist1.jpg
« Reply #4 on: Sep 24th, 2012, 11:34pm »
Quote | Modify

Hi Muddle, thanks for a detailed reply. I changed "COLOR_RGB_GPO" to "440000" (almost black) in file "common.mys". This solved my Brown problem.  
 
The small triangles under the staff documenting that dynamics  was changed via Garritan Assistant can simply be deleted (se pic.: Oboes), the changed dynamics are still there! - In pic.: Flutes are with the changed color "440000", and Clarinets with the original brown color.  
 
From the Garritan Assistant I also use "Key Switches", which are inserting small triangles, too, under the staff where the switch is performed. These triangles can also be deleted without disturbing the switch.
 
Godaw, and cheers, Ole M.
offline


Ole Malmgren
Bamberg, DE
olemalm
Board Newbie
*






   
WWW | Email

Gender: male
Posts: 23
Re: Script: MIDI channels with problem  
« Reply #5 on: Sep 26th, 2012, 11:55pm »
Quote | Modify

Hi again Muddle ...
Have now been working with the Garritan Assistant, and I have one more little question: How can I regret and totally cancel a change in (for instance) sound ...? Example: In strings I have changed from sustain to pizzicato (Keyswitch), and I can as earlier explained delete the small triangels under the staff (indicating some effect was inserted) - but the effect is still there!! To be able to delete the triangels is fine for the printout - but how do I remove the effect
 
Many thanks again to Muddle for a great help with Garritan Assistant ... I'm happy about being able to use the GPO4 in a complete way now...
 
Greetings to other side of the world, Ole M
offline

Ole Malmgren
Bamberg, DE
muddle
Board Senior Member
****





   
WWW |

Posts: 258
Re: Script: MIDI channels with problem  
« Reply #6 on: Sep 27th, 2012, 8:22am »
Quote | Modify

Whoops!  I just erased  my reply!  
...  aaah .. er... yes, Ole, just remember I am no script expert.  But I think the easiest way to remove keyswitches action is to edit the note.  
 A Garritan keyswitch is just a  hidden grace note ( of the correct value)  .
If you hold alt key and double click the note ( where the triangle is) the "note options" panel comes up.  In the "graces" page you will see the grace note listed. Just click delete and its gone.  
Then delete the triangle.
 
As you must have found, if you want to change something in the the script, the keyswitch is written to the score in the Garritan Template "keyswitches.mys"  at  line 516 and after.  
 
Not sure I understood the problem correctly but hope its some help.  
 
cheers from the farside (of the world.)  
David.
« Last Edit: Sep 27th, 2012, 1:43pm by muddle » offline

Mp3's of User Instruments :- http://aaronlawrence.fastmail.fm/Music/userins.htm
You tube videos using HA or Virtual Singers:- http://www.youtube.com/user/TheMuddleglum#g/u
olemalm
Board Newbie
*






   
WWW | Email

Gender: male
Posts: 23
Re: Script: MIDI channels with problem  
« Reply #7 on: Sep 27th, 2012, 10:36pm »
Quote | Modify

Yes, Muddle, you understood quite well my question - and thanks for the reply. It works as you explained  
 
Greetings from Bamberg, 18.517.400 metres from N.Z.
offline

Ole Malmgren
Bamberg, DE
Pages: 1  Reply | Notify of replies | Print

« Previous topic | Next topic »

« Myriad Forum » Powered by YaBB 1 Gold - SP 1.1!
YaBB © 2000-2002,
Xnull. All Rights Reserved.

Top of page
Last update:  (c) Myriad 2013