Giter Club home page Giter Club logo

superfomus's Introduction

Fomus

SuperCollider bindings to Fomus Music Notation (FOrmat MUSic).

“FOMUS is a open source software that automates many musical notation tasks for composers and musicians [...] Once the composer loads or inputs their materials, FOMUS outputs a file suitable for importing into a graphical notation program such as LilyPond, MuseScore, Finale, Sibelius and others.”

See Help file for more information.

Project website:

https://github.com/smoge/superfomus

Fomus website:

http://fomus.sourceforge.net/

Installation:

Prerequesites:

Finally, run in the sclang

Quarks.install("https://github.com/smoge/superfomus");

Examples

(
a = 12.collect({|i|
  ( 'midinote': (
      (63 + rrand(-6,6.5) + [0,8,13]) ++
      (60 + rrand(-6,6.5) + [0,5,6,9]) ),
    'dur': 1 )
});

f = Fomus();
f.fileName = "~/SCFomus_"; // complete file path
f.add(a);
f.ly;
)

(
p = Pbind(
  \midinote, Prand((60,60.5..80), inf),
  \dur, Prand([0.125, 0.25, 0.5], inf)
);

//p.play;

f = Fomus(p.asStream, 30);
f.fileName = "~/SCFomus_"; // complete file path
f.ly;
f.midi;
f.xml;
)

superfomus's People

Contributors

smoge avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

superfomus's Issues

Difficulty running FOMUS Class Examples

I'm unable to call f.ly, f.midi or f.xml. I see the problem is that the fomus executable is not present in my system's path. I am specifying the correct LilyPond and PDF viewer paths.

I am having difficulty installing fomus-0.1.18-alpha.pkg on Catalina. The package doesn't want to load. So... trying to build from source (using a staged custom built boostlib) and it's failing with:

octs.cc:125:72: error: no member named 'prior' in namespace 'boost'
        for (std::vector<scorenode>::const_iterator i(arr.begin()), ie(boost::prior(arr.end())); i != arr.end(); ++i) {
                                                                       ~~~~~~~^
octs.cc:129:40: error: no member named 'next' in namespace 'boost'; did you mean 'std::next'?
          mx += octchange(i, (i == ie ? n2 : *boost::next(i)->node), n2) * i->dist;
                                              ^~~~~~~~~~~
                                              std::next
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/iterator:620:1: note: 'std::next' declared here
next(_InputIter __x,
^
2 errors generated.

I can see that FOMUS is rather old and unmaintained. Pretty sure it's expecting a much older boostlib. Are you in touch with the FOMUS developers at all @smoge?

I notice a lot of older software is now broken with Catalina update. Would be happy to contribute a PR somewhere but somewhat blocked. Any help would be appreciated.

fomus: command not found

Dear smoge,

I have evaluated the following two codes, slightly modified from your sample code in the help document:

(
a = 12.collect({|i|
  ( 'midinote': (
      (63 + rrand(-6,6.5) + [0,8,13]) ++
      (60 + rrand(-6,6.5) + [0,5,6,9]) ),
    'dur': 1 )
});

f = Fomus();
f.lilyPath  = "/opt/homebrew/bin/lilypond";
f.lilyViewPath = "/opt/homebrew/bin/xpdf";
f.fileName = "~/SCFomus_".standardizePath;
f.add(a);
f.ly;
)
(
a = 12.collect({|i|
  ( 'midinote': (
      (63 + rrand(-6,6.5) + [0,8,13]) ++
      (60 + rrand(-6,6.5) + [0,5,6,9]) ),
    'dur': 1 )
});

f = Fomus()
.lilyPath_("/opt/homebrew/bin/lilypond")
.lilyViewPath_("/opt/homebrew/bin/xpdf")
.fileName_("~/SCFomus_".standardizePath)
.add(a)
.ly;
)

The results are as follows:

Last login: Sat Jun 24 08:53:57 on ttys000
/Users/prko/Library/Application\ Support/SuperCollider/tmp/SCStringForTerminal-1126564853.command ; exit;
(base) prko@prkoMBP2021 ~ % /Users/prko/Library/Application\ Support/SuperCollider/tmp/SCStringForTerminal-1126564853.command ; exit;
/Users/prko/Library/Application Support/SuperCollider/tmp/SCStringForTerminal-1126564853.command: line 2: fomus: command not found

Saving session...
...copying shared history...
...saving history...truncating history files...
...completed.

[Process completed]

Did I do something wrong?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.