Skip to main content

Show Posts

This section allows you to view all Show Posts made by this member. Note that you can only see Show Posts made in areas you currently have access to.

Messages - notebyruby

1
General Discussion / Do I need piano or Noteworthy?
Do I need piano or Noteworthy?

In church, we need a pianist when we sing a hymn or for choir
but with iPad or Galaxy pad, not any more, IMHO.

Here is my thinking.

On the pad we display notes with 5 lines or 11 lines.
we just touch the notes on music sheet with your finger,
then iPad will play the notes. You don't need to hit white or black key,
 just notes on the sheet which is diplayed on the pad.
You only hit the notes with proper beat.

With this App in your pad, you can play quite any music with simple training.
But I don't know this app is already on the market or not.

I think piano is required only for recital or for profesional.

In a small church, a pianist and piano is quite too much.

steve
2
User Tools / 3 ruby scripts
Here are 3 ruby scripts.


########################################

=begin

File name is
readfromfile.rb

select a staff and run this script
and select a file from prompt
then this will replace the staff with the file content

current directory is
C:\Program Files\Noteworthy Software\NoteWorthy Composer 2

Config directory is
C:\Documents and Settings\Administrator\Local Settings\Application Data\Noteworthy Software\nwc2\Config

add the following command line into Config file

Ruby Read from file=ruby.exe scripts\readfromfile.rb <PROMPT:Enter input file name:=|file1.xml|file2.xml>

=end

ifile = "temp/" + $*[0]  # $* is arguments
#ifile = "test.xml"
#ofile = "test9test.xml"
xml = open(ifile).read
#ofile = File.new(ofile, "w")
#ofile.print ifile
#ofile.close
print xml
exit 0


########################################

=begin

File name is
dump2file.rb

select a staff and run this script
and select a file from prompt
then this will dump the staff into the file

current directory is
C:\Program Files\Noteworthy Software\NoteWorthy Composer 2

Config directory is
C:\Documents and Settings\Administrator\Local Settings\Application Data\Noteworthy Software\nwc2\Config

exit 99  -- mini window
exit 0 -- nwc score editor

add the following command line into Config file

Ruby Dump 2 File=ruby.exe scripts\dump2file.rb <PROMPT:Enter output file name:=|file1.xml|file2.xml>

=end

ofile = "temp/" + $*[0]  # $* is arguments

ofile = File.new(ofile, "w")

STDIN.read.split("\n").each do |a|
   ofile.print a + "\n"
end

ofile.close

exit 0


#################################

=begin

File name is
stdinprint.rb

select a staff and run this script
then this will dump it into mini window

current directory is
C:\Program Files\Noteworthy Software\NoteWorthy Composer 2

Config directory is
C:\Documents and Settings\Administrator\Local Settings\Application Data\Noteworthy Software\nwc2\Config

without "exit" or with exit 0, output will replace the selection
  insertion(no selection) point will repace all starves
with "exit 99", output will be displayed in the mini window

add the following command line into Config file

Ruby STDIN Print=ruby.exe scripts\stdinprint.rb

=end

print "This is a text"
STDIN.read.split("\n").each do |a|
   print a
end

exit 99   #Standard output
#exit 0   #nwc score output