NoteWorthy Composer Forum

Forums => Tips & Tricks => Object Plugins => Topic started by: Mike Shawaluk on 2015-03-22 12:47 pm

Title: Tremolo.ms (2.1)
Post by: Mike Shawaluk on 2015-03-22 12:47 pm
This object implements a two-note tremolo, as described in various texts. It draws the tremolo markings, and will optionally play the notes in tremolo style.

To create a tremolo, you must first create two RestChords of the desired duration. For whole, half and quarter note tremolos, the rest duration should be half of the note's duration. For eighth tremolos, the note duration should be quarter and the rest duration sixteenth. Also, the rest portion of each RestChord should be marked as hidden. Once the notes are present, insert the object between the notes, and the marking will be drawn between the stems. If additional space is needed to accommodate a larger number of beams, increase the stem length of the notes.

The following parameters control the appearance and type of tremolo:

Number of Beams: Specifies the number of beams to be drawn between the notes, between 1 and 4. Default value is 3. The number of beams for a tremolo can also be modified by highlighting the object and pressing the + or - keys.
Half Note Beam Style: Specifies one of three styles for half-note tremolos, and is an integer with values of 1 to 3. It is ignored for other tremolo durations. Default value is 1.
Play Notes: Enables playback of the tremolo. Default value is checked. Note that the RestChords should be muted for proper playback.
Triplet Playback: Specifies that the playback notes should be in triplet rhythm. This will generally be used when the tremolo notes are dotted. Default value is unchecked.
Variance (%): Specifies a dynamic variance between the first and second chord. The specified value is a multiplier for the volume of the second note. This allows more realistic playback. The range of values is 50% to 200%, and the default setting is 100% (no variance).
Beam Angle Offset: Specifies a vertical (staff position) offset to the right side of the beams, for whole note tremolos only. The range of values is -10 to 10, and the default setting is 0. This allows the beam angle to be adjusted; by default, the angle will be that of the lowest noteheads.

For whole note tremolos, the vertical position of the beams may be altered by moving the object marker up and down on the staff. The beam angle can also be adjusted using the Beam Angle Offset parameter.

If the notes on either side of the object are not both RestChords, or if their stem directions are not the same, then the tremolo will not be drawn. If the two notes are of differing durations, the tremolo will be drawn in the style of the right-hand note.

The following sample clip will get you started. The screen shot demonstrates various types of tremolos, with the bottom staff indicating the actual notes that are played.

Code: (nwc) [Select · Download]
!NoteWorthyComposer(2.749741)
|AddStaff|Name:"Staff"|Group:"Standard"
|StaffProperties|EndingBar:Section Close|Visible:Y|BoundaryTop:12|BoundaryBottom:12|Lines:5|Color:Default
|StaffProperties|Muted:N|Volume:127|StereoPan:64|Device:0|Channel:1
|StaffInstrument|Trans:0|DynVel:10,30,45,60,75,92,108,127
|Clef|Type:Treble
|TimeSig|Signature:4/4
|RestChord|Dur:8th|Opts:Stem=Down,ArticulationsOnStem,Muted,HideRest|Dur2:4th|Pos2:-2
|User|Tremolo.ms|Pos:-1|Beams:3|Style:1|Play:Y
|RestChord|Dur:8th|Opts:Stem=Down,ArticulationsOnStem,Muted,HideRest|Dur2:4th|Pos2:1
|RestChord|Dur:16th|Opts:Stem=Down,ArticulationsOnStem,Muted,HideRest|Dur2:4th|Pos2:1
|User|Tremolo.ms|Pos:-1|Beams:3|Style:1|Play:Y
|RestChord|Dur:16th|Opts:Stem=Down,ArticulationsOnStem,Muted,HideRest|Dur2:4th|Pos2:0
|RestChord|Dur:16th|Opts:Stem=Down,ArticulationsOnStem,Muted,HideRest|Dur2:4th|Pos2:-1
|User|Tremolo.ms|Pos:-1|Beams:3|Style:1|Play:Y
|RestChord|Dur:16th|Opts:Stem=Down,ArticulationsOnStem,Muted,HideRest|Dur2:4th|Pos2:-2
|Bar
|RestChord|Dur:4th|Opts:Stem=Up,Muted,HideRest|Dur2:Half|Pos2:5
|User|Tremolo.ms|Pos:-1|Beams:2|Style:2|Play:Y
|RestChord|Dur:4th|Opts:Stem=Up,Muted,HideRest|Dur2:Half|Pos2:3
|Bar
|RestChord|Dur:Half|Opts:Stem=Down,Muted,HideRest|Dur2:Whole|Pos2:-5
|User|Tremolo.ms|Pos:4.5|Beams:2|Style:1|Play:Y
|RestChord|Dur:Half|Opts:Stem=Down,Muted,HideRest|Dur2:Whole|Pos2:-3
|AddStaff|Name:"Staff-1"|Group:"Standard"
|StaffProperties|EndingBar:Section Close|Visible:Y|BoundaryTop:12|BoundaryBottom:12|Lines:5|Color:Default
|StaffProperties|Muted:N|Volume:127|StereoPan:64|Device:0|Channel:1
|StaffInstrument|Trans:0|DynVel:10,30,45,60,75,92,108,127
|Clef|Type:Treble
|TimeSig|Signature:4/4
|Note|Dur:32nd|Pos:-2|Opts:Stem=Up,Beam=First
|Note|Dur:32nd|Pos:1|Opts:Stem=Up,Beam
|Note|Dur:32nd|Pos:-2|Opts:Stem=Up,Beam
|Note|Dur:32nd|Pos:1|Opts:Stem=Up,Beam
|Note|Dur:32nd|Pos:-2|Opts:Stem=Up,Beam
|Note|Dur:32nd|Pos:1|Opts:Stem=Up,Beam
|Note|Dur:32nd|Pos:-2|Opts:Stem=Up,Beam
|Note|Dur:32nd|Pos:1|Opts:Stem=Up,Beam=End
|Note|Dur:32nd|Pos:1|Opts:Stem=Up,Beam=First
|Note|Dur:32nd|Pos:0|Opts:Stem=Up,Beam
|Note|Dur:32nd|Pos:1|Opts:Stem=Up,Beam
|Note|Dur:32nd|Pos:0|Opts:Stem=Up,Beam=End
|Note|Dur:32nd|Pos:-1|Opts:Stem=Up,Beam=First
|Note|Dur:32nd|Pos:-2|Opts:Stem=Up,Beam
|Note|Dur:32nd|Pos:-1|Opts:Stem=Up,Beam
|Note|Dur:32nd|Pos:-2|Opts:Stem=Up,Beam=End
|Bar
|Note|Dur:16th|Pos:5|Opts:Stem=Down,Beam=First
|Note|Dur:16th|Pos:3|Opts:Stem=Down,Beam
|Note|Dur:16th|Pos:5|Opts:Stem=Down,Beam
|Note|Dur:16th|Pos:3|Opts:Stem=Down,Beam
|Note|Dur:16th|Pos:5|Opts:Stem=Down,Beam
|Note|Dur:16th|Pos:3|Opts:Stem=Down,Beam
|Note|Dur:16th|Pos:5|Opts:Stem=Down,Beam
|Note|Dur:16th|Pos:3|Opts:Stem=Down,Beam=End
|Bar
|Note|Dur:16th|Pos:-5|Opts:Stem=Up,Beam=First
|Note|Dur:16th|Pos:-3|Opts:Stem=Up,Beam
|Note|Dur:16th|Pos:-5|Opts:Stem=Up,Beam
|Note|Dur:16th|Pos:-3|Opts:Stem=Up,Beam
|Note|Dur:16th|Pos:-5|Opts:Stem=Up,Beam
|Note|Dur:16th|Pos:-3|Opts:Stem=Up,Beam
|Note|Dur:16th|Pos:-5|Opts:Stem=Up,Beam
|Note|Dur:16th|Pos:-3|Opts:Stem=Up,Beam
|Note|Dur:16th|Pos:-5|Opts:Stem=Up,Beam
|Note|Dur:16th|Pos:-3|Opts:Stem=Up,Beam
|Note|Dur:16th|Pos:-5|Opts:Stem=Up,Beam
|Note|Dur:16th|Pos:-3|Opts:Stem=Up,Beam
|Note|Dur:16th|Pos:-5|Opts:Stem=Up,Beam
|Note|Dur:16th|Pos:-3|Opts:Stem=Up,Beam
|Note|Dur:16th|Pos:-5|Opts:Stem=Up,Beam
|Note|Dur:16th|Pos:-3|Opts:Stem=Up,Beam=End
!NoteWorthyComposer-End

Title: Re: Tremolo.ms (version 0.9)
Post by: Mike Shawaluk on 2015-07-19 11:58 am
The Tremolo.ms user object has been updated, with the following changes:


Please refer to the parent post for a description of the available parameters and a sample clip.

As always, feedback and suggestions are greatly appreciated.

Mike
Title: Re: Tremolo.ms (version 0.95)
Post by: William Ashworth on 2015-09-08 08:07 pm
Mike, have you given any thought to making a "trill" object? It seems as though it could just be a specialized tremolo object with a different symbol and with the tremolo limited to a half- or whole-step.
Title: Re: Tremolo.ms (version 0.95)
Post by: Mike Shawaluk on 2015-09-08 08:45 pm
Mike, have you given any thought to making a "trill" object? It seems as though it could just be a specialized tremolo object with a different symbol and with the tremolo limited to a half- or whole-step.
Funny you should mention this. A little while ago I made a prototype object that does just the drawing part.  If you have some experience in the different types of trills, I would appreciate your expertise, if you are interested. I've noticed that there are a number of ornaments available (accidental symbols and the like) and would want to implement the options that are of most use.

Thanks,
Mike

EDIT : Please make any further replies to this thread (https://forum.noteworthycomposer.com/?topic=9201.0). Thanks!
Title: Re: Tremolo.ms (version 1.0)
Post by: Flurmy on 2016-02-07 08:37 pm
How can i remove the "flags" from the stems since I can't beam the rest chords?

Code: (nwc) [Select · Download]
!NoteWorthyComposerClip(2.75,Single)
|RestChord|Dur:16th|Opts:Stem=Down,ArticulationsOnStem,HideRest|Dur2:8th|Pos2:1
|User|Tremolo.ms|Pos:1
|RestChord|Dur:16th|Opts:Stem=Down,ArticulationsOnStem,HideRest|Dur2:8th|Pos2:-1
|RestChord|Dur:16th,DblDotted|Opts:Stem=Down,ArticulationsOnStem,HideRest|Dur2:8th,Dotted|Pos2:#-3
|User|Tremolo.ms|Pos:1
|RestChord|Dur:16th,DblDotted|Opts:Stem=Down,ArticulationsOnStem,HideRest|Dur2:8th,Dotted|Pos2:#-5
!NoteWorthyComposerClip-End
Title: Re: Tremolo.ms (version 1.0)
Post by: Rick G. on 2016-02-07 09:44 pm
How can i remove the "flags" from the stems since I can't beam the rest chords?
Code: (nwc) [Select · Download]
!NoteWorthyComposerClip(2.75,Single)
|RestChord|Dur:16th|Opts:Stem=Down,ArticulationsOnStem,HideRest|Dur2:4th|Pos2:1
|User|Tremolo.ms|Pos:1
|RestChord|Dur:16th|Opts:Stem=Down,ArticulationsOnStem,HideRest|Dur2:4th|Pos2:-1
|RestChord|Dur:16th,DblDotted|Opts:Stem=Down,ArticulationsOnStem,HideRest|Dur2:4th,Dotted|Pos2:#-3
|User|Tremolo.ms|Pos:1
|RestChord|Dur:16th,DblDotted|Opts:Stem=Down,ArticulationsOnStem,HideRest|Dur2:4th,Dotted|Pos2:#-5
!NoteWorthyComposerClip-End
Title: Re: Tremolo.ms (version 1.0)
Post by: Flurmy on 2016-02-07 10:00 pm
The timing is established by the rests!
I forgot that.
Thank you.
Title: Re: Tremolo.ms (version 1.0)
Post by: Mike Shawaluk on 2016-02-07 10:24 pm
The timing is established by the rests!
I forgot that.
Thank you.
Rick answered before I saw your post; as you (re)discovered, eighth note tremolos use a quarter note as the base note, so there are no pesky flags to get in the way when the object draws the beams.

If you use the Make Tremolo.ms.lua (https://forum.noteworthycomposer.com/?topic=9256.0) user tool, it does some of this for you.

Thanks,
Mike
Title: Re: Tremolo.ms (version 1.0)
Post by: Flurmy on 2016-02-08 10:06 pm
you (re)discovered, eighth note tremolos use a quarter note as the base note, so there are no pesky flags to get in the way when the object draws the beams.
This is one of the quirks I don't like of objects,
It goes along with the need to mute the "official" notes in an arpeggio but not the subsequent tied chords…
I regularly forget something.

So, kudos for Mike for the good work and for having demonstrated that many thing are indeed possible, but for such common tasks I would have hoped for something much more immediate and user friendly.
After all, the user friendlyness is one of the strength of NWC.
Title: Re: Tremolo.ms (version 1.0)
Post by: Mike Shawaluk on 2016-02-08 11:59 pm
This is one of the quirks I don't like of objects,
It goes along with the need to mute the "official" notes in an arpeggio but not the subsequent tied chords…
I regularly forget something.
If the current objects have a shortcoming, it is that they can't change the properties of notes or other elements in a score; they can only add drawing and playback. Hence, things need to be muted or made invisible in order for the object to do its work.

Perhaps the next generation of objects will have a way to "tell" a NWC note/chord to be mute, or hide its beams/stems/noteheads so the user doesn't need to make those changes. I am looking forward to seeing what the next version brings.

Mike
Title: Re: Tremolo.ms (version 1.0)
Post by: Flurmy on 2016-03-25 09:43 pm
I discovered that the dynamic variances are ignored by tremolo object.
Don't worry, I know a workaround.
That's just for your information.
Title: Re: Tremolo.ms (version 1.0)
Post by: Mike Shawaluk on 2016-03-26 01:25 am
I discovered that the dynamic variances are ignored by tremolo object.
Don't worry, I know a workaround.
That's just for your information.
Thanks for mentioning this. There is actually an enhancement to Tremolo and TremoloSingle that I have been considering that might be related to this. If you would post an example of what you observed, along with your workaround, it will confirm whether we are thinking about the same issue.

Thanks,
Mike
Title: Re: Tremolo.ms (version 1.0)
Post by: Flurmy on 2016-03-26 09:51 am
That's it, Mike:
Code: (nwc) [Select · Download]
!NoteWorthyComposerClip(2.75,Single)
|Dynamic|Style:pp|Pos:-10|Wide:Y
|Dynamic|Style:ff|Pos:-10|Wide:Y|Visibility:Never
|MPC|Controller:exp|Style:Linear Sweep|TimeRes:Quarter|SweepRes:10|Pt1:0,26|Pt2:4,127|Pos:8|Wide:Y
|RestChord|Dur:Half|Opts:Stem=Up,Crescendo,Muted,HideRest|Dur2:Whole|Pos2:8,10
|User|Tremolo.ms|Pos:0|Beams:2
|RestChord|Dur:Half|Opts:Stem=Up,Crescendo,Muted,HideRest|Dur2:Whole|Pos2:6
|Bar
|Dynamic|Style:ff|Pos:-9.5
|Chord|Dur:Whole|Pos:6,8,10
!NoteWorthyComposerClip-End
Title: Re: Tremolo.ms (version 1.0)
Post by: Richard Woodroffe on 2016-03-26 01:41 pm
 Changing the channel volume via the dynamic works too.


Code: (nwc) [Select · Download]
!NoteWorthyComposerClip(2.75,Single)
|Dynamic|Style:pp|Opts:Volume=30|Pos:-10|Wide:Y
|RestChord|Dur:Half|Opts:Stem=Up,Crescendo,Muted,HideRest|Dur2:Whole|Pos2:8,10
|User|Tremolo.ms|Pos:0|Beams:2
|RestChord|Dur:Half|Opts:Stem=Up,Crescendo,Muted,HideRest|Dur2:Whole|Pos2:6
|Bar
|Dynamic|Style:ff|Opts:Volume=108|Pos:-9.5
|Chord|Dur:Whole|Pos:6,8,10
!NoteWorthyComposerClip-End
Title: Re: Tremolo.ms (version 1.0)
Post by: Flurmy on 2016-03-26 03:09 pm
Yes, right. But usually I prefer to leave the volume untouched (using expression instead) so at the end I can do a fine mixing with the staff volume parameter.
Title: No slur and wrong duration
Post by: Flurmy on 2017-04-15 02:05 pm
I don't understand why the tremolo object can't be slurred.
Code: (nwc) [Select · Download]
!NoteWorthyComposerClip(2.751,Single)
|RestChord|Dur:4th|Opts:Stem=Up,Muted,HideRest|Dur2:Half,Dotted,Slur|Pos2:b5,8
|User|Tremolo.ms|Pos:0|Beams:1|TripletPlayback:Y|Style:2
|RestChord|Dur:4th,Slur|Opts:Stem=Up,Muted,HideRest|Dur2:Half,Dotted,Slur|Pos2:4
|Note|Dur:8th,Slur|Pos:3|Opts:Stem=Down,Beam=First
|Note|Dur:8th|Pos:1|Opts:Stem=Down,Beam=End
|Bar
!NoteWorthyComposerClip-End
Furthermore, the tremolo duration is 2/4 while it should be 3/4 (the dot is ignored).
N.B. I made the tremolo using the embedded user tool.
Title: Re: No slur and wrong duration
Post by: Mike Shawaluk on 2017-04-15 09:56 pm
I don't understand why the tremolo object can't be slurred.
...
Furthermore, the tremolo duration is 2/4 while it should be 3/4 (the dot is ignored).
N.B. I made the tremolo using the embedded user tool.
The current embedded tool does not make the rest portion dotted when the note is dotted; perhaps I need to change it. In the meanwhile, you can select the notes and press the . key three times to get the correct playback duration. Also be aware that the tool will set the "Triplet Playback" checkbox when the source notes are dotted (this is per feedback from @Richard Woodroffe during development of the object). It also appears that when the embedded tool converts the chords into rest chords, it does not preserve the slur property, so that it has to be reapplied. I will also look into this.
Title: Re: No slur and wrong duration
Post by: Mike Shawaluk on 2017-04-15 11:22 pm
The beta version of Tremolo.ms (in the Backstage forum) has been updated to version 2.0b. Its embedded user tool will now properly set the dotted duration of the rest portions, and will preserve slurs from the original notes. (Note that the actual object drawing and playback code has not changed)
Title: Re: Tremolo.ms (version 1.0)
Post by: Flurmy on 2017-04-16 07:33 am
Mike,
I already added the dots to the rests; I was just informing you of the problem.

Quote
It also appears that when the embedded tool converts the chords into rest chords, it does not preserve the slur property, so that it has to be reapplied.
The fix wasn't so easy: it was simply not possible to slur the tremolo. I don't know why.

Anyway, forget it: the new beta seems ok.
Thank you a lot, Mike.
Title: Re: Tremolo.ms (version 1.0)
Post by: Rick G. on 2017-04-16 02:52 pm
it was simply not possible to slur the tremolo. I don't know why.
Code: (nwc) [Select · Download]
|RestChord|Dur:4th|Opts:Stem=Up,Muted,HideRest|Dur2:Half,Dotted,Slur|Pos2:b5,8
Something (perhaps a User Tool) managed to create a Dur: without a slur and a Dur2: with a slur. This confuses the GUI which shows a slur but won't let you remove it. Or fix it.
Title: Re: Tremolo.ms (version 1.0)
Post by: Mike Shawaluk on 2017-04-16 04:31 pm
Code: (nwc) [Select · Download]
|RestChord|Dur:4th|Opts:Stem=Up,Muted,HideRest|Dur2:Half,Dotted,Slur|Pos2:b5,8
Something (perhaps a User Tool) managed to create a Dur: without a slur and a Dur2: with a slur. This confuses the GUI which shows a slur but won't let you remove it. Or fix it.
That is exactly what happened (and what needed to be fixed in the embedded tool).
Title: Re: Tremolo.ms (version 1.0)
Post by: Flurmy on 2017-04-17 05:40 am
So the problem is not only solved but also fully understood: Good.
Thanks Mike and Rick.
Title: Re: Tremolo.ms (version 2.0b)
Post by: Mike Shawaluk on 2017-08-28 09:56 pm
The Tremolo.ms user object has been updated, with the following changes:


Please refer to the parent post for a description of the available parameters and a sample clip.

Title: Re: Tremolo.ms (2.0c)
Post by: Mike Shawaluk on 2018-03-02 04:24 pm
The Tremolo.ms user object has been updated, with the following changes:


Please note that no changes have been made to the actual Tremolo.ms drawing/playback operation.

Please refer to the parent post for a description of the available parameters and a sample clip.
Title: Re: Tremolo.ms (2.0c)
Post by: Rick G. on 2018-03-02 04:42 pm
The embedded user tool has been updated, to no longer set TripletPlayback automatically for dotted notes.
Good improvement.
Title: Re: Tremolo.ms (2.0c)
Post by: SEBC on 2018-06-04 02:12 pm
Well, I succeeded in implementing whole note tremolos today. I'm not sure why my position looked different from the sample clip, and if it matters if the lines are a bit higher or lower. What's the thinking on this? Also, I had first hidden the rests, which then meant my notes were also hidden. I didn't know until now that there was an option to hide rests in the rest chord.

I see on Wikipedia that they are showing bass note tremolo lines as parallel to the notes, half way between them. Is this the normal notation? Is the plug-in able to do this instead of angled lines?

https://en.wikipedia.org/wiki/Tremolo#Notation

My use of tremolos to this point has been bass clef octave whole note trem. for piano accompaniments. I think this will work very well. Thank you for developing this tool!
Title: Re: Tremolo.ms (2.0c)
Post by: Mike Shawaluk on 2018-06-04 02:53 pm
For whole note tremolos, the position of the beams will be different depending on whether the rest chords have the rests on the top or bottom. You can flip the direction by highlighting the rest chord and pressing Shift+Up or Shift+Down. Also, note that both rest chords must be in the same direction in order for the tremolo to be drawn.

It would not be difficult to add an offset parameter that would allow the angle of the beams for whole note tremolos to be adjusted. Currently, they are drawn at the same angle as the noteheads.

Thanks for the suggestions and kind words.
Title: Re: Tremolo.ms (2.1)
Post by: Mike Shawaluk on 2018-06-04 05:49 pm
The Tremolo.ms user object has been updated, with the following changes:


Please refer to the parent post for a description of the available parameters and a sample clip.

Title: Re: Tremolo.ms (2.1)
Post by: SEBC on 2018-06-04 06:09 pm
Woah! That was fast!
Title: Re: Tremolo.ms (2.1)
Post by: Mike Shawaluk on 2018-06-04 07:19 pm
Apparently a little too fast - I should have tested more thoroughly. Please resync your plugin, there was a small typo I missed that could break some other tremolo durations.
Title: Re: Tremolo.ms (2.1)
Post by: Peter Edwards on 2019-03-03 03:24 pm
Would it be possible to incorporate a 'beam gap' feature like the one in beam.hmm? 32nd tremolos look very heavy with a beam gap of one, when the actual spacing should a half. It's a pity that NW doesn't yet do this anyway!
Title: Re: Tremolo.ms (2.1)
Post by: Mike Shawaluk on 2019-03-03 09:34 pm
I'm not visualizing what you are looking for. Can you provide a score snippet that shows an example or two?
Title: Re: Tremolo.ms (2.1)
Post by: Peter Edwards on 2019-03-04 09:00 am
Code: (nwc) [Select · Download]
!NoteWorthyComposerClip(2.751,Single)
|Clef|Type:Treble
|Key|Signature:F#|Tonic:G
|TimeSig|Signature:2/4
|RestChord|Dur:4th|Opts:Stem=Down,StemLength=9,Muted,HideRest|Dur2:Half|Pos2:-6
|User|Tremolo.ms|Pos:0|Style:3
|RestChord|Dur:4th|Opts:Stem=Down,StemLength=8.5,Muted,HideRest|Dur2:Half|Pos2:-5
|Bar
|Note|Dur:32nd|Pos:-6|Opts:Stem=Up,Beam=First
|Note|Dur:32nd|Pos:-5|Opts:Stem=Up,Beam
|Note|Dur:32nd|Pos:-6|Opts:Stem=Up,Beam
|Note|Dur:32nd|Pos:-5|Opts:Stem=Up,Beam
|Note|Dur:32nd|Pos:-6|Opts:Stem=Up,Beam
|Note|Dur:32nd|Pos:-5|Opts:Stem=Up,Beam
|Note|Dur:32nd|Pos:-6|Opts:Stem=Up,Beam
|Note|Dur:32nd|Pos:-5|Opts:Stem=Up,Beam=End
|User|Beam.hmm|Pos:6.5|Span:8|BeamGap:0.5|FinalStemLength:5.5
|Note|Dur:32nd|Pos:-6|Opts:StemLength=0
|Note|Dur:32nd|Pos:-5|Opts:StemLength=0
|Note|Dur:32nd|Pos:-6|Opts:StemLength=0
|Note|Dur:32nd|Pos:-5|Opts:StemLength=0
|Note|Dur:32nd|Pos:-6|Opts:StemLength=0
|Note|Dur:32nd|Pos:-5|Opts:StemLength=0
|Note|Dur:32nd|Pos:-6|Opts:StemLength=0
|Note|Dur:32nd|Pos:-5|Opts:StemLength=0
!NoteWorthyComposerClip-End

NW's beam spacing is too wide – it should be half a space (Behind Bars p17) but we can now use 'Beam.hmm' to get the right effect (second group of 32nds). As an aside, to my eye the beams are slightly too thick and marginally too high (pos 6.4 works better).

Single note tremolos should follow this spacing but with thinner strokes (BB p221) but two note tremolos have the ordinary beam thickness and spacing (BB p225).
Title: Re: Tremolo.ms (2.1)
Post by: Mike Shawaluk on 2019-03-04 01:38 pm
I thought that I had implemented the same beam spacing for tremolos as NWC did for regular beams, but I now see that I did not. It is fairly easy to change this. If you don't mind tweaking code, the spacing you desire (as specified by Behind Bars) can be done by changing the line 121 of Tremolo.ms.nwcuser.lua from:
Code: (lua) [Select · Download]
local beamHeight, beamSpacing, beamOffset = .8, 1.8, .6
to:
Code: (lua) [Select · Download]
local beamHeight, beamSpacing, beamOffset = 1, 1.5, .6
It would be nice if there was an easy method of specifying global "configuration" settings that would apply to all instances of a plugin. so that an additional parameter would not be needed for this under normal conditions.
Title: Re: Tremolo.ms (2.1)
Post by: Peter Edwards on 2019-03-05 02:00 pm
That works very nicely – thanks for the prompt response. And yes, it would indeed be a good thing to be able to store your own preferences.
Title: Re: Tremolo.ms (2.1)
Post by: SEBC on 2019-11-08 10:22 pm
Eeks, Mike, is there a way to do this without tweaking code? I don't even know where I would start. Sometimes getting the computer up and running is enough of a challenge. :)
Title: Dot ignored
Post by: Flurmy on 2022-12-11 05:44 pm
Re-reading this thread seems that the problem of the dotted notes was solved.
Apparently, somewhere somehow the patch has been lost because the problem is still present.
Mike, could you please take a look?
Thanks
Title: Re: Tremolo.ms (2.1)
Post by: Flurmy on 2022-12-11 07:32 pm
Let me say it better: the notes are ok (dotted), the rests are not.
Title: Re: Tremolo.ms (2.1)
Post by: Mike Shawaluk on 2022-12-11 08:53 pm
Let me say it better: the notes are ok (dotted), the rests are not.
Can you give me an example score snippet that has the issue you are describing? It is hard to fix something when I can't see it :)
Title: Re: Tremolo.ms (2.1)
Post by: Flurmy on 2022-12-11 09:09 pm
Of course!
Code: (nwc) [Select · Download]
!NoteWorthyComposerClip(2.751,Single)
|RestChord|Dur:8th|Opts:Stem=Down,Muted,HideRest|Dur2:4th,Dotted|Pos2:0
|User|Tremolo.ms|Pos:0|TripletPlayback:Y
|RestChord|Dur:8th|Opts:Stem=Down,Muted,HideRest|Dur2:4th,Dotted|Pos2:-2
!NoteWorthyComposerClip-End
Title: Re: Tremolo.ms (2.1)
Post by: hmmueller on 2022-12-11 09:23 pm
Hm - I just tried it, and it worked - see the attached image: Left measure shows the initial notes; when I mark both of them and then run the Tremolo plugin's user tool, I get what ist een in the next measure: Both the notes and the rests are dotted.

H.M.

Title: Re: Tremolo.ms (2.1)
Post by: Mike Shawaluk on 2022-12-12 01:45 am
I get the same result. Flurmy, are you having a problem with the Tremolo.ms auto user tool, or is it something else you're experiencing?
Title: Re: Tremolo.ms (2.1)
Post by: Flurmy on 2022-12-12 09:30 pm
Got it!
when I mark both of them and then run the Tremolo plugin's user tool
I'm not running "Tremolo.ms.nwcuser.lua". (As Harald wrote, it works fine.)
I go to .automatic, then "Make tremolo.ms"!
This runs "Make Tremolo.ms.lua" that's old and bugged.

Probably it's obsolete, but it remained in my tool list.
I suppose the same for "Make TremoloSingle.ms.lua", "Convert Text to ChordPlay.nw.lua" and "Convert Text to ChordPlay.nw.lua".
In practice, almost all that went into "AutoUserTools".
Title: Re: Tremolo.ms (2.1)
Post by: Mike Shawaluk on 2022-12-13 03:12 am
Those old standalone user tools were written before NWC was updated to allow built-in user tools. I consider those older tools obsolete, but of course I can't delete them from peoples' computers :)
Title: Re: Tremolo.ms (2.1)
Post by: Flurmy on 2022-12-13 06:49 pm
I consider those older tools obsolete
Me too, but I forgot to delete them... and I forgot about them!
Sorry, mates.