NoteWorthy Composer Forum

Forums => General Discussion => Topic started by: hakfitz on 2010-08-25 07:53 pm

Title: Coverting midi to NWC
Post by: hakfitz on 2010-08-25 07:53 pm
Hey guys.... In my work it would be helpful to be able to convert midi files to NWC. Problem is, when NWC does the conversion, the rhythms are a confusion of 32nd notes tied to eighth notes, etc.... totally unreadabe (and playback on NWC is all botched). Is there a way to make this not happen?
Title: Re: Coverting midi to NWC
Post by: Warren Porter on 2010-08-25 08:48 pm
NWC doesn't know that a note is a triplet, just how long it's duration is.  Some user tools will convert an entire staff such as this one (http://nwc-scriptorium.org/nwc2scripts_trip.html) on the nwc-scriptorium.org website.
Title: Re: Coverting midi to NWC
Post by: Richard Woodroffe on 2010-08-25 09:03 pm
In addition to Warren's advice, you also have to look out for when a midi piece actually has a pick up note instead of a whole measure at the start of the piece. This would throw out all of the measures and make the notes not accord with the supposed time sig.

Where this happens, if you recognise it, then you can manually enter rests at the beginning such that the first measure would be of a correct length for the time sig. (Do not try to correct the bar lines - remember the midi file does not have bar lines). Then export to midi and re-import. This will cure many of the problems.
Title: Re: Coverting midi to NWC
Post by: Warren Porter on 2010-08-25 11:22 pm
I had not used the tripletise.php tool before, using a macro on my text editor instead.  I just tried to install that tool but the first time I just got a fail message.  When I added the prompts and highlighted some of the staff, the user tool just hanged.  This is part of my ini file now:
Code: [Select · Download]
Ranges (adp)=php\php.exe scripts\adp_Ranges.php <PROMPT:Enter your range option:=|none|separate|help>
Transpose Chords (adp)=php\php.exe scripts\adp_TransposeChords.php <PROMPT:Enter your transpose options:=*help>
Bar Number Demo (nwsw)=php\php.exe scripts\nwsw_BarNumberDemo.php
Accidentals From Grace=php\php.exe scripts\graceacc.php
Accidentals From RickG=WScript Scripts\Audit1.vbs
Tripletize=php.exe scripts\tripletize.php <PROMPT:Result value:=8,4,16,32> <PROMPT:1st note:d16,d8,d32> <PROMPT:2nd note:d16,d8,d32> <PROMPT:3rd note:16,8,32>
and some sample data:
Code: [Select · Download]
!NoteWorthyComposerClip(2.0,Single)
|Rest|Dur:16th,Dotted
|Note|Dur:16th,Dotted|Pos:-2|Opts:Stem=Up,Beam=First
|Note|Dur:16th|Pos:-1|Opts:Stem=Up,Beam=End
|Note|Dur:16th,Dotted|Pos:0|Opts:Stem=Down,Beam=First
|Note|Dur:16th,Dotted|Pos:2|Opts:Stem=Down,Beam
|Note|Dur:16th|Pos:1|Opts:Stem=Down,Beam=End
|Note|Dur:16th,Dotted|Pos:1|Opts:Stem=Down,Beam=First
|Note|Dur:16th,Dotted|Pos:3|Opts:Stem=Down,Beam
|Note|Dur:16th|Pos:2|Opts:Stem=Down,Beam=End
|Bar
|Note|Dur:16th,Dotted|Pos:2|Opts:Stem=Down,Beam=First
|Note|Dur:16th,Dotted|Pos:5|Opts:Stem=Down,Beam
|Note|Dur:16th|Pos:4|Opts:Stem=Down,Beam=End
|Note|Dur:16th,Dotted|Pos:5|Opts:Stem=Down,Beam=First
|Note|Dur:16th,Dotted|Pos:2|Opts:Stem=Down,Beam
|Note|Dur:16th|Pos:0|Opts:Stem=Down,Beam=End
|Note|Dur:16th,Dotted|Pos:-2|Opts:Stem=Up,Beam=First
|Note|Dur:16th,Dotted|Pos:-1|Opts:Stem=Up,Beam
|Note|Dur:16th|Pos:0|Opts:Stem=Up,Beam=End
|Bar
|Note|Dur:16th,Dotted|Pos:1|Opts:Stem=Down,Beam=First
|Note|Dur:16th,Dotted|Pos:2|Opts:Stem=Down,Beam
|Note|Dur:16th|Pos:3|Opts:Stem=Down,Beam=End
|Note|Dur:16th,Dotted|Pos:2|Opts:Stem=Down,Beam=First
|Note|Dur:16th,Dotted|Pos:1|Opts:Stem=Down,Beam
|Note|Dur:16th|Pos:0|Opts:Stem=Down,Beam=End
|Note|Dur:16th,Dotted|Pos:-1|Opts:Stem=Up,Beam=First
|Note|Dur:16th,Dotted|Pos:0|Opts:Stem=Up,Beam
|Note|Dur:16th|Pos:-2|Opts:Stem=Up,Beam=End
|Bar
!NoteWorthyComposerClip-End

TIA
Title: Re: Coverting midi to NWC
Post by: Rick G. on 2010-08-26 12:46 am
When I added the prompts and highlighted some of the staff, the user tool just hanged.
Command: php\php.exe Scripts\tripletise.php 8 d16 d16 16
seems to work just fine with your clip.

Tripletise is <here> (http://nwc-scriptorium.org/nwc2scripts_trip.html). Download the link: v1.1.1
Title: Re: Coverting midi to NWC
Post by: Warren Porter on 2010-08-26 01:58 am
Found it!  I had =php.exe   instead of php\php.exe       in my ini file.  Thanks, Rick!