301
User Tools / Re: Make Rehearsal File
Updated Lua version: see original post
This section allows you to view all Messages made by this member. Note that you can only see Messages made in areas you currently have access to.
Updated Lua version: see original post
Good luck tring to use the Windows API in a script.
My code uses the "htmlfile" COM object to get text from the Clipboard.
To put text into the Clipboard, it writes and runs a hypertext application.
This latter step raised security flags when it tied to do in PHP.
I don't know how to do any of this in Lua.
rg_lyricCopy.vbs is the tool for this. You can copy lyrics from one song and paste them into another.
!NoteWorthyComposerClip(2.751,Single)
|Clef|Type:Treble
|Bar|Style:LocalRepeatClose|Repeat:2
|Note|Dur:Whole|Pos:-6
|Bar|Style:MasterRepeatOpen
|Note|Dur:Whole|Pos:-5
|Bar
|Note|Dur:Whole|Pos:-4
|Bar
|Note|Dur:Whole|Pos:-3
|Bar
|Ending|Endings:1
|Note|Dur:Whole|Pos:-2
|Bar|Style:MasterRepeatClose
|Ending|Endings:2
|Note|Dur:Whole|Pos:-1
|Bar
|Note|Dur:Whole|Pos:0
|Bar|Style:LocalRepeatClose|Repeat:2
!NoteWorthyComposerClip-End
No, there isn't. A user tool can't process two files at a time.
So the only way is to do it manually.
Is there a way of adapting this so that a staff can be copied into another file whilst retaining all its attributes and lyrics?
I like Van Bascos Karaoke player for MIDI - pretty sure it still works for 10...
http://www.vanbasco.com/karaokeplayer/
Codec not supported:
VLCcouldn't decode the format "MIDI" (MIDI Audio)
I imagine that it's the Windows 10 creators update.
They did quite a bit of work with sound and audio processes. In my case, it cured a problemWM I was having that I actually thought was a hardware problem. However, you do a Google search for "Windows 10 creators update audio not working", you will see that there are many problems with the update from an audio point of view.
I give up...
I just realised I didn't take accidentals into account. Correction will follow...
Not in a minor key. I'd want C# in D minor. My suggestion achieves that and is simple to program.
In sharp keys, leave everything sharp; in flat keys, make everything flat; in C (or when no signature exists), follow my original "brute force" recommendation. Then adjust as suggested in my second refinement.
!NoteWorthyComposer(2.751)
|Editor|ActiveStaff:1|CaretIndex:6|CaretPos:-2
|SongInfo|Title:"Enharmonic Test"|Author:"<Name>"|Lyricist:""|Copyright1:"Copyright © 2017 <Name>"|Copyright2:"All Rights Reserved"
|PgSetup|StaffSize:16|Zoom:4|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.2|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:"Most common"|Label:"Most common"|Group:"Standard"
|StaffProperties|EndingBar:Section Close|Visible:Y|BoundaryTop:10|BoundaryBottom:10|Lines:5|Color:Default
|StaffProperties|Muted:N|Volume:127|StereoPan:64|Device:0|Channel:2
|StaffInstrument|Trans:0|DynVel:10,30,45,60,75,92,108,127
|Clef|Type:Treble
|Note|Dur:4th|Pos:-6
|Note|Dur:4th|Pos:#-6
|Note|Dur:4th|Pos:-5
|Note|Dur:4th|Pos:b-4
|Bar
|Note|Dur:4th|Pos:-4
|Note|Dur:4th|Pos:-3
|Note|Dur:4th|Pos:#-3
|Note|Dur:4th|Pos:-2
|Bar
|Note|Dur:4th|Pos:#-2
|Note|Dur:4th|Pos:-1
|Note|Dur:4th|Pos:b0
|Note|Dur:4th|Pos:0
|Bar
|Note|Dur:4th|Pos:#1
|Note|Dur:4th|Pos:1
|Note|Dur:4th|Pos:0
|Note|Dur:4th|Pos:b0
|Bar
|Note|Dur:4th|Pos:-1
|Note|Dur:4th|Pos:#-2
|Note|Dur:4th|Pos:n-2
|Note|Dur:4th|Pos:#-3
|Bar
|Note|Dur:4th|Pos:-3
|Note|Dur:4th|Pos:-4
|Note|Dur:4th|Pos:b-4
|Note|Dur:4th|Pos:-5
|Bar
|Note|Dur:4th|Pos:#-6
|Note|Dur:4th|Pos:n-6
|Note|Dur:4th|Pos:-7
|AddStaff|Name:"Refinement"|Label:"Refinement"|Group:"Standard"
|StaffProperties|EndingBar:Section Close|Visible:Y|BoundaryTop:10|BoundaryBottom:10|Lines:5|Color:Default
|StaffProperties|Muted:N|Volume:127|StereoPan:64|Device:0|Channel:4
|StaffInstrument|Trans:0|DynVel:10,30,45,60,75,92,108,127
|Clef|Type:Treble
|Note|Dur:4th|Pos:-6
|Note|Dur:4th|Pos:#-6
|Note|Dur:4th|Pos:-5
|Note|Dur:4th|Pos:#-5
|Bar
|Note|Dur:4th|Pos:-4
|Note|Dur:4th|Pos:-3
|Note|Dur:4th|Pos:#-3
|Note|Dur:4th|Pos:-2
|Bar
|Note|Dur:4th|Pos:#-2
|Note|Dur:4th|Pos:-1
|Note|Dur:4th|Pos:#-1
|Note|Dur:4th|Pos:0
|Bar
|Note|Dur:4th|Pos:b2
|Note|Dur:4th|Pos:1
|Note|Dur:4th|Pos:0
|Note|Dur:4th|Pos:b0
|Bar
|Note|Dur:4th|Pos:-1
|Note|Dur:4th|Pos:b-1
|Note|Dur:4th|Pos:-2
|Note|Dur:4th|Pos:b-2
|Bar
|Note|Dur:4th|Pos:-3
|Note|Dur:4th|Pos:-4
|Note|Dur:4th|Pos:b-4
|Note|Dur:4th|Pos:-5
|Bar
|Note|Dur:4th|Pos:b-5
|Note|Dur:4th|Pos:-6
|Note|Dur:4th|Pos:-7
!NoteWorthyComposer-End
(..)Two refinements would help:
- First(..)
- Second(..)
Over to you....
Is it possible for Noteworthy to favor flats over sharps in note entry? It seems the default is to favor sharps. For example in the Key of C if I want B flat, or D flat etc. How do I get the program to select these notes as opposed to A# or C#. Is there an option to toggle this default?
I think that's an idea for my next user tool, but I have a busy week coming up. So a little patience....
User tools aren't really my thing (so far), but it sounds to me like it would be useful to have a tool that would be able to find this type of thing. Either that, or an "audit ties" or "auto hanging notes" type of native function.
The usual approach for situations like that is layering - especially when it involves two independent voices, like soprano and alto. One voice on one staff, the other voice on a second staff that is layered with the first. This allows you to cross voices, as well.
One reason I want to do this is to get RestChords into the music. I see the notation and the code for it in a piece I downloaded, but I don't think it's possible to insert a RestChord in NWC itself.
NWC uses double sharps and double flats, and number-notation doesn't
Special attention has to be paid on the staccato dot since it looks like the octave changer...
I'm not sure I understand the purpose or usage of number notation, but that doesn't matter.
I gather a whole note is created with a plain number followed by three dots and a half note is a plain number with one dot following it.
Does this type of notation provide for double sharps and double flats?
- I noticed that running the tool a second time (for example, after making changes to the source staff), it will insert an additional number notation staff, rather than replace the previous one. I assume that is intended behavior, and that the user would need to manually delete the staff added by the tool's previous invocation.
- I am curious why you elected the user tool approach for this add-on, instead of perhaps creating this with a StaffSig plugin object. On the surface, it seems to me that such an object could be created that would render the number notation above the existing notes automatically, and would effectively auto-refresh whenever changes were made to the underlying notation.
!NoteWorthyComposerClip(2.75,Single)You were a little faster, Rick!
|Dynamic|Style:f|Opts:Volume=92|Pos:-9.5|Wide:Y
|RestChord|Dur:Half|Opts:Stem=Down,Diminuendo,ArticulationsOnStem,Muted,HideRest|Dur2:Whole|Pos2:10
|User|Tremolo.ms|Pos:1
|RestChord|Dur:Half|Opts:Stem=Down,Diminuendo,ArticulationsOnStem,Muted,HideRest|Dur2:Whole|Pos2:b11
|Bar
|Dynamic|Style:pp|Opts:Volume=30|Pos:-10|Wide:Y
!NoteWorthyComposerClip-End
Notice: This object plugin requires NWC 2.75a, which is currently in beta. It cannot be used in Version 2.75.
An optional text instruction can accompany the line.