NoteWorthy Software, Inc.
2014-04-16 07:36 AM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Licensed NWC2 users can upgrade their community membership [more]
 
   Home   Help Login Register  
Pages: [1]   Go Down
  Print  
Author Topic: Working Tremolos  (Read 26590 times)
Peter Edwards
Virtuoso
« on: 2007-10-15 01:04 PM »

Not being a fan of hidden playing staffs (too much scope for errors when something on a visible staff is changed) I thought it would be useful to implement 16th and 32nd tremolos on layered staffs instead, so that you get the minim noteheads and the (demi)semiquaver beaming.

To install the tool copy it to the scripts directory and take the ".txt" extension off. Add it twice to user tools with a command line of wscript scripts\newtremolo.vbs 32. The first time omit the 32.

Then you just insert two minims (optionally dotted ), select them and run the tool. Then you have to cut and paste half of the output to a layered staff.
The editor looks a bit messy but the printed output is exactly as required.

If you set stemlength for a note then it is preserved and articulations and stem direction of the first note are also preserved.

Edited 02/11/07 to correct "dotted" bug, and also the case of a note/chord tremolo.
Edited 23/03/13 to remove need for cutting and pasting from second staff.

* NewTremolo.vbs.txt (6.81 KB - downloaded 149 times.)
« Last Edit: 2013-03-25 05:01 AM by Peter Edwards » Logged
Lawrie Pardy
Virtuoso


« Reply #1 on: 2007-10-15 09:05 PM »

G'day Peter,
nice one mate.  Though it did take me a second or 2 to figure out what to cut and paste where - bit thick this morning ;)

I have done something similar manually and without layering, but it requires placing the minim noteheads as text and doesn't always line up very well.  Yours looks better.
Logged

I plays 'Bones, crumpets, coronets, floosgals 'n youfonymums
Rick G.
Virtuoso
« Reply #2 on: 2007-10-15 11:45 PM »

And stem up chords with a second don't work since the rest in the RestChord is positioned over the wrong note!
I do not concur.
Logged

Registered user since 1996
Peter Edwards
Virtuoso
« Reply #3 on: 2007-10-16 03:47 AM »

A gremlin removed the example file from my original post (hence Lawrie's slight confusion). Apologies and here it is

* TremoloExamples.nwc (0.56 KB - downloaded 816 times.)
Logged
Peter Edwards
Virtuoso
« Reply #4 on: 2007-10-16 05:13 AM »

Quote
I do not concur.

I thought that a bit curt until I realised that you were pointing to another thread. But I don't think you are right. Rests are positioned in the same way as notes (with one whole exception) and the attached file shows that this is not the case with a restchord. The layered example follows the conventions; the restchord does not.

 And the following examples (with the rests brought back into the picture) show the resulting problem.

I too looked for a rest chorded with a second in engraved music and, bingo. Novello's new choral edition of Bach's Magnificats in D and Eb Page 98 3rd bar top system shows the rest aligned with the head note. QED!


* RestChordSecondBach.jpg (19.52 KB, 280x518 - viewed 1656 times.)
* RestChordTremoloAlignmentProblem.nwc (0.5 KB - downloaded 847 times.)
Logged
Rick G.
Virtuoso
« Reply #5 on: 2007-10-16 06:02 AM »

Your jpeg is stem down (nevermind how NWC wrongly defines it). My <example> is stem up and I have yet to see an example of quality music printing that contradicts it. I can post a scan of the Debussy if you like.

The natural in your example is also a problem as a RestChord. Good luck getting NWC to change anything about them. I would certainly like to see RestChord beaming supported, but my pleas have fallen on deaf ears.

Sorry to sound harsh, but I have devoted several hours to the issue of rest vs. note placement in RestChords. IMO, it is settled. In particular, I do not want to see <this> changed by some misguided notion of correctness. It would break dozens of my songs.

BTW, I rather like the attached. No grace notes, stem lengths are either default, 1 or 0. A bit messier in the Editor, but they take up a lot less space on the printed page. MIDI is theoretically deficient, but good enough for most purposes.

* rg_TremoloExamples_01.nwc (0.55 KB - downloaded 862 times.)
« Last Edit: 2007-10-16 07:00 AM by Rick G. » Logged

Registered user since 1996
Peter Edwards
Virtuoso
« Reply #6 on: 2007-10-16 07:15 AM »

I could respond equally harshly but you are hoist with your own petard!

Code:   [Select · Download]
!NoteWorthyComposerClip(2.0,Single)
|Clef|Type:Treble
|TimeSig|Signature:2/2
|Chord|Dur:Half|Pos:-3,-2,1x|Opts:Stem=Down
|RestChord|Dur:4th|Opts:Stem=Up,ArticulationsOnStem|Dur2:Half|Pos2:-3,-2
|Bar
|Chord|Dur:Half|Pos:-9x,-6,-3,-2,b0|Opts:Stem=Up
|RestChord|Dur:4th|Opts:Stem=Down,ArticulationsOnStem|Dur2:Half|Pos2:-6,-3,-2,b0
!NoteWorthyComposerClip-End

This clip is your own example (with the time values halved) and with the equivalent RestChords inserted.

The first RestChord does not correspond with your definitive statement of what it should look like.

My problem (and Lawrie's original one) stems from this error. I have no quibble whatsoever with your Debussy example (similar to the second bar configuration) and don't really understand why you have raised it as an issue. But you did say
Quote
Sorry, can't concur. I could be convinced, but I'd have to see some scans.
so that's what you got.

Now to be constructive: can you explain why the script runs instantaneously on my W2000 machine but takes 12 seconds on my faster XP Pro. It evidently runs the script quite quickly but then takes an age to produce the output.
Logged
Rick G.
Virtuoso
« Reply #7 on: 2007-10-16 08:44 AM »

Peter, I think we are describing these differently. You are saying stem up|down based on what the Clip says. I refer to stem up|down based on whether the stem is visually up|down. I think we both agree that NWC does this wrong half the time, but disagree over how to describe it.

I need the tight spacing shown here:
Code:   [Select · Download]
!NoteWorthyComposerClip(2.0,Single)
|RestChord|Dur:8th|Opts:Stem=Up|Dur2:8th|Pos2:-1,0
|RestChord|Dur:8th|Opts:Stem=Up|Dur2:8th|Pos2:-1,0
|RestChord|Dur:8th|Opts:Stem=Down|Dur2:8th|Pos2:-1,0
|RestChord|Dur:8th|Opts:Stem=Down|Dur2:8th|Pos2:-1,0
|RestChord|Dur:8th|Opts:Stem=Up|Dur2:8th,Dotted|Pos2:-1,0
|RestChord|Dur:8th|Opts:Stem=Down|Dur2:8th,Dotted|Pos2:-1,0
|RestChord|Dur:8th|Opts:Stem=Up|Dur2:8th,DblDotted|Pos2:-1,0
|RestChord|Dur:8th|Opts:Stem=Down|Dur2:8th,DblDotted|Pos2:-1,0
|Bar
!NoteWorthyComposerClip-End
This is much more important to me than saving a layer. I fear that if NWC were to change the rest position, the spacing would expand. That is why I do not concur.

I didn't look at your code longer than to see that you used regular expressions. A few years ago, I spent over 40 hours trying to understand RegEx. I failed and do not wish to repeat the experience. If I could use RegEx with any confidence, all my tools would be done in JavaScript instead of VBScript.

I've never used Win2K. One difference between XP and Win98 is the way STDIN is handled. I would look there first. Generally, I like to consume it by using WScript.ReadAll

Edit: I've had a chance to examine your code. At Line:36, you have WScript.Quit inside your With Look block.
Quote from: script56.chm
Important Do not jump into or out of With blocks. If statements in a With block are executed, but either the With or End With statement is not executed, you may get errors or unpredictable behavior.
WScript.Quit is a jump out. I lack the tools to verify that this is a problem.
« Last Edit: 2007-10-16 10:08 AM by Rick G. » Logged

Registered user since 1996
Rob den Heijer
NWC2 User


« Reply #8 on: 2007-10-16 10:32 AM »

Rick,

I am sorry that you examined regular expressions and did not quite get along.
I can, with tongue firmly in cheek, say that for me a life without regular expressions is not worth living.
That is because with them I can produce scripts (in my case in TSE, which unfortunately does not quite follow the world's accepted conventions) that are compact, comprehensive, (for me) easy to maintain, and lightning fast. But hey, so far I did not manage to convince many of the usefulness of reg.ex-es...
True, they can look like Klingon curses, but they do serve their purpose beautifully!

cheers,
Rob.

Logged
Peter Edwards
Virtuoso
« Reply #9 on: 2007-10-16 10:46 AM »

Rick

Thanks for looking at this but it's not the code. I can verify that the code itself runs in under one second.

Even a simple
Code:   [Select · Download]
wscript.echo "hello world"
executes and then hangs for about ten seconds. PHP programs run as expected however.

I guess we'll just have to differ on RestChords. Interestingly there is the same misalignment on split stem chords
Code:   [Select · Download]
|Chord|Dur:8th|Pos:2o|Opts:Stem=Up|Dur2:8th|Pos2:-3o,-2o|Color:0|Visibility:Default
Logged
Rick G.
Virtuoso
« Reply #10 on: 2007-10-16 11:02 AM »

Even a simple
Code:   [Select · Download]
wscript.echo "hello world"
executes and then hangs for about ten seconds.
My XP (Home Edition) box runs just as fast as Win98. You might have a dodgy wscript.exe/cscript.exe installation or an inefficient virus checker. PHP doesn't seem to do ActiveX so it may pass virus checks faster. You might try a JavaScript or Python version of "Hello World".
Logged

Registered user since 1996
Peter Edwards
Virtuoso
« Reply #11 on: 2007-10-16 12:30 PM »

Well I tried running "Hello World" outside NWC and it worked fine. No exit delay at all.
Logged
NoteWorthy Online
Admin


« Reply #12 on: 2007-10-16 04:05 PM »

A delay after execution of a script would imply that the process is not terminating in a timely fashion. NWC2 uses a CreateProcess call to start the user tool. NWC2 gives the tool/script 60 seconds in which to complete and return control back to NWC2, after which it terminates the process (thus aborting it).
Logged
Peter Edwards
Virtuoso
« Reply #13 on: 2007-10-24 10:34 AM »

NWC2 gives the tool/script 60 seconds in which to complete and return control back to NWC2

But my script returns after about twelve seconds so it is not being aborted in the manner you describe. There is an apparent delay in writing StdOut and returning control to NWC but otherwise the script seems to work correctly.
Logged
Warren Porter
Virtuoso


« Reply #14 on: 2007-10-24 11:56 AM »

Just tried to install it but got an error
Code:   [Select · Download]
Line 14
char 3
The handle is invalid
80070006
(null)

Following lines in edit of orig. message:
Tried again while running NWC2 and the user tool.  Error at the same place but the error message was "input past end of file".
Logged

Since 1998
Peter Edwards
Virtuoso
« Reply #15 on: 2007-10-25 06:55 AM »

It works only when you select precisely two minims. Running it outside NWC2, or on an empty staff or with just one item selected will produce your error messages and I suppose code could be written to trap this but really life's too short ;-)
Logged
Rick G.
Virtuoso
« Reply #16 on: 2007-10-25 07:01 AM »

For normal minims, the tool works as you describe for WinXP and Win98.

For dotted minims, the tool adds dots to the 16th/32nd notes in addition to increasing the # of notes.

Edit: removed example as problem is now fixed.
« Last Edit: 2007-11-02 12:04 PM by Rick G. » Logged

Registered user since 1996
Peter Edwards
Virtuoso
« Reply #17 on: 2007-11-02 11:11 AM »

You're quite correct. It was a last minute decision to include articulations in the tremolo and this re-introduced the dots as well.

Now corrected in original post.
Logged
Peter Edwards
Virtuoso
« Reply #18 on: 2012-12-14 07:03 AM »

User tool fixed to ignore Fake and Context lines.
Logged
Rick G.
Virtuoso
« Reply #19 on: 2012-12-14 12:39 PM »

I have done something similar manually and without layering, but it requires placing the minim noteheads as text and doesn't always line up very well.  Yours looks better.
Wonder if and when is this tool going to be rendered obsolete?
Sometime back when NoteWorthy fixed the alignment problem that Lawrie mentioned.
Code: (nwc)   [Select · Download]
!NoteWorthyComposer(2.5)
|AddStaff|Name:"Staff"
|StaffProperties|EndingBar:Open (hidden)|WithNextStaff:Layer
|Clef|Type:Treble
|Key|Signature:Bb,Eb,Ab|Tonic:C
|Tempo|Tempo:60|Pos:9
|TimeSig|Signature:2/4
|RestChord|Dur:4th|Opts:Stem=Up,StemLength=7,Muted,HideRest|Dur2:Half|Pos2:1
|RestChord|Dur:4th|Opts:Stem=Up,StemLength=7,Muted,HideRest|Dur2:Half|Pos2:-1
|Bar
|Text|Text:"j"|Font:StaffSymbols|Pos:1|Placement:AtNextNote
|Note|Dur:16th|Pos:1z|Opts:Stem=Down,Beam=First
|Spacer|Width:200
|Note|Dur:16th|Pos:-1|Opts:Stem=Down,Beam|Visibility:Never
|Note|Dur:16th|Pos:1|Opts:Stem=Down,Beam|Visibility:Never
|Note|Dur:16th|Pos:-1|Opts:Stem=Down,Beam|Visibility:Never
|Text|Text:"j"|Font:StaffSymbols|Pos:-1|Placement:AtNextNote
|Instrument|Name:"[+4]    "|Trans:4|DynVel:10,30,45,60,75,92,108,127|Pos:11|Justify:Right|Placement:AtNextNote|Visibility:Never
|Note|Dur:16th|Pos:-1z|Opts:Stem=Down,Beam=End
|Instrument|Name:"[0]    "|Trans:0|DynVel:10,30,45,60,75,92,108,127|Pos:7|Justify:Right|Placement:AtNextNote|Visibility:Never
|Note|Dur:16th|Pos:-1|Opts:Stem=Down,Beam=First|Visibility:Never
|Note|Dur:16th|Pos:1|Opts:Stem=Down,Beam|Visibility:Never
|Note|Dur:16th|Pos:-1|Opts:Stem=Down,Beam=End|Visibility:Never
|Spacer|Width:200
|Bar
|AddStaff|Name:"Staff-1"
|StaffProperties|EndingBar:Open (hidden)
|StaffProperties|Volume:-1|StereoPan:-1
|Clef|Type:Treble|Visibility:Never
|Key|Signature:Bb,Eb,Ab|Tonic:C|Visibility:Never
|TimeSig|Signature:2/4|Visibility:Never
|Bar|Visibility:Never
|Note|Dur:16th|Pos:1z|Opts:Stem=Down,StemLength=7,Beam=First
|Note|Dur:16th|Pos:-1|Opts:Stem=Down,Beam|Visibility:Never
|Note|Dur:16th|Pos:1|Opts:Stem=Down,Beam|Visibility:Never
|Note|Dur:16th|Pos:-1|Opts:Stem=Down,Beam|Visibility:Never
|Note|Dur:32nd,Grace|Pos:1^|Opts:Stem=Up,Beam=First|Visibility:Never
|Note|Dur:32nd,Grace|Pos:1|Opts:Stem=Up,Beam=End|Visibility:Never
|Note|Dur:16th|Pos:-1z|Opts:Stem=Down,StemLength=7,Beam=End,Muted
|Note|Dur:16th|Pos:-1|Opts:Stem=Down,Beam=First|Visibility:Never
|Note|Dur:16th|Pos:1|Opts:Stem=Down,Beam|Visibility:Never
|Note|Dur:16th|Pos:-1|Opts:Stem=Down,Beam=End|Visibility:Never
|Bar
!NoteWorthyComposer-End
The "note chase" is a bit different.
« Last Edit: 2012-12-14 12:50 PM by Rick G. » Logged

Registered user since 1996
Peter Edwards
Virtuoso
« Reply #20 on: 2012-12-17 10:25 AM »

Interesting idea which doesn't quite work because it needs the second chord to be an exact transposition of the first.

However, muting the second chord and placing the first chord as grace notes in front of it achieves (nearly) the desired effect. But for some reason the playback mechanism renders the grace notes staccatissimo. This can be cured by a pedal or by muting a second (tied) grace note to let it ring. It probably doesn't matter at the speed a tremolo is usually played.

Code: (nwc)   [Select · Download]
!NoteWorthyComposer(2.5)
|Locale|ACP:1252
|Editor|ActiveStaff:1|CaretIndex:15|CaretPos:-6
|SongInfo|Title:""|Author:"<Name>"|Lyricist:""|Copyright1:"Copyright 2012 <Name>"|Copyright2:"All Rights Reserved"
|PgSetup|StaffSize:16|Zoom:7|TitlePage:Y|JustifyVertically:Y|PrintSystemSepMark:N|ExtendLastSystem:N|DurationPadding:Y|PageNumbers:0|StaffLabels:None|BarNumbers:None|StartingBar:1
|Font|Style:StaffItalic|Typeface:"Times New Roman"|Size:10|Bold:Y|Italic:Y|CharSet:0
|Font|Style:StaffBold|Typeface:"Times New Roman"|Size:8|Bold:Y|Italic:N|CharSet:0
|Font|Style:StaffLyric|Typeface:"Times New Roman"|Size:7|Bold:N|Italic:N|CharSet:0
|Font|Style:PageTitleText|Typeface:"Times New Roman"|Size:24|Bold:Y|Italic:N|CharSet:0
|Font|Style:PageText|Typeface:"Times New Roman"|Size:12|Bold:N|Italic:N|CharSet:0
|Font|Style:PageSmallText|Typeface:"Times New Roman"|Size:8|Bold:N|Italic:N|CharSet:0
|Font|Style:User1|Typeface:"Times New Roman"|Size:8|Bold:N|Italic:N|CharSet:0
|Font|Style:User2|Typeface:"Times New Roman"|Size:8|Bold:N|Italic:N|CharSet:0
|Font|Style:User3|Typeface:"Times New Roman"|Size:8|Bold:N|Italic:N|CharSet:0
|Font|Style:User4|Typeface:"Times New Roman"|Size:8|Bold:N|Italic:N|CharSet:0
|Font|Style:User5|Typeface:"Times New Roman"|Size:8|Bold:N|Italic:N|CharSet:0
|Font|Style:User6|Typeface:"Times New Roman"|Size:8|Bold:N|Italic:N|CharSet:0
|PgMargins|Left:1.27|Top:1.27|Right:1.27|Bottom:1.27|Mirror:N
|AddStaff|Name:"Staff"|Group:"Standard"
|StaffProperties|EndingBar:Section Close|Visible:Y|BoundaryTop:12|BoundaryBottom:12|Lines:5|WithNextStaff:Layer|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
|Key|Signature:Bb,Eb,Ab|Tonic:C
|Tempo|Tempo:60|Pos:9
|TimeSig|Signature:2/4
|Text|Text:"j"|Font:StaffSymbols|Pos:1|Placement:AtNextNote
|Note|Dur:16th|Pos:1z|Opts:Stem=Down,Beam=First
|Note|Dur:16th|Pos:-1|Opts:Stem=Down,Beam|Visibility:Never
|Note|Dur:16th|Pos:1|Opts:Stem=Down,Beam|Visibility:Never
|Note|Dur:16th|Pos:-1|Opts:Stem=Down,Beam|Visibility:Never
|SustainPedal|Pos:-11|Wide:Y|Visibility:Never
|Note|Dur:32nd,Grace|Pos:1|Opts:Stem=Up|Visibility:Never
|Text|Text:"j"|Font:StaffSymbols|Pos:-1|Placement:AtNextNote
|Note|Dur:16th|Pos:-1z|Opts:Stem=Down,Beam,Muted
|SustainPedal|Status:Released|Pos:-11|Wide:Y|Visibility:Never
|Note|Dur:16th|Pos:-1|Opts:Stem=Down,Beam|Visibility:Never
|Note|Dur:16th|Pos:1|Opts:Stem=Down,Beam|Visibility:Never
|Note|Dur:16th|Pos:-1|Opts:Stem=Down,Beam=End|Visibility:Never
|Bar
|Text|Text:"j"|Font:StaffSymbols|Pos:0|Placement:AtNextNote
|Text|Text:"j"|Font:StaffSymbols|Pos:2|Placement:AtNextNote
|Chord|Dur:16th|Pos:0z,2z|Opts:Stem=Down,Beam=First
|Chord|Dur:16th|Pos:6,7|Opts:Stem=Down,Beam|Visibility:Never
|Chord|Dur:16th|Pos:0,2|Opts:Stem=Down,Beam|Visibility:Never
|Chord|Dur:16th|Pos:6,7|Opts:Stem=Down,Beam|Visibility:Never
|Chord|Dur:16th,Grace|Pos:0^,2^|Opts:Stem=Up,Beam=First|Visibility:Never
|Chord|Dur:16th,Grace|Pos:0,2|Opts:Stem=Up,Beam=End,Muted|Visibility:Never
|Text|Text:"j"|Font:StaffSymbols|Pos:6|Placement:AtNextNote
|Text|Text:"j"|Font:StaffSymbols|Pos:7|Justify:Right|Placement:AtNextNote
|Chord|Dur:16th|Pos:6z,7z|Opts:Stem=Down,Beam,Muted
|Chord|Dur:16th|Pos:6,7|Opts:Stem=Down,Beam|Visibility:Never
|Chord|Dur:16th|Pos:0,2|Opts:Stem=Down,Beam|Visibility:Never
|Chord|Dur:16th|Pos:6,7|Opts:Stem=Down,Beam=End|Visibility:Never
|Bar
|Chord|Dur:Half|Pos:3,5,7
!NoteWorthyComposer-End
Logged
Rick G.
Virtuoso
« Reply #21 on: 2012-12-17 10:46 AM »

Interesting idea which doesn't quite work because it needs the second chord to be an exact transposition of the first.
My example "worked."

Here is another:
Code: (nwc)   [Select · Download]
!NoteWorthyComposer(2.5)
|AddStaff|Name:"Staff"
|StaffProperties|EndingBar:Open (hidden)
|Clef|Type:Treble
|Key|Signature:Bb,Eb,Ab|Tonic:C
|Tempo|Tempo:60|Pos:9
|TimeSig|Signature:2/4
|Text|Text:"j"|Font:StaffSymbols|Pos:0|Justify:Right|Placement:AtNextNote
|Text|Text:"j"|Font:StaffSymbols|Pos:2|Justify:Right|Placement:AtNextNote
|Chord|Dur:16th|Pos:0z,2z|Opts:Stem=Down,StemLength=8,Beam=First
|Chord|Dur:16th|Pos:6,7|Opts:Stem=Down,Beam|Visibility:Never
|Chord|Dur:16th|Pos:0,2|Opts:Stem=Down,Beam|Visibility:Never
|Chord|Dur:16th|Pos:6,7|Opts:Stem=Down,Beam|Visibility:Never
|Chord|Dur:4th,Grace|Pos:6^,7^|Opts:Muted|Visibility:Never
|Chord|Dur:4th,Grace|Pos:0^,2^|Visibility:Never
|Text|Text:"j "|Font:StaffSymbols|Pos:6|Justify:Right|Placement:AtNextNote
|Text|Text:"j"|Font:StaffSymbols|Pos:7|Justify:Right|Placement:AtNextNote
|Chord|Dur:16th|Pos:0z,2z,6z,7z|Opts:Stem=Down,StemLength=6,Beam=End
|Chord|Dur:16th|Pos:6,7|Opts:Stem=Down,Beam=First|Visibility:Never
|Chord|Dur:16th|Pos:0,2|Opts:Stem=Down,Beam|Visibility:Never
|Chord|Dur:16th|Pos:6,7|Opts:Stem=Down,Beam=End|Visibility:Never
|Bar
|Chord|Dur:Half|Pos:3,5,7
|Bar
!NoteWorthyComposer-End
Logged

Registered user since 1996
Peter Edwards
Virtuoso
« Reply #22 on: 2012-12-17 11:52 AM »

Your exanple did indeed work, but the idea has its limitations.

Your next example merely mimics the second bar of mine (and doesn't/can't use your transposition trick). But I don't understand why you have tied muted grace notes to the second chord, when muting the chord itself achieves much the same thing and is simpler.

Your tied (let ring) grace notes are functionally the same as my tied grace notes pair with the second chord muted, and this suffers from the same problem of ringing through the next chord until cut off by its repetition
Logged
Rick G.
Virtuoso
« Reply #23 on: 2012-12-17 04:29 PM »

Your exanple did indeed work, but the idea has its limitations.
Most ideas do. I did (and do not) not present it as a universal solution.

Your next example merely mimics the second bar of mine
On my machine, the playback is different.

(and doesn't/can't use your transposition trick).
I don't understand why you call transposition a "trick". In my example, I need a note to appear as it does, but sound 4 semitones higher. It would not occur to me to use anything but transposition to achieve this. Is this an attempt at disparagement?

But I don't understand why you have tied muted grace notes to the second chord, when muting the chord itself achieves much the same thing and is simpler.
The tied muted grace notes allow some notes (tones) to sound while muting others.

Your tied (let ring) grace notes are functionally the same as my tied grace notes pair with the second chord muted, and this suffers from the same problem of ringing through the next chord until cut off by its repetition
"Let ring" notes are notes that are tied to muted notes. I do not have any of them in my examples. I do not hear any problems in my examples.

I would refer you to the documentation of the Grace Notes Command
[Grace notes] will steal time from the full (non-grace) note that follows them when the staff is played back.
Nowhere is it stated how long the grace note will sound or how much time will be stolen. Given a choice between documented and undocumented behavior, I prefer the latter.

I also take NoteWorthy's comments in this topic as further documentation: Muted notes and muted staves

In summary, the topic title is Working Tremolos. All of my examples here "work" in the sense that they display and sound as I would expect. However, this is the User Tools board and as the topic starter, you own it. Since my replies do not deal with using a tool to create a tremolo, feel free to remove any of them as well as your references to them.
Logged

Registered user since 1996
Peter Edwards
Virtuoso
« Reply #24 on: 2013-03-24 04:56 PM »

No need for layered staffs any more it's all done in situ!

Temporarily stymied by dotted notes throwing the rhythm out but now the dots are text as well. (And note to NW, suppressing number of dots in clusters technique might be more aesthetic than current treatment?)

Now I'd like to move on to tremolo on a single minim. But how do you get the beams (text or naturally) centred on the stem? I can achieve it using similar methods to the above but the beams show note stems, and I can't find a text font that has anything approaching a slanted beam. Help!
Logged
Rick G.
Virtuoso
« Reply #25 on: 2013-03-24 09:20 PM »

I can't find a text font that has anything approaching a slanted beam. Help!
NWORN3.ttf
Code: (nwc)   [Select · Download]
!NoteWorthyComposer(2.5)
|Font|Style:User1|Typeface:"NWC Extra Ornaments v3"|Size:16
|AddStaff|Name:"Staff"
|StaffProperties|EndingBar:Open (hidden)
|Text|Text:"$ "|Font:User1|Pos:0|Justify:Center|Placement:AtNextNote
|Note|Dur:Half|Pos:3
|Text|Text:"% "|Font:User1|Pos:0|Justify:Center|Placement:AtNextNote
|Note|Dur:Half|Pos:3
|Text|Text:"^ "|Font:User1|Pos:1|Justify:Center|Placement:AtNextNote
|Note|Dur:4th|Pos:3
!NoteWorthyComposer-End


* Topic 6207 rg01.png (3.46 KB, 282x211 - viewed 334 times.)
« Last Edit: 2013-03-24 09:39 PM by Rick G. » Logged

Registered user since 1996
Rick G.
Virtuoso
« Reply #26 on: 2013-03-25 03:46 AM »

There is a are two bugs in the RestChord construct that cause problems. Slurs (in their default state) are attached to the rest rather than to the note which makes slurring tricky and a strictly manual post operation. And stem up chords with a second don't work since the rest in the RestChord is positioned over the wrong note! (NW It should be over the head note rather than the side note and then lined up with the other staffs as usual).
Hard to follow this. You don't use RestChords in your tool.

As for slurs, I'll just let the notation do the explaining:
Code: (nwc)   [Select · Download]
!NoteWorthyComposer(2.5)
|AddStaff|Name:"Staff"|Label:"tool"
|StaffProperties|EndingBar:Open (hidden)
|Note|Dur:Half,Slur|Pos:1
|Note|Dur:Half|Pos:0
|Bar
|Text|Text:"j"|Font:StaffSymbols|Pos:1|Justify:Right|Placement:AtNextNote
|Note|Dur:16th,Slur|Pos:1z|Opts:Stem=Down,StemLength=7,Beam=First
|Note|Dur:16th,Slur|Pos:0|Opts:Stem=Down,Beam|Visibility:Never
|Note|Dur:16th,Slur|Pos:1|Opts:Stem=Down,Beam|Visibility:Never
|Note|Dur:16th,Slur|Pos:0|Opts:Stem=Down,Beam|Visibility:Never
|Note|Dur:32nd,Grace|Pos:1^|Opts:Stem=Up,Beam=First|Visibility:Never
|Note|Dur:32nd,Grace|Pos:1|Opts:Stem=Up,Beam=End|Visibility:Never
|Text|Text:"j"|Font:StaffSymbols|Pos:0|Justify:Right|Placement:AtNextNote
|Note|Dur:16th,Slur|Pos:0z|Opts:Stem=Down,StemLength=7,Beam=End,Muted
|Note|Dur:16th,Slur|Pos:0|Opts:Stem=Down,Beam=First|Visibility:Never
|Note|Dur:16th,Slur|Pos:1|Opts:Stem=Down,Beam|Visibility:Never
|Note|Dur:16th,Slur|Pos:0|Opts:Stem=Down,Beam=End|Visibility:Never
|Bar
|AddStaff|Name:"Staff-2"|Label:"should be:"
|StaffProperties|EndingBar:Open (hidden)
|Rest|Dur:Whole
|Bar
|Text|Text:"j"|Font:StaffSymbols|Pos:1|Justify:Right|Placement:AtNextNote
|Note|Dur:16th,Slur|Pos:1z|Opts:Stem=Down,StemLength=7,Beam=First
|Note|Dur:16th,Slur|Pos:0|Opts:Stem=Down,Beam|Visibility:Never
|Note|Dur:16th,Slur|Pos:1|Opts:Stem=Down,Beam|Visibility:Never
|Note|Dur:16th,Slur|Pos:0|Opts:Stem=Down,Beam|Visibility:Never
|Note|Dur:32nd,Grace|Pos:1^|Opts:Stem=Up,StemLength=0,Beam=First|Visibility:Never
|Note|Dur:32nd,Grace|Pos:1|Opts:Stem=Up,StemLength=0,Beam=End|Visibility:Never
|Spacer|Width:50
|Text|Text:"j"|Font:StaffSymbols|Pos:0|Justify:Right|Placement:AtNextNote
|Note|Dur:16th|Pos:0z|Opts:Stem=Down,StemLength=7,Beam=End,Muted
|Note|Dur:16th|Pos:0|Opts:Stem=Down,Beam=First|Visibility:Never
|Note|Dur:16th|Pos:1|Opts:Stem=Down,Beam|Visibility:Never
|Note|Dur:16th|Pos:0|Opts:Stem=Down,Beam=End|Visibility:Never
|Bar
!NoteWorthyComposer-End
Logged

Registered user since 1996
Peter Edwards
Virtuoso
« Reply #27 on: 2013-03-25 05:08 AM »

You're quite right but I used to. Entire comment removed!

And thank you for the font suggestion, although since the idea is to put pieces up on the web so that our members can use the viewer there could be a minor admin problem.

Slurred notes still don't quite work with the tool (it leaves a hanging slur) so I might try a modification, but in the meantime the error is easily corrected.
Logged
Rick G.
Virtuoso
« Reply #28 on: 2013-03-25 04:35 PM »

since the idea is to put pieces up on the web so that our members can use the viewer there could be a minor admin problem.
NWORN3.ttf is supported by the NoteWorthy Composer Viewer.

I don't use a browser that supports NoteWorthy's plugin. Perhaps those who use one or more of the supported browsers can report on how well the plugin handles NWORN3.ttf

I can report that none of the fonts commonly included with Windows include glyphs suitable for NWC's use in a single note tremolo.
Logged

Registered user since 1996
Flurmy
Virtuoso


« Reply #29 on: 2013-03-25 05:29 PM »

Peter,
using your tool with 16', the sound of the note obtained with two tied grace notes is truncated.
I can't understand why.
Bedtime...
Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by SMF 1.1.19 | SMF © 2013, Simple Machines
Page created in 0.082 seconds with 19 queries.

Copyright © 2014 Noteworthy Software, Inc.