Page 1 of 1

Midi generated trills by rule

PostPosted: Fri Sep 24, 2010 2:46 am
by fabiolcati
pcartwright means this on another thread:

"MIDI trills-like" code? Notion added a rule that basically set trill conditions for instruments that didn't have sampled trills (and I think it works pretty well)


Though, the last time I downloaded rules' tools folder -- about 1 week ago -- I wasn't able to find a line of code for it.

Maybe I missed it.

Any suggestion?

Re: Midi generated trills by rule

PostPosted: Fri Sep 24, 2010 8:30 am
by pcartwright
The rule is really more of a definition of trill parameters. Here's the important piece of code that you need for MIDI generated trills:

<rule>
<trill pitches="1" time="0.1" delay="0.08" />
</rule>

This is the default trill rule that came with the most recent GPO rules; you can adjust the variables so that there is more/less delay between the attack of the note and the start of the trill (delay) and/or change the the speed of the trill (time).

This rule can be assigned to an "if" condition (i.e. if flag = xyz or if instrument-id = xyz) so that instruments with sampled trills (such as the GPO strings) ignore this rule. Personally, I think creating trill definitions for each instrument with slightly different settings sounds the most realistic; trills played by multiple instruments at the same time sound slightly out of sync.

In regards to my post about tremolos... it seems that the unmeasured tremolos could act like trills and use these variables to automatically switch between two notes. It wouldn't be as realistic as sampled tremolos, but it would certainly help users hear what a tremolo would sound like.

Re: Midi generated trills by rule

PostPosted: Fri Sep 24, 2010 8:54 am
by fabiolcati
Thank you Philip.
Maybe it must be specified in upgrade-specs that the code is to be found in GPO file. Kyle? Lubo?
Anyway. I'll test as soon as possible.
What do you mean by "instrument-ID"?
Is it different from the plugin ID?
If so, I guess is the string of numbers that comes when you open the instrument change window?
When I load my external VST (eg. YellowTools Indipendence Free) to be driven from a set of rules
Notion sees it as a plugin, not an instrument: how can I say "play trills on this instance of YTIF (eg. flute),
not on the other one (eg. piccolo)"?
Greetings

Ps. Next week: "Hairpins ignored: what am doing I wrong?"

Re: Midi generated trills by rule

PostPosted: Fri Sep 24, 2010 10:25 am
by pcartwright
fabiolcati wrote:What do you mean by "instrument-ID"?
Is it different from the plugin ID?


So far, only plugins with predefined instrument lists (GPO, Philharmonik, VSL, EWQLSO) have instrument IDs, so rules files for other VSTis would be limited to a plugin-wide rule and can't be specified for indifidual instruments.

Re: Midi generated trills by rule

PostPosted: Fri Sep 24, 2010 10:43 am
by fabiolcati
So far, only plugins with predefined instrument lists (GPO, Philharmonik, VSL, EWQLSO) have instrument IDs, so rules files for other VSTis would be limited to a plugin-wide rule and can't be specified for indifidual instruments.

Clear and loud.
Thank you Philip.

Re: Midi generated trills by rule

PostPosted: Sat Sep 25, 2010 7:02 am
by fabiolcati
Maybe adding a MIDI channel information ?

Re: Midi generated trills by rule

PostPosted: Sat Sep 25, 2010 10:26 am
by pcartwright
fabiolcati wrote:Maybe adding a MIDI channel information ?


Maybe. Give it try and let us know how it works.