Hi br. Innocent, I'm sorry for the lack of user-friendliness. To use gabc_quanta.rb either execute it by invoking the ruby interpreter with path to the script as first argument
ruby gabc_quanta.rb ... (arguments for gabc_quanta.rb following) or add shebang (see below) as it's first line and make it executable #!/bin/env ruby The terrible output above was caused by your default shell (probably bash) attempting to interpret the script. HTH, Jakub 2016-12-15 18:41 GMT+01:00 Innocent Smith <[email protected]>: > Here's the output from gabc_quanta.rb: > > InnocensMacBook:office misericordia$ gabc_quanta.rb an--a_bimatu_et_infra-- > dominican--id_6436.gabc > /usr/local/bin/gabc_quanta.rb: line 4: require: command not found > /usr/local/bin/gabc_quanta.rb: line 6: class: command not found > /usr/local/bin/gabc_quanta.rb: line 7: def: command not found > /usr/local/bin/gabc_quanta.rb: line 8: i: command not found > /usr/local/bin/gabc_quanta.rb: line 9: each_syllable: command not found > /usr/local/bin/gabc_quanta.rb: line 9: s: command not found > /usr/local/bin/gabc_quanta.rb: line 9: i: command not found > /usr/local/bin/gabc_quanta.rb: line 10: i: command not found > /usr/local/bin/gabc_quanta.rb: line 11: end: command not found > /usr/local/bin/gabc_quanta.rb: line 13: def: command not found > /usr/local/bin/gabc_quanta.rb: line 14: i: command not found > /usr/local/bin/gabc_quanta.rb: line 15: each_syllable: command not found > /usr/local/bin/gabc_quanta.rb: line 15: s: command not found > /usr/local/bin/gabc_quanta.rb: line 16: s.notes.each: command not found > /usr/local/bin/gabc_quanta.rb: line 16: music_something: command not found > /usr/local/bin/gabc_quanta.rb: line 17: i: command not found > /usr/local/bin/gabc_quanta.rb: line 18: end: command not found > /usr/local/bin/gabc_quanta.rb: line 19: end: command not found > /usr/local/bin/gabc_quanta.rb: line 20: i: command not found > /usr/local/bin/gabc_quanta.rb: line 21: end: command not found > /usr/local/bin/gabc_quanta.rb: line 23: def: command not found > /usr/local/bin/gabc_quanta.rb: line 24: music.words.each: command not found > /usr/local/bin/gabc_quanta.rb: line 24: word: command not found > /usr/local/bin/gabc_quanta.rb: line 25: word.each_syllable: command not > found > /usr/local/bin/gabc_quanta.rb: line 25: syllable: command not found > /usr/local/bin/gabc_quanta.rb: line 26: next: command not found > /usr/local/bin/gabc_quanta.rb: line 27: yield: command not found > /usr/local/bin/gabc_quanta.rb: line 28: end: command not found > /usr/local/bin/gabc_quanta.rb: line 29: end: command not found > /usr/local/bin/gabc_quanta.rb: line 30: end: command not found > /usr/local/bin/gabc_quanta.rb: line 32: syntax error near unexpected token > `(' > /usr/local/bin/gabc_quanta.rb: line 32: ` def > contains_any_notes?(syllable)' > InnocensMacBook:office misericordia$ > > On Thu, Dec 15, 2016 at 11:58 AM, Innocent Smith < > [email protected]> wrote: > >> Hi Jakub, >> >> Thanks for your work on this. I've tried installing lygre and it is now >> in my bin. I also put a downloaded version of gabc_quanta.rb in my bin. I >> can't seem to get either to work. When I try grely.rb FILE.gabc, it >> produces output within the terminal rather than a separate file. >> gabc_quanta.rb >> FILE.gabc doesn't seem to work either. Any tips? Also, I noticed that the >> grely.rb, a number after a quarter bar (e.g. ,1) produces an error, >> although this is part of GABC for Dominican notation. >> >> Thanks! >> >> fr Innocent >> >> On Wed, Dec 14, 2016 at 6:38 PM, Jakub Pavlík <[email protected]> >> wrote: >> >>> I have released a new version of lygre with a less adventurous >>> installation procedure. Now a single "gem install lygre" should do the >>> charm. >>> >>> Jakub >>> >>> 2016-12-12 21:59 GMT+01:00 Jakub Pavlík <[email protected]>: >>> >>>> Hello, >>>> >>>> I have written such a script https://gist.github.com >>>> /igneus/7098ce45ee4cbae0c5324ff91df7e3c1 based on a gabc parser >>>> included in one of my older tools. But in order to enjoy it, it is >>>> necessary to install ruby (this should be no big deal) and my lygre gem >>>> (this is the scary part): the clumsy installation procedure is described >>>> here https://github.com/igneus/lygre >>>> >>>> Regards, >>>> Jakub >>>> >>>> 2016-12-12 15:46 GMT+01:00 Innocent Smith <[email protected]>: >>>> >>>>> Thanks Ben! A command line script would be great, particularly if it >>>>> were possible to input a series of GABC files and output a csv or >>>>> something >>>>> along those lines with the data. >>>>> >>>>> fr Innocent >>>>> >>>>> On Mon, Dec 12, 2016 at 9:44 AM, Benjamin Bloomfield <[email protected] >>>>> > wrote: >>>>> >>>>>> I could help with this if no one else is interested. It doesn't >>>>>> sound like it should be too difficult to count the number of syllables >>>>>> and >>>>>> the number of notes in a GABC file. I could write a webpage to do it, or >>>>>> if you'd prefer a command line script, that would work as well. >>>>>> >>>>>> *Ben Bloomfield* >>>>>> >>>>>> On Fri, Dec 9, 2016 at 10:37 AM, Innocent Smith < >>>>>> [email protected]> wrote: >>>>>> >>>>>>> Hello, >>>>>>> >>>>>>> I am wondering if anyone has made/would be willing to make a tool to >>>>>>> do quantitative analysis of GABC scores. One question I'm interested in >>>>>>> is >>>>>>> the ratio of notes to syllables in different scores. To do this, I >>>>>>> suppose >>>>>>> you would have to find a way to strip away non-note information from the >>>>>>> GABC, and then figure out a way to count syllables vs. notes. Would >>>>>>> anyone >>>>>>> be interested in helping me with this, or giving me some tips to get >>>>>>> started? >>>>>>> >>>>>>> best, >>>>>>> >>>>>>> fr Innocent, op >>>>>>> >>>>>>> _______________________________________________ >>>>>>> Gregorio-users mailing list >>>>>>> [email protected] >>>>>>> https://mail.gna.org/listinfo/gregorio-users >>>>>>> >>>>>>> >>>>>> >>>>> >>>>> _______________________________________________ >>>>> Gregorio-users mailing list >>>>> [email protected] >>>>> https://mail.gna.org/listinfo/gregorio-users >>>>> >>>>> >>>> >>> >> >
_______________________________________________ Gregorio-users mailing list [email protected] https://mail.gna.org/listinfo/gregorio-users

